Order {{ $first->order_number ?? substr($uid, 0, 8) }}
{{ optional($first->placed_at)->format('d M Y · H:i') }}
@if($shipments->count() > 1) · {{ $shipments->count() }} shipments @endif
@if($first->tracking_number)
📦 {{ $first->carrier ?? 'Tracking' }}: {{ $first->tracking_number }}
@endif
{{ config('constants.currency_symbol','₹') }}{{ number_format($shipments->sum('grand_total'), 2) }}
@php
$badge = ['pending'=>'bg-yellow-100 text-yellow-800','confirmed'=>'bg-blue-100 text-blue-800','processing'=>'bg-blue-100 text-blue-800','shipped'=>'bg-indigo-100 text-indigo-800','delivered'=>'bg-green-100 text-green-800','cancelled'=>'bg-red-100 text-red-700','refunded'=>'bg-gray-100 text-gray-700'][$first->status] ?? 'bg-gray-100 text-gray-700';
@endphp
{{ $first->status }}
{{ strtoupper($first->payment_method_used) }}