@component('mail::layout')

@slot('header')
@component('mail::header', ['url' => route('shop_restaurant', ['hash' => $settings->hash])])
{{ $settings->name }}
@endcomponent
@endslot

# {{ __('app.hello') }} {{ $notifiable->name }},

{{ __('email.reservation.text4') }}

## {{ __('email.reservation.text2') }}

**{{ __('modules.customer.name') }}**: {{ $reservation->customer->name }}

**{{ __('app.date') }}**: {{ $reservation->reservation_date_time->translatedFormat(($settings->date_format ?? dateFormat()) . ' (l)') }}

**{{ __('app.time') }}**: {{ $reservation->reservation_date_time->translatedFormat($settings->time_format ?? timeFormat()) }}

**{{ __('modules.reservation.guests') }}**: {{ $reservation->party_size }}

@php
    $actionText = __('email.reservation.action');
    $actionUrl = route('my_bookings', ['hash' => $settings->hash]);
@endphp

@component('mail::button', ['url' => $actionUrl])
{{ $actionText }}
@endcomponent

@lang('app.regards'),<br>
{{ $settings->name }}

---
{{-- Subcopy --}}
@isset($actionText)
<x-slot:subcopy>
@lang(
    'messages.troubleClickingButton',
    [
        'actionText' => $actionText,
    ]
) <span class="break-all"> {{ $actionUrl }} </span>
</x-slot:subcopy>
@endisset

{{-- Footer --}}
@slot('footer')
@component('mail::footer')
    © {{ date('Y') }} {{ $settings->name }}. @lang('app.allRightsReserved')
@endcomponent
@endslot
@endcomponent
