57 lines
1.8 KiB
PHP
57 lines
1.8 KiB
PHP
@php
|
|
$locale = $user->preferred_language ?? 'ar';
|
|
@endphp
|
|
@component('mail::message')
|
|
@if($locale === 'ar')
|
|
<div dir="rtl" style="text-align: right;">
|
|
# {{ __('emails.booking_rejected_title', [], $locale) }}
|
|
|
|
{{ __('emails.booking_rejected_greeting', ['name' => $user->company_name ?? $user->full_name], $locale) }}
|
|
|
|
{{ __('emails.booking_rejected_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') }}
|
|
|
|
@if($rejectionReason)
|
|
**{{ __('emails.rejection_reason', [], $locale) }}**
|
|
|
|
{{ $rejectionReason }}
|
|
@endif
|
|
|
|
{{ __('emails.booking_rejected_next_steps', [], $locale) }}
|
|
|
|
{{ __('emails.booking_rejected_contact', [], $locale) }}
|
|
|
|
{{ __('emails.regards', [], $locale) }}<br>
|
|
{{ config('app.name') }}
|
|
</div>
|
|
@else
|
|
# {{ __('emails.booking_rejected_title', [], $locale) }}
|
|
|
|
{{ __('emails.booking_rejected_greeting', ['name' => $user->company_name ?? $user->full_name], $locale) }}
|
|
|
|
{{ __('emails.booking_rejected_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') }}
|
|
|
|
@if($rejectionReason)
|
|
**{{ __('emails.rejection_reason', [], $locale) }}**
|
|
|
|
{{ $rejectionReason }}
|
|
@endif
|
|
|
|
{{ __('emails.booking_rejected_next_steps', [], $locale) }}
|
|
|
|
{{ __('emails.booking_rejected_contact', [], $locale) }}
|
|
|
|
{{ __('emails.regards', [], $locale) }}<br>
|
|
{{ config('app.name') }}
|
|
@endif
|
|
@endcomponent
|