@php
$locale = $user->preferred_language ?? 'ar';
@endphp
@component('mail::message')
@if($locale === 'ar')
# {{ __('emails.booking_rejected_title', [], $locale) }}
{{ __('emails.booking_rejected_greeting', ['name' => $user->company_name ?? $user->full_name], $locale) }}
{{ __('emails.booking_rejected_body', [], $locale) }}
**{{ __('emails.booking_details', [], $locale) }}**
- **{{ __('emails.booking_date', [], $locale) }}** {{ \Carbon\Carbon::parse($consultation->booking_date)->translatedFormat('l, d M Y') }}
- **{{ __('emails.booking_time', [], $locale) }}** {{ \Carbon\Carbon::parse($consultation->booking_time)->format('g:i A') }}
@if($rejectionReason)
**{{ __('emails.rejection_reason', [], $locale) }}**
{{ $rejectionReason }}
@endif
{{ __('emails.booking_rejected_next_steps', [], $locale) }}
{{ __('emails.booking_rejected_contact', [], $locale) }}
{{ __('emails.regards', [], $locale) }}
{{ config('app.name') }}
@else
# {{ __('emails.booking_rejected_title', [], $locale) }}
{{ __('emails.booking_rejected_greeting', ['name' => $user->company_name ?? $user->full_name], $locale) }}
{{ __('emails.booking_rejected_body', [], $locale) }}
**{{ __('emails.booking_details', [], $locale) }}**
- **{{ __('emails.booking_date', [], $locale) }}** {{ \Carbon\Carbon::parse($consultation->booking_date)->translatedFormat('l, d M Y') }}
- **{{ __('emails.booking_time', [], $locale) }}** {{ \Carbon\Carbon::parse($consultation->booking_time)->format('g:i A') }}
@if($rejectionReason)
**{{ __('emails.rejection_reason', [], $locale) }}**
{{ $rejectionReason }}
@endif
{{ __('emails.booking_rejected_next_steps', [], $locale) }}
{{ __('emails.booking_rejected_contact', [], $locale) }}
{{ __('emails.regards', [], $locale) }}
{{ config('app.name') }}
@endif
@endcomponent