locale = $user->preferred_language ?? 'ar'; } /** * Get the message envelope. */ public function envelope(): Envelope { $locale = $this->user->preferred_language ?? 'ar'; return new Envelope( subject: $locale === 'en' ? 'Welcome to Libra Law Firm' : 'مرحباً بك في مكتب ليبرا للمحاماة', ); } /** * Get the message content definition. */ public function content(): Content { $locale = $this->user->preferred_language ?? 'ar'; return new Content( markdown: 'emails.welcome.'.$locale, with: [ 'user' => $this->user, 'password' => $this->password, 'loginUrl' => route('login'), ], ); } /** * Get the attachments for the message. * * @return array */ public function attachments(): array { return []; } }