organisation); $this->invitation = $invitation; } public function envelope(): Envelope { return new Envelope( subject: "Je bent uitgenodigd voor {$this->invitation->organisation->name}", ); } public function content(): Content { $this->buildBranding(); return new Content( view: 'mail.invitation', with: [ 'acceptUrl' => config('crewli.app_url') . '/invitations/' . ($this->invitation->plainToken ?? $this->invitation->token) . '/accept', 'inviterName' => $this->invitation->invitedBy?->name ?? 'Een beheerder', 'role' => $this->invitation->role, 'expiresAt' => $this->invitation->expires_at, ], ); } }