@php
$locale = $user->preferred_language ?? 'ar';
@endphp
@component('mail::message')
@if($locale === 'ar')
# {{ __('emails.reminder_24h_title', [], $locale) }}
{{ __('emails.reminder_24h_greeting', ['name' => $user->company_name ?? $user->full_name], $locale) }}
{{ __('emails.reminder_24h_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($showPaymentReminder)
@component('mail::panel')
**{{ __('emails.payment_reminder', [], $locale) }}** {{ __('emails.payment_reminder_text', [], $locale) }}
**{{ __('emails.payment_amount', [], $locale) }}** {{ number_format($consultation->payment_amount, 2) }} {{ __('common.currency', [], $locale) }}
@endcomponent
@endif
@component('mail::button', ['url' => route('client.consultations.calendar', $consultation)])
{{ __('emails.download_calendar', [], $locale) }}
@endcomponent
{{ __('emails.reminder_24h_reschedule', [], $locale) }}
{{ __('emails.regards', [], $locale) }}
{{ config('app.name') }}
@else
# {{ __('emails.reminder_24h_title', [], $locale) }}
{{ __('emails.reminder_24h_greeting', ['name' => $user->company_name ?? $user->full_name], $locale) }}
{{ __('emails.reminder_24h_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($showPaymentReminder)
@component('mail::panel')
**{{ __('emails.payment_reminder', [], $locale) }}** {{ __('emails.payment_reminder_text', [], $locale) }}
**{{ __('emails.payment_amount', [], $locale) }}** {{ number_format($consultation->payment_amount, 2) }} {{ __('common.currency', [], $locale) }}
@endcomponent
@endif
@component('mail::button', ['url' => route('client.consultations.calendar', $consultation)])
{{ __('emails.download_calendar', [], $locale) }}
@endcomponent
{{ __('emails.reminder_24h_reschedule', [], $locale) }}
{{ __('emails.regards', [], $locale) }}
{{ config('app.name') }}
@endif
@endcomponent