@extends('layouts.app') @section('title', 'My Orders') @section('content')

My Orders

Track and manage your recent purchases

@forelse($orders as $order) @empty @endforelse
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 yet
Start Shopping
{{ $orders->links() }}
@endsection