lang); return new Content( view: 'mail.preapplication', with: ['pa' => $this->pa], ); } /** * Get the attachments for the message. * * @return array */ public function attachments(): array { $lang = match (App::getLocale()) { 'de' => 'dk', 'en' => 'ek', default => 'dk', }; return [ Attachment::fromPath(public_path('Dokumente/c3gov_fb5' . $lang . '.pdf')) ->withMime('application/pdf'), ]; } }