{{-- Public COD doorstep online payment page reached via QR scan or link from delivery boy's phone. No auth required — order UUID token in URL acts as verification. --}} Pay Order #{{ $order->slug }}
@php $isPaid = (string) $order->payment_status === (string) \App\Enums\PaymentStatusEnum::COMPLETED() || $order->is_cod_paid_online; $orderCurrencyCode = strtoupper((string) ($order->currency_code ?: $order->base_currency_code ?: '')); $money = fn ($amount) => \App\Support\Currency\CurrencySnapshotPayload::formatAmount($amount, $orderCurrencyCode) ?? trim(($orderCurrencyCode ?: '') . ' ' . number_format((float) $amount, 2)); @endphp @if($isPaid)
✓

Payment Received

Thank you! Your online payment of {{ $money($order->total_payable) }} for Order #{{ $order->slug }} has been confirmed.

@else {{-- ── Pending: show order summary + gateway picker ── --}}
Order #{{ $order->slug }}
Doorstep Online Payment
Total Amount Due
{{ $money($order->total_payable) }}
@if($order->items && $order->items->isNotEmpty())
@foreach($order->items as $item)
{{ $item->product_name }} × {{ $item->quantity }}
@if($item->variant_name)
{{ $item->variant_name }}
@endif
@endforeach
@endif
Subtotal
{{ $money($order->subtotal) }}
@if((float) $order->delivery_charge > 0)
Delivery Charge
{{ $money($order->delivery_charge) }}
@endif @if((float) $order->handling_charges > 0)
Handling Charge
{{ $money($order->handling_charges) }}
@endif @if((float) $order->promo_discount > 0)
Promo Discount
−{{ $money($order->promo_discount) }}
@endif
Total Payable
{{ $money($order->total_payable) }}
@if(empty($gateways))
No online payment gateways are currently available. Please pay cash to the delivery executive.
@else
Select Online Payment Method
@foreach($gateways as $gw) @endforeach
@endif
@endif
@if(!$isPaid && !empty($gateways)) @endif