My Orders

Active Orders

@if($activeOrders->count() > 0)
@foreach($activeOrders as $order)
#ORD-{{ str_pad($order->id, 5, '0', STR_PAD_LEFT) }}
{{ $order->created_at->format('M d, Y h:i A') }}
Rs. {{ number_format($order->total_amount, 2) }}
{{ $order->payment_method }} • {{ $order->payment_status }}
@if($order->status == 'pending') Pending @elseif($order->status == 'processing') Processing @endif

Items

    @foreach($order->items as $item)
  • {{ $item->quantity }}x {{ $item->product_name }} Rs. {{ number_format($item->price * $item->quantity, 2) }}
  • @endforeach
@endforeach
@else

You don't have any active orders right now.

@endif

Previous Orders

@if($previousOrders->count() > 0)
@foreach($previousOrders as $order)

Order Summary

    @foreach($order->items as $item)
  • {{ $item->quantity }}x {{ $item->product_name }} @if($order->status === 'completed') Write Review @endif
  • @endforeach
Paid via {{ $order->payment_method }}
Total: Rs. {{ number_format($order->total_amount, 2) }}
@endforeach
@else

No previous orders found.

@endif