@php $booking = $booking ?? null; @endphp
@php $selCustomer = old('customer_id', $booking->customer_id ?? ''); @endphp {{-- Picks from the Customers CRUD so the booking is linked by customer_id. A typed name would leave it NULL and the record would never show up in the customer's own portal. --}} @error('customer_id')

{{ $message }}

@enderror @if(hasPermission('customer_create')) {{ ___('admin.not_in_the_list_ead300') }} {{ ___('admin.add_a_customer_202702') }} @endif
@php $selAgent = old('agent_id', $booking->agent_id ?? ''); @endphp {{-- The agent portal shows an agent only their own production, and it finds it through this column — a booking saved without it is invisible to the agent who made it. --}} @error('agent_id')

{{ $message }}

@enderror
@php $selPkg = old('package_id', $booking->package_id ?? ''); @endphp @error('package_id')

{{ $message }}

@enderror
@error('customer_email')

{{ $message }}

@enderror
@error('customer_phone')

{{ $message }}

@enderror
@error('travel_date')

{{ $message }}

@enderror
@error('travelers')

{{ $message }}

@enderror
{{-- The list price. A promo code comes off it, so what the customer owes is this figure minus the discount, not this figure. --}} {{ ___('admin.price_before_any_promo_code_7abb33') }} @error('amount')

{{ $message }}

@enderror
@if(isset($booking) && $booking->hasDiscount()) {{ ___('admin.currently_e302e4') }} −{{ currency_symbol() }}{{ number_format($booking->totalDiscount(), 2) }} @if((float) $booking->points_discount > 0) {{ ___('admin.incl_b21a3c') }} {{ number_format($booking->points_redeemed) }} {{ ___('admin.loyalty_points_d189a6') }} @endif → {{ ___('admin.payable_73e37c') }} {{ currency_symbol() }}{{ number_format((float) $booking->amount, 2) }} @else {{ ___('admin.an_unusable_code_is_ignored_and_reported_it_never_block_e6fe41') }} @endif @error('coupon_code')

{{ $message }}

@enderror
@php $selMethod = old('payment_method', $booking->payment_method ?? ''); @endphp {{-- Used when the booking is marked paid: the receipt is recorded against this account, and Wallet spends the customer's balance. --}} {{ ___('admin.marking_a_booking_3b9db6') }} {{ ___('admin.paid_9e1f11') }} {{ ___('admin.raises_its_invoice_and_records_the_receipt_automaticall_190f81') }} @error('payment_method')

{{ $message }}

@enderror
@php $selStatus = old('status', $booking->status ?? 'pending'); @endphp @error('status')

{{ $message }}

@enderror
@php $selPay = old('payment_status', $booking->payment_status ?? 'unpaid'); @endphp Independent of the booking status. A bank transfer becomes paid when you approve it under Payment Verification. @error('payment_status')

{{ $message }}

@enderror
@php $selSup = old('supplier_status', $booking->supplier_status ?? 'pending'); @endphp @error('supplier_status')

{{ $message }}

@enderror
@php $selSupplier = old('supplier_id', $booking->supplier_id ?? ''); @endphp @error('supplier_id')

{{ $message }}

@enderror
@error('supplier_reference')

{{ $message }}

@enderror
@error('notes')

{{ $message }}

@enderror
@push('scripts') @endpush