submission->meta['form_source'] ?? 'contact-us'; $subjectPrefix = $fromSource === 'home' ? '[Home]' : '[Contact Us]'; return new Envelope( subject: "{$subjectPrefix} New Contact Form Submission - {$this->submission->name}", replyTo: [ new Address($this->submission->email, $this->submission->name), ], ); } /** * Get the message content definition. */ public function content(): Content { return new Content( view: 'emails.contact-submission', ); } /** * Get the attachments for the message. * * @return array */ public function attachments(): array { return []; } }