@php $locale = $user->preferred_language ?? 'ar'; @endphp @component('mail::message') @if($locale === 'ar')
# {{ __('emails.booking_approved_title', [], $locale) }} {{ __('emails.booking_approved_greeting', ['name' => $user->company_name ?? $user->full_name], $locale) }} {{ __('emails.booking_approved_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.consultation_type', [], $locale) }}** {{ $consultation->consultation_type->value === 'paid' ? __('emails.paid_consultation', [], $locale) : __('emails.free_consultation', [], $locale) }} @if($consultation->consultation_type->value === 'paid' && $consultation->payment_amount) **{{ __('emails.payment_details', [], $locale) }}** - **{{ __('emails.payment_amount', [], $locale) }}** {{ $consultation->payment_amount }} {{ __('common.currency', [], $locale) }} @if($paymentInstructions) **{{ __('emails.payment_instructions', [], $locale) }}** {{ $paymentInstructions }} @endif @endif {{ __('emails.booking_approved_calendar', [], $locale) }} {{ __('emails.booking_approved_contact', [], $locale) }} {{ __('emails.regards', [], $locale) }}
{{ config('app.name') }}
@else # {{ __('emails.booking_approved_title', [], $locale) }} {{ __('emails.booking_approved_greeting', ['name' => $user->company_name ?? $user->full_name], $locale) }} {{ __('emails.booking_approved_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.consultation_type', [], $locale) }}** {{ $consultation->consultation_type->value === 'paid' ? __('emails.paid_consultation', [], $locale) : __('emails.free_consultation', [], $locale) }} @if($consultation->consultation_type->value === 'paid' && $consultation->payment_amount) **{{ __('emails.payment_details', [], $locale) }}** - **{{ __('emails.payment_amount', [], $locale) }}** {{ $consultation->payment_amount }} {{ __('common.currency', [], $locale) }} @if($paymentInstructions) **{{ __('emails.payment_instructions', [], $locale) }}** {{ $paymentInstructions }} @endif @endif {{ __('emails.booking_approved_calendar', [], $locale) }} {{ __('emails.booking_approved_contact', [], $locale) }} {{ __('emails.regards', [], $locale) }}
{{ config('app.name') }} @endif @endcomponent