@if (loading()) {
} @else if (notFound() || booking() === null) {

Booking not found

It may belong to another agency, or have been removed.

Back to bookings

} @else { @let b = booking()!; @if (justBooked() && b.status === 'confirmed') {
Booking confirmed. Reference {{ b.bookingReference }} — a confirmation would be sent to {{ b.contactEmail }}.
}

Booking {{ b.bookingReference }}

Created {{ b.createdAt | date: 'd MMM y, HH:mm' }} by {{ b.bookedBy }}

{{ b.status }} ← All bookings
@if (error()) { }

Itinerary

{{ b.flight.airline.iataCode }}
{{ b.flight.airline.name }} {{ b.flight.flightNumber }} · {{ b.flight.aircraft }} · {{ cabinLabel(b.flight.cabinClass) }}
{{ b.flight.departureTime | date: 'HH:mm' }} {{ b.flight.origin.iataCode }} {{ b.flight.origin.city }} · {{ b.flight.origin.name }} {{ b.flight.departureTime | date: 'EEE d MMM y' }}
{{ b.flight.durationMinutes | duration }}
{{ b.flight.arrivalTime | date: 'HH:mm' }} {{ b.flight.destination.iataCode }} {{ b.flight.destination.city }} · {{ b.flight.destination.name }} {{ b.flight.arrivalTime | date: 'EEE d MMM y' }}

Travellers

{{ b.passengerCount }} on this booking
@for (p of b.passengers; track p.id) { }
Name Date of birth Passport Seat
{{ p.firstName }} {{ p.lastName }} {{ p.dateOfBirth ? (p.dateOfBirth | date: 'd MMM y') : '—' }} {{ p.passportNumber || '—' }} {{ p.seatNumber || 'Not assigned' }}
}