@php $locale = $user->preferred_language ?? 'ar'; @endphp @component('mail::message') @if($locale === 'ar')
# {{ __('emails.reminder_2h_title', [], $locale) }} {{ __('emails.reminder_2h_greeting', ['name' => $user->company_name ?? $user->full_name], $locale) }} {{ __('emails.reminder_2h_body', [], $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($showPaymentReminder) @component('mail::panel') **{{ __('emails.payment_urgent', [], $locale) }}** {{ __('emails.payment_urgent_text', [], $locale) }} @endcomponent @endif @component('mail::panel') **{{ __('emails.office_contact', [], $locale) }}** {{ config('libra.office_address.ar') }} {{ __('emails.phone_label', [], $locale) }} {{ config('libra.office_phone') }} {{ __('emails.email_label', [], $locale) }} {{ config('libra.office_email') }} @endcomponent {{ __('emails.regards', [], $locale) }}
{{ config('app.name') }}
@else # {{ __('emails.reminder_2h_title', [], $locale) }} {{ __('emails.reminder_2h_greeting', ['name' => $user->company_name ?? $user->full_name], $locale) }} {{ __('emails.reminder_2h_body', [], $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($showPaymentReminder) @component('mail::panel') **{{ __('emails.payment_urgent', [], $locale) }}** {{ __('emails.payment_urgent_text', [], $locale) }} @endcomponent @endif @component('mail::panel') **{{ __('emails.office_contact', [], $locale) }}** {{ config('libra.office_address.en') }} {{ __('emails.phone_label', [], $locale) }} {{ config('libra.office_phone') }} {{ __('emails.email_label', [], $locale) }} {{ config('libra.office_email') }} @endcomponent {{ __('emails.regards', [], $locale) }}
{{ config('app.name') }} @endif @endcomponent