@extends('pdf.layout', [ 'documentTitle' => 'E-Ticket', 'documentNo' => $ticket->ticket_no ?: $ticket->pnr, 'documentStatus' => $ticket->status, 'documentStatusTone' => match($ticket->status) { 'Confirmed' => 'paid', 'Cancelled', 'Refunded' => 'void', default => 'due', }, ]) @section('body') @php $symbol = currency_symbol(); @endphp
Passenger
{{ $ticket->passenger_name }}
Booking reference (PNR)
{{ $ticket->pnr ?: '—' }}

Flight

Airline Route Date Ticket no
{{ $ticket->airline ?: '—' }} {{ $ticket->route ?: '—' }} {{ $ticket->flight_date ? dateFormat($ticket->flight_date) : '—' }} {{ $ticket->ticket_no ?: '—' }}
Fare {{ $symbol }}{{ number_format((float) $ticket->fare, 2) }}
@if(in_array($ticket->status, ['Cancelled', 'Refunded'], true))
This ticket is {{ strtolower($ticket->status) }} and is not valid for travel. It is reproduced for your records only.
@else
Check in at least 3 hours before departure for international flights, 2 hours for domestic. Carry the passport or photo ID the ticket was issued against — the name must match exactly. Baggage allowance and fare rules are set by the airline.
@endif @endsection