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

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

{{ __('emails.booking_submitted_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') }}
- **{{ __('emails.booking_duration', [], $locale) }}** 45 {{ __('common.minutes', [], $locale) }}

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

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

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

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

{{ __('emails.booking_submitted_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') }}
- **{{ __('emails.booking_duration', [], $locale) }}** 45 {{ __('common.minutes', [], $locale) }}

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

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

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