@extends('layouts.app') @section('title', 'Print Invoice') @section('content')

BOOKING INVOICE UMH

Booking Date: {{ $booking->booking_date ?? $booking->created_at ?? '-' }}

Customer Name: {{ $booking->customer->name ?? '-' }}

Iqama No: {{ $booking->customer->iqama_no ?? '-' }}

Phone Number: {{ $booking->customer->mobile_no ?? '-' }}

Address: {{ $booking->customer->address ?? '-' }}

Invoice Date: {{ $invoiceDate ?? ($booking->created_at ?? '-') }}

Invoice Number: {{ $booking->invoice_id ?? '-' }}

Branch: {{ $booking->branch->name ?? 'RUH' }}

Office: {{ $booking->office->name ?? 'RUH' }}

Representative: {{ $booking->user->name ?? '-' }}

Offer: {{ $offer ?? 'NO' }}

Finger Location: {{ $booking->fingerprint_location ?? '-' }}

Finger Deadline: {{ $fingerprintDeadline ?? '-' }}

PASSENGER & PACKAGE DETAILS

@forelse($booking->passengers as $index => $passenger) @empty @endforelse
Pax No Name of Passengers Gender Passport Number Package Duration Package Value
{{ $index + 1 }} {{ $passenger->first_name ?? '' }} {{ $passenger->last_name ?? '' }} {{ $passenger->gender ?? '-' }} {{ $passenger->passport_no ?? '-' }} {{ $booking->package->package_name ?? 'Package' }} {{ $passenger->stay_duration ?? '-' }} {{ $passenger->package_value ?? '-' }}
No passengers

PACKAGE CALCULATION

Sub Total: {{ number_format($subTotal ?? 0, 0) }}
Total Packages: {{ $totalPackages ?? 0 }}
Fingerprint Charge: {{ number_format($fingerprintCharge ?? 0, 0) }}
Discount: {{ number_format($discount ?? 0, 0) }}
GRAND TOTAL: {{ number_format($grandTotal ?? 0, 0) }}

FLIGHT DETAILS

@forelse($booking->passengers as $index => $passenger) @empty @endforelse
Pax Type Airlines Route Est. Flight Date Baggage (Kg) Cabin Meal Flight Type Remarks
{{ $index + 1 }} {{ $passenger->passenger_type?->value ?? '-' }} {{ $passenger->ticketFare?->airline?->name ?? '-' }} {{ $passenger->route_display }} {{ $passenger->flight_date_display }} {{ $passenger->baggage_display }} {{ $passenger->ticketFare?->airlineClass?->travelClass?->name ?? '-' }} {{ $passenger->meal_display }} {{ $passenger->flight_type_display }} {{ $booking->remarks ?? '-' }}
No flight details

PAYMENT SUMMARY

Total Amount: {{ number_format($grandTotal ?? 0, 0) }}
Previous Paid Amount: {{ number_format($totalPaid ?? 0, 0) }}
Current Paid Amount: {{ number_format($currentPaid ?? 0, 0) }}
Due Amount: {{ number_format($dueAmount ?? 0, 0) }}

Offer: {{ $offer ?? 'N/A' }}

Conditions: ________________________

Back
@endsection