@php $cost = $package->calculateTotalCost(); @endphp

INVOICE

Invoice #: {{ $invoice->invoice_number }}

Date: {{ $invoice->created_at->format('M d, Y') }}

Customer Name: {{ $invoice->user->name }}

Phone: {{ $invoice->user->mobile_number ?? 'N/A' }}

Package Details

Tracking Number Weight Shipping From Shipping To Shipping Cost
{{ $package->tracking_number ?? 'N/A' }} {{ $package->calculateWeight() }} kg {{ $package->shipping_from ?? 'N/A' }} {{ $package->shipping_to ?? 'N/A' }} ${{ number_format($cost['total'], 2) }}

Items in Package

@foreach ($package->items as $item) @endforeach
Item Tracking Number Item ID Quantity Weight
{{ $item->tracking_number }} {{ $item->id }} {{ $item->quantity }} {{ $item->weight ?? 'N/A' }} kg

Total Amount Paid: ${{ number_format($invoice->amount, 2) }} USD

Transaction ID: {{ $invoice->transaction_id ?? 'N/A' }}