@php $logoPath = public_path('assets/img/prime-next-logo-original.png'); $logoData = is_file($logoPath) ? 'data:image/png;base64,'.base64_encode(file_get_contents($logoPath)) : null; $customerName = $shipment->user?->name ?: ($shipment->destination_name ?? ''); $items = [[ 'description' => $shipment->package_type ?: $shipment->service_type, 'rate' => (float)($invoice->subtotal ?? 0), 'qty' => 1, 'amount' => (float)($invoice->total ?? $invoice->subtotal ?? 0), ]]; @endphp
@if($logoData)@else PRIME NEXT
COURIER EXPRESS LTD. @endif
PRIME NEXT COURIER EXPRESS LTD
95, Marine Road, APAPA. 08113769513
Primenextcourier@gmail.com
INVOICE NO: {{ $invoice->invoice_number ?? ('PNC-INV-'.$invoice->id) }}
DATE: {{ optional($invoice->issued_at ?? $invoice->created_at)->format('d/m/Y') }}
DUE DATE: {{ optional($invoice->due_date ?? null)->format('d/m/Y') ?? '—' }}
INVOICE
BILL TO:
{{ $customerName }}
{{ $shipment->user?->email ?? '' }}
{{ $shipment->destination_address ?? '' }}
@for($i=0;$i<10;$i++)@endfor
DESCRIPTIONRATEQTYAMOUNT
{{ $shipment->service_type }} — {{ $shipment->package_type ?? 'Shipment' }}
{{ $shipment->tracking_id }}
{{ $invoice->currency }} {{ number_format((float)($invoice->subtotal ?? 0),2) }}1{{ $invoice->currency }} {{ number_format((float)($invoice->total ?? 0),2) }}
 
TOTAL{{ $invoice->currency }} {{ number_format((float)($invoice->total ?? 0),2) }}
BALANCE DUE{{ $invoice->currency }} {{ number_format((float)($invoice->total ?? 0),2) }}