locale = $consultation->user->preferred_language ?? 'en'; } /** * Get the message envelope. */ public function envelope(): Envelope { return new Envelope( subject: __('emails.booking_submitted_subject'), ); } /** * Get the message content definition. */ public function content(): Content { return new Content( view: 'emails.booking-submitted', with: [ 'consultation' => $this->consultation, 'user' => $this->consultation->user, ], ); } /** * Get the attachments for the message. * * @return array */ public function attachments(): array { return []; } }