contact) { $this->contact = $this->quote->client->primary_contact()->first() ?: $this->quote->client->contacts()->first(); } $invitation = $this->quote->invitations->where('client_contact_id', $this->contact->id)->first(); if (!$invitation) { $invitation = $this->quote->invitations->first(); } return (new CreateRawPdf($invitation))->handle(); } }