|
Invoice Number: {{ $invoiceNumber }} Branch: {{ $branch->name }} Date: {{ $summary->created_at->format('d M Y') }} Exchange Rate: {{ number_format($exchangeRate, 2) }} Total Payment: @foreach ($existingPayments as $payment) {{ number_format($payment['amount'], 2) }} {{ strtoupper($payment['currency']) }} @endforeach |
@if(isset($customer->banks[0]))
{{ $customer->banks[0]->bank_account_number ?? '-' }} | {{ $customer->banks[0]->bank_account_name ?? '-' }} {{ $customer->banks[1]->bank_account_number ?? '-' }} | {{ $customer->banks[1]->bank_account_name ?? '-' }} |
||||||||||
| No | Address | Phone | Entry | Completed | Total (USD) | Total (KHR) | COD | Shop | Other Fee | Delivery Fee | Status | Note | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| USD | KHR | USD | KHR | |||||||||||
| {{ $index + 1 }} | {{ $delivery->receiver_address ?? '-' }} | {{ $delivery->receiver_phone ?? '-' }} | {{ \Carbon\Carbon::parse($delivery->pickup_at)->format('d/m/Y h:i A') }} | {{ $delivery->completed_at ? \Carbon\Carbon::parse($delivery->completed_at)->format('d/m/Y h:i A') : '-' }} | {{ number_format($delivery->amount_usd, 2) }} | {{ number_format($delivery->amount_khr, 0) }} | {{ number_format($driverUsd + $companyUsd, 2) }} | {{ number_format($driverKhr + $companyKhr, 0) }} | {{ number_format($shopUsd, 2) }} | {{ number_format($shopKhr, 0) }} | {{ number_format($extraFeeUsd, 2) }} | {{ number_format($deliveryFeeUsd, 2) }} | {{ ucfirst($delivery->status) }} | {{ $delivery->note }} |
| Total Collected: | {{ number_format($totalAmountUsd, 2) }} | {{ number_format($totalAmountKhr, 0) }} | {{ number_format($totalDriverUsd, 2) }} | {{ number_format($totalDriverKhr, 0) }} | {{ number_format($totalShopUsd, 2) }} | {{ number_format($totalShopKhr, 0) }} | {{ number_format($totalPaidAnyExtraFee, 2) }} | {{ number_format($totalDeliveryFee, 2) }} | ||||||
| No | Address | Phone | Entry | Completed | Total (USD) | Total (KHR) | Status | Note |
|---|---|---|---|---|---|---|---|---|
| {{ $d + 1 }} | {{ $del->receiver_address ?? '-' }} | {{ $del->receiver_phone ?? '-' }} | {{ \Carbon\Carbon::parse($del->pickup_at)->format('d/m/Y h:i A') }} | N/A | {{ number_format($del->amount_usd, 2) }} | {{ number_format($del->amount_khr, 0) }} | @php $statusClass = match ($del->status) { 'in_stock' => 'status-in-stock', 'assigned' => 'status-assigned', 'completed' => 'status-completed', 'canceled' => 'status-canceled', default => 'status-default', }; @endphp {{ ucfirst(str_replace('_', ' ', $del->status)) }} | {{ $del->cancelReason?->reason ?? $del->note ?? '-' }} |