Recent Orders @php $orders = $this->getOrders(); $sym = $this->getCurrencySymbol(); @endphp @if($orders->isEmpty())

No orders yet.

@else @foreach($orders as $order) @php $statusColor = match($order->status) { 'pending' => '#d97706', 'processing' => '#2563eb', 'shipped' => '#16a34a', 'cancelled' => '#dc2626', 'partially_refunded' => '#d97706', 'refunded' => '#6b7280', 'return_requested' => '#d97706', 'return_received' => '#2563eb', default => '#6b7280', }; $statusLabel = ucfirst(str_replace('_', ' ', $order->status)); @endphp @endforeach
Order Customer Status Total Date
#{{ $order->id }} {{ $order->contact_name }} {{ $statusLabel }} {{ $sym }}{{ number_format((float)$order->total, 2) }} {{ $order->ordered_at?->format('M j') }}
View all orders →
@endif