emailLocale === 'ar' ? 'تحديث الحجز - مكتب ليبرا للمحاماة' : 'Booking Update - Libra Law Firm', ); } /** * Get the message content definition. */ public function content(): Content { return new Content( markdown: 'emails.booking.guest-rejected.'.$this->emailLocale, with: [ 'consultation' => $this->consultation, 'guestName' => $this->consultation->guest_name, 'formattedDate' => $this->getFormattedDate(), 'formattedTime' => $this->getFormattedTime(), 'reason' => $this->reason, 'hasReason' => ! empty($this->reason), ], ); } /** * Get the attachments for the message. * * @return array */ public function attachments(): array { return []; } /** * Get formatted date based on locale. */ private function getFormattedDate(): string { $date = $this->consultation->booking_date; return $this->emailLocale === 'ar' ? $date->format('d/m/Y') : $date->format('m/d/Y'); } /** * Get formatted time. */ private function getFormattedTime(): string { return Carbon::parse($this->consultation->booking_time)->format('h:i A'); } }