My Orders


{{-- --}} @foreach ($customer->orders as $order) @endforeach
 Order ID First name Last name Email Phone Total Items Total Status Actions
#{{ $order->order_no ?? ('PM-' . (1000 + $order->id)) }} {{ $order->first_name }} {{ $order->last_name }} {{ $order->email }} {{ $order->phone }} {{ $order->items_count }} ${{ number_format($order->grand_total ?? 0, 2) }} @switch($order->status) @case('pending') {{ ucwords($order->status) }} @break @case('processing') {{ ucwords($order->status) }} @break @case('Ready to pickup') {{ ucwords($order->status) }} @break @case('Invoice Created') {{ ucwords($order->status) }} @break @case('Shipped') {{ ucwords($order->status) }} @break @case('cancelled') {{ ucwords($order->status) }} @break @case('Refunded') {{ ucwords($order->status) }} @break @default {{ ucwords($order->status) }} @endswitch