first(); if($invitation){ if((bool)$invitation->contact->client->getSetting('enable_client_portal_password') !== false) $this->middleware('auth:contact'); $invitation->markViewed(); return redirect()->route('client.invoice.show', ['invoice' => $this->encodePrimaryKey($invitation->invoice_id)]); } else abort(404); } // public function invoiceRouterForIframe(string $client_hash, string $invitation_key) // { // } }