@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.text6') }}

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

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

**{{ __('app.date') }}**: {{ \Carbon\Carbon::parse($reservation->reservation_date_time->format('Y-m-d H:i:s'), $settings->timezone ?? timezone())->translatedFormat(($settings->date_format ?? dateFormat()) . ' (l)') }}

**{{ __('app.time') }}**: {{ \Carbon\Carbon::parse($reservation->reservation_date_time->format('Y-m-d H:i:s'), $settings->timezone ?? timezone())->translatedFormat($settings->time_format ?? timeFormat()) }}

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

@if ($reservation->area)
**{{ __('modules.reservation.preferredArea') }}**: {{ $reservation->area->area_name }}
@endif

@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
