{{-- Single Sliding Container --}}
{{-- Main Calendar Container - Auto Height --}}
{{-- Step 1: Check-in Date --}}

Select Check-in Date

{{-- Calendar Navigation --}}

{{-- Custom Calendar --}}
{{-- Legend --}}
Available Buffer Period Fully Booked
{{-- Step 2: Check-in Time --}}

Select Check-in Time

Date:

{{-- Time Slots Grid --}}
Available Buffer Booked
{{-- Step 3: Check-out Date --}}

Select Check-out Date

{{-- Calendar Navigation --}}

{{-- Custom Checkout Calendar --}}
{{-- Legend --}}
Available Buffer Period Fully Booked
{{-- Step 4: Check-out Time --}}

Select Check-out Time

Date:

{{-- Time Slots Grid --}}
Available Buffer Booked
{{-- Step 5: Booking Details --}}

Booking Details

{{-- Booking Summary --}}
Check-in:
Check-out:
Duration:
{{-- Form Fields --}}
{{-- Hidden fields for Livewire --}} {{-- Guests --}}
@error('guests') {{ $message }} @enderror
{{-- Pickup/Dropoff Locations --}} @if($listing->pickupLocations && $listing->pickupLocations->count() > 0)
@endif {{-- Add-ons --}} @if($listing->addOns && $listing->addOns->count() > 0)
@foreach($listing->addOns as $addOn) @endforeach
@endif {{-- Promo Code --}}
@if($applied_promo)
{{ $applied_promo->code }} - {{ $applied_promo->formatted_discount }} off
@else
@if($promo_error)

{{ $promo_error }}

@endif @endif
{{-- Payment Method --}}
{{-- Price Summary --}}
@if($days > 0)
RM {{ number_format($listing->price_per_day, 2) }} × {{ $days }} days RM {{ number_format($subtotal, 2) }}
@if($discount_amount > 0)
Discount ({{ $discount_percentage }}%) -RM {{ number_format($discount_amount, 2) }}
@endif @if($promo_discount > 0)
Promo ({{ $applied_promo->code }}) -RM {{ number_format($promo_discount, 2) }}
@endif @if($addOnsTotal > 0)
Add-ons +RM {{ number_format($addOnsTotal, 2) }}
@endif @if($gateway_fee > 0)
Gateway Fee RM {{ number_format($gateway_fee, 2) }}
@endif
Total RM {{ number_format($total_price, 2) }}
@else
Calculating price...
@endif
{{-- Validation Errors --}} @if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @php $requiresPickupLocation = $listing->pickupLocations && $listing->pickupLocations->count() > 0; $canSubmit = $days > 0 && (!$requiresPickupLocation || ($pickup_location_id && $dropoff_location_id)); @endphp
{{-- Booking Data - Must be set BEFORE script loads --}} {{-- Custom Booking Calendar Logic with Livewire integration --}} {{-- Livewire Re-initialization Handler --}} {{-- Custom Styles --}}