@extends('layouts.app') @section('title', 'My Orders') @section('content')
Track and manage your recent purchases
| Order ID | Date | Status | Total | Action |
|---|---|---|---|---|
| #{{ $order->order_number }} | {{ $order->created_at->format('d M, Y') }} | @php $statusClass = [ 'pending' => 'bg-warning text-dark', 'completed' => 'bg-success text-white', 'cancelled' => 'bg-danger text-white' ][$order->status] ?? 'bg-secondary text-white'; @endphp {{ $order->status }} | ₹{{ number_format($order->total_amount, 2) }} | View Details |
No orders found yetStart Shopping |
||||