@if(!$restaurant->enable_customer_reservation)

@lang('modules.reservation.reservationsDisabled')

@lang('modules.reservation.reservationsDisabledDescription')

@else

@lang('messages.selectBookingDetail')

{{-- Date Selection --}}
@php $dateFormat = $restaurant->date_format ?? 'd-m-Y'; $minDate = now()->timezone(timezone())->format($dateFormat); $maxDate = now()->timezone(timezone())->addDays(6)->format($dateFormat); @endphp @error('date') @enderror
{{-- Guest Selection --}}
@error('numberOfGuests') @enderror
{{-- Slot Type Selection --}}
{{-- Time Slots --}}

@lang('messages.selectTimeSlot')

@if (empty($timeSlots) || !$this->isSlotTypeAvailable()) @lang('messages.noTimeSlot') @endif
    @foreach ($timeSlots as $timeSlot) @php $isDisabled = $this->isTimeSlotDisabled($timeSlot); @endphp
  • @endforeach
@error('availableTimeSlots') @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
@endif