{{-- Availability Info Banner --}} @php $bookedDates = $calendarData['booked'] ?? []; $bufferDates = $calendarData['buffer'] ?? []; @endphp @if($listing->buffer_hours > 0 || count($bookedDates) > 0 || count($bufferDates) > 0)

Booking Availability Information

    @if($listing->buffer_hours > 0)
  • {{ $listing->buffer_hours }} hour preparation buffer after each checkout
  • @endif
  • Select a date to see available time slots
@endif
{{-- Slot Calendar Picker --}}
{{-- Calendar will be rendered here by JavaScript --}}
@error('check_in') {{ $message }} @enderror @error('check_in_hour') {{ $message }} @enderror
{{-- Selected Slot Display --}} @if($check_in && $check_in_hour !== '')

Check-in Selected:

{{ \Carbon\Carbon::parse($check_in)->format('F d, Y') }} at {{ \Carbon\Carbon::parse($check_in_hour . ':00')->format('g:i A') }}

@endif {{-- Checkout Slot Picker --}} @if($check_in && $check_in_hour !== '')
{{-- Checkout calendar will be rendered here --}}
@error('check_out') {{ $message }} @enderror @error('check_out_hour') {{ $message }} @enderror
@endif {{-- Selected Checkout Display --}} @if($check_out && $check_out_hour !== '')

Check-out Selected:

{{ \Carbon\Carbon::parse($check_out)->format('F d, Y') }} at {{ \Carbon\Carbon::parse($check_out_hour . ':00')->format('g:i A') }}

@endif {{-- Rest of the form (guests, locations, add-ons, payment) --}} @if($check_in && $check_out && $check_in_hour !== '' && $check_out_hour !== '')
@error('guests') {{ $message }} @enderror
{{-- Pickup/Dropoff Locations --}} @if($listing->pickupLocations && $listing->pickupLocations->count() > 0)

Pickup & Dropoff Locations

@error('pickup_location_id') {{ $message }} @enderror
@error('dropoff_location_id') {{ $message }} @enderror
@endif {{-- Add-ons --}} @if($listing->addOns && $listing->addOns->count() > 0)
@foreach($listing->addOns as $addOn) @endforeach
@endif {{-- Payment Method --}}
@error('payment_channel') {{ $message }} @enderror
{{-- Price Breakdown --}} @if($days > 0)
RM {{ number_format($listing->price_per_day, 2) }} x {{ $days }} days RM {{ number_format($subtotal, 2) }}
@if($discount_amount > 0)
Discount ({{ number_format($discount_percentage, 0) }}% OFF) -RM {{ number_format($discount_amount, 2) }}
@endif @if($addOnsTotal > 0)
Add-ons ({{ count($selectedAddOns) }}) +RM {{ number_format($addOnsTotal, 2) }}
@endif
Subtotal RM {{ number_format($booking_amount, 2) }}
@if($gateway_fee > 0)
Gateway Fee RM {{ number_format($gateway_fee, 2) }}
@endif
Total RM {{ number_format($total_price, 2) }}
@endif @endif
{{-- Inline Slot Calendar JavaScript --}} @script @endscript