{{-- @php $firstInvoice = $refund_invoice->first(); $total = $refund_invoice->sum(fn($inv) => $inv->payment->total_amount ?? 0); $paid = $refund_invoice->sum(fn($inv) => $inv->payment->paid_amount ?? 0); $due = $refund_invoice->sum(fn($inv) => $inv->payment->due_amount ?? 0); @endphp --}}
{{-- ===== LOGO SECTION - MOVED TO TOP ===== --}}
Company Logo
{{-- ===== HEADER ===== --}}
INVOICE
Victory Travel Pte Ltd
{{-- Removed logo from here --}}
{{-- ===== INVOICE META ===== --}}
Refund Invoice Date: {{ date('d M Y', strtotime($refund_invoice->refund_date)) }}
Refund Invoice No: {{ $refund_invoice->id }}
Reference: {{ $refund_invoice->ticket_no ?? 'N/A' }}
{{-- ===== TABLE ===== --}}
Description Quantity Unit Price Amount SGD
Refund Type: {{ $refund_invoice->refund_type }}
Ticket No: {{ $refund_invoice->ticket_no ?? 'N/A' }}
{{--
Flight Date: {{ date('d M Y', strtotime($invoice->flight_date)) }}
--}}
1 {{ number_format($refund_invoice->refund_amount, 2) }} {{ number_format($refund_invoice->refund_amount ?? 0, 2) }}
{{-- ===== TOTALS ===== --}}
Invoice Total {{ number_format($refund_invoice->refund_amount, 2) }}
Total Paid {{ number_format($refund_invoice->refund_amount, 2) }}
Amount Due {{ number_format(0, 2) }}
{{-- ===== FOOTER ===== --}}