@php /** @var \App\Models\invoice\InvoiceServices|null $invoiceService */ /** @var \App\Models\Profile\Profile|null $profile */ /** @var \App\Models\General\Companies|null $company */ /** @var \App\Models\Profile\Customer|null $customer */ /** @var \App\Models\User|null $executive */ $profileNumber = $profile?->profile_number ?? ''; $customerName = $customer?->full_name ?? ''; $customerPhone = $customer?->phone ?? ''; $customerEmail = $customer?->email ?? ''; $companyName = $company?->currentTranslation?->name_company ?? $company?->name_company ?? 'Company'; $logoUrl = $company && $company->invoice_logo && file_exists(public_path($company->invoice_logo)) ? public_path($company->invoice_logo) : ($company?->logo ?? null); $pnr = $invoiceService?->pnr_number ?? ''; $officeId = $invoiceService?->office_id ?? ''; $ticketDate = $invoiceService?->ticket_date ? \Carbon\Carbon::parse($invoiceService->ticket_date)->format('Y-m-d') : ''; $directionType = $invoiceService?->direction_type ?? ''; $flightStatus = $invoiceService?->status ?? 'Issued'; $segments = $invoiceService?->segments ?? collect(); $paxs = $invoiceService?->paxs ?? collect(); $hasPaxs = $paxs->isNotEmpty(); @endphp
@if($logoUrl) Logo @else
@endif
{{ $companyName }}

FLIGHT VOUCHER

Issued: {{ now()->format('Y-m-d') }}

Customer Information
Primary Guest
{{ $customerName }}
Profile Number
{{ $profileNumber }}
Contact
{{ trim($customerPhone . ' / ' . $customerEmail, ' /') }}
Booking Reference
PNR (Reference)
{{ $pnr }}
Office ID
{{ $officeId }}
Ticket Date
{{ $ticketDate }}
Service Type
{{ $directionType }}
Domain / Agency
{{ $companyName }}
Status
{{ $flightStatus }}
Passenger Information (Paxes)
@if($hasPaxs) @foreach($paxs as $pax) @endforeach @else @endif
Name
{{ $pax->name ?? '—' }}
Passport Number
{{ $pax->passport_number ?? '—' }}
Name (Title)
{{ $customerName }}
Passport Number
{{ $customer?->passport ?? '' }}
Flight Itinerary (Segments)
@if($segments->isNotEmpty())
@foreach($segments as $seg) @endforeach
Origin Destination Date Time Flight
{{ $seg->originAirport?->code ?? $seg->originAirport?->name ?? '—' }} {{ $seg->destinationAirport?->code ?? $seg->destinationAirport?->name ?? '—' }} {{ $seg->date ? \Carbon\Carbon::parse($seg->date)->format('Y-m-d') : '—' }} {{ $seg->time ?? '—' }} {{ $seg->flightCompany?->name ?? $seg->flightCompany?->code ?? '—' }}{{ $seg->flight_number ? ' ' . $seg->flight_number : '' }}
@endif
Assigned Specialist
{{ $executive?->name ?? '' }}
@if ($executive)
Employee ID: #{{ $executive->employee_number ?? $executive->id }}
{{ $executive->email }}
@endif

Authorized Signature

Please present this voucher and a valid ID at check-in. {{ $company ? trim(($company->companie_phone ?? '') . ' | ' . ($company->companie_email ?? ''), ' |') : 'Support' }}