@extends('layouts.master') @section('title', ($editingBooking ? 'Edit Booking — ' : 'Checkout — ') . $product->name) @php($bookingRoutePrefix = 'car-rental.') @section('custom-styles') @endsection @section('content')
{{-- ═══════════ LEFT: ORDER SUMMARY ═══════════ --}} {{-- ═══════════ RIGHT: BOOKING FORM ═══════════ --}}
@if($editingBooking) @endif {{-- Page heading --}}
{{ $editingBooking ? 'Edit Booking' : 'Complete Your Booking' }}
{{ $editingBooking ? 'Update booking details, taxes, and customer information' : 'Fill in your details below to confirm the reservation' }}
@if($errors->any())
    @foreach($errors->all() as $err)
  • {{ $err }}
  • @endforeach
@endif
@csrf @if($editingBooking) @endif {{-- ── SECTION 1: Customer Info ── --}} @if($editingBooking)
Change Item
Edit the booked item, dates, taxes, discount, and subtotal before saving
Status Item Qty Date Tax Total
{{ ucfirst(str_replace('_', ' ', $editingBooking->status ?? 'pending')) }}
{{ $product->name }}
{{ $appliedRateName ?: ucfirst(str_replace('_', ' ', $pricingRateType)) }}
1 {{ $start->format('M d, Y g:i A') }}
{{ $end->format('M d, Y g:i A') }}
${{ number_format($taxAmount, 2) }} ${{ number_format($total, 2) }} Change
@endif
{{ $editingBooking ? 'Customer Details' : 'Customer Information' }}
{{ $editingBooking ? 'Update the booking contact details' : 'Your contact details for this booking' }}
@error('customer_name')
{{ $message }}
@enderror
@error('customer_email')
{{ $message }}
@enderror
@error('customer_phone')
{{ $message }}
@enderror
@if(request()->routeIs('car-rental.*')) @else @endif
{{-- ── SECTION 2: Rental Location ── --}}
Rental Location *
Where will you be picking up the vehicle?
@error('rental_location')
{{ $message }}
@enderror
{{-- ── SECTION 3: Booking Details ── --}}
Booking Details
Additional information about your rental
@error('is_wedding')
{{ $message }}
@enderror
@unless($editingBooking)
@endunless
{{-- ── SECTION 4: Wedding Fields (conditional) ── --}} {{-- ── Submit ── --}} @if(request()->routeIs('car-rental.*') && filled($businessSetup?->company_policy))
Business Policy
Please review the rental terms before confirming your booking
{!! $businessSetup->company_policy !!}
@error('accepted_company_policy')
{{ $message }}
@enderror
@endif
Back
@endsection @section('custom-scripts') @endsection