@extends('b2c.layouts.app') @section('title', 'Booking '.$booking->voucher_no) @section('content') ← Bookings

{{ $booking->voucher_no }} @include('b2c.partials.status', ['status' => $booking->status]) @if($booking->is_sandbox)SANDBOX@endif

@if($booking->voucher_url) Voucher @endif
Booking
Package
{{ $booking->package?->title }}
Travel date
{{ $booking->travel_date?->format('l, d M Y') }}
Travellers
{{ collect($booking->pax)->filter()->map(fn ($n, $t) => "$n ".strtolower($t))->implode(', ') }}
Lead traveller
{{ $lead['name'] ?? '—' }} {{ isset($lead['phone']) ? '· '.$lead['phone'] : '' }} {{ isset($lead['email']) ? '· '.$lead['email'] : '' }}
Booking ID
{{ $booking->booking_ref }}
Your order ref
{{ $booking->bdtickets_order_ref ?: '—' }}
Sold via
{{ $booking->channel === 'portal' ? 'Partner portal' : 'API' }}
Confirmed
{{ $booking->confirmed_at?->timezone(config('app.timezone'))->format('d M Y H:i') }}
@if($booking->booking?->passengers?->isNotEmpty())
Traveller list
    @foreach($booking->booking->passengers as $p)
  • {{ $p->full_name }}{{ ucfirst($p->passenger_type) }}
  • @endforeach
@endif @if($booking->refund)
Cancellation
Cancelled at
{{ $booking->cancelled_at?->format('d M Y H:i') }}
Policy applied
{{ $booking->refund['policyTierApplied'] ?? '' }} ({{ $booking->refund['penaltyPercent'] ?? '' }}% penalty)
Refundable to customer
{{ $booking->refund['refundableAmount'] ?? '' }} {{ $booking->currency }}
@endif
Money
  • Customer price{{ $booking->amount_confirmed }} {{ $booking->currency }}
  • Wallet charge{{ $booking->is_sandbox ? 'none (sandbox)' : $booking->amount_payable_to_provider }}
  • Your commission{{ number_format((float) $booking->amount_confirmed - (float) ($booking->amount_payable_to_provider ?? $booking->amount_confirmed), 2) }}
@if($booking->status === 'CONFIRMED')
Cancel booking

{{ $booking->cancellation_policy['summary'] ?? 'Cancellation charges follow the package policy.' }}

@if(! empty($booking->cancellation_policy['tiers']))
    @foreach($booking->cancellation_policy['tiers'] as $tier)
  • {{ $tier['daysBeforeTravelMin'] }}+ days before travel: {{ $tier['penaltyPercent'] }}% charge
  • @endforeach
@endif
@csrf
@endif
@endsection