@lang('messages.selectBookingDetail')
@php
$startOfWeek = now()->timezone(timezone());
$endOfWeek = now()->timezone(timezone())->addDays(6);
$period = \Carbon\CarbonPeriod::create($startOfWeek, $endOfWeek);
$currentTime = now()->timezone(timezone())->format('H:i:s');
@endphp
{{-- Date Selection --}}
{{-- Guest Selection --}}
{{-- Slot Type Selection --}}
@php
$slotTypes = \App\Livewire\Shop\BookATable::SLOT_TYPES;
$selectedDay = \Carbon\Carbon::parse($date)->format('l');
@endphp
@foreach($slotTypes as $type)
@php
$isSlotTypeDisabled = !isset($availableSlotTypes[$type]) || !in_array($selectedDay, $availableSlotTypes[$type] ?? []);
@endphp
-
$isSlotTypeDisabled
])>
@lang('modules.reservation.' . $type)
@endforeach
{{-- Time Slots --}}
@lang('messages.selectTimeSlot')
@if (empty($timeSlots) || !$this->isSlotTypeAvailable())
@lang('messages.noTimeSlot')
@endif
@error('availableTimeSlots')
{{ $message }}
@enderror
{{-- Reservation Form (only shown when slots are available) --}}
@if (!empty($timeSlots) && $this->isSlotTypeAvailable())
@if (is_null(customer()))
@lang('messages.loginForReservation')
@else
@lang('app.reserveNow')
@endif
@endif