{{ $delivery->code }}
-
@foreach($delivery->statuses as $status)
@php
$color = match(strtolower($status->status)) {
'booking' => 'bg-warning',
'in_progress' => 'bg-primary',
'completed' => 'bg-success',
'cancelled', 'returned' => 'bg-error',
default => 'bg-slate-300',
};
@endphp
-
@if(strtolower($status->status) == 'completed') @endif
{{ $status->status }} | {{ $status->changedBy->name ?? 'System' }}
{{ $status->created_at->diffForHumans() }}{{ $status->changed_at}}{{ $status->note ?? 'Status updated.' }}
@endforeach
Delivery Invoice
Invoice #: {{ $delivery->code }}
Shop Name: {{ $delivery->customer?->customer_name }}
Date: {{ $delivery->pickup_at }}
| Receiver | Amount USD | Amount KHR |
|---|---|---|
| {{ $delivery->receiver_phone }} | {{ $delivery->amount_usd }} | {{ $delivery->amount_khr }} |
| Address: {{ $delivery->receiver_address }} | ||
Total: {{ $delivery->amount_usd }} USD | {{ $delivery->amount_khr }} KHR
Scan for details
Thank you!
{{ $delivery->customer->customer_name ?? 'Unknown Customer' }} | {{ $delivery->customer->phone ?? 'No Phone' }} | {{ $delivery->created_at }}
${{ number_format($delivery->delivery_price, 2) }}
Delivery Price
${{ $delivery->amount_usd }}
Amount USD
៛{{ $delivery->amount_khr }}
Amount KHR
{{ $delivery->deliveryBy->display_name ?? 'Not Yet Assign' }}
Delivery By
Receiver Phone
{{ $delivery->receiver_phone ?? 'No Phone' }}
Receiver Address
{{ $delivery->receiver_address ?? 'No Address' }}
| Date | Paid To | Amount | Currency | Payment Method | Noted |
|---|---|---|---|---|---|
| {{ $payment->created_at->format('Y-m-d H:i:s') }} | {{ ucfirst($payment->payment_to) }} | {{ number_format($payment->amount, 2) }} | {{ $payment->currency }} | {{ $payment->payment_method }} | {{ $payment->note}} |