@php
    $locale = $user->preferred_language ?? 'ar';
@endphp
@component('mail::message')
@if($locale === 'ar')
<div dir="rtl" style="text-align: right;">
# {{ __('emails.consultation_cancelled_title', [], $locale) }}

{{ __('emails.consultation_cancelled_greeting', ['name' => $user->company_name ?? $user->full_name], $locale) }}

{{ __('emails.consultation_cancelled_body', [], $locale) }}

**{{ __('emails.cancelled_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') }}

{{ __('emails.consultation_cancelled_rebook', [], $locale) }}

{{ __('emails.consultation_cancelled_contact', [], $locale) }}

{{ __('emails.regards', [], $locale) }}<br>
{{ config('app.name') }}
</div>
@else
# {{ __('emails.consultation_cancelled_title', [], $locale) }}

{{ __('emails.consultation_cancelled_greeting', ['name' => $user->company_name ?? $user->full_name], $locale) }}

{{ __('emails.consultation_cancelled_body', [], $locale) }}

**{{ __('emails.cancelled_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') }}

{{ __('emails.consultation_cancelled_rebook', [], $locale) }}

{{ __('emails.consultation_cancelled_contact', [], $locale) }}

{{ __('emails.regards', [], $locale) }}<br>
{{ config('app.name') }}
@endif
@endcomponent
