@extends('admin.layout.app') @section('title', 'User Previous Orders') @section('page-title', 'Previous Orders') @section('content')

Previous Orders for {{ $user->first_name ?? 'User' }}

Back to User Details
@forelse($orders as $idx => $order) @empty @endforelse
# Order ID Placed On Payment Total Action
{{ $orders->firstItem() + $idx }} {{ $order->order_number ?? $order->id }} {{ $order->created_at ? $order->created_at->format('d M Y') : '-' }}
{{ $order->created_at ? $order->created_at->format('h:i A') : '' }}
{!! $order->payment_status === 'paid' ? 'Paid' : 'Unpaid' !!} ₹{{ number_format($order->total_amount, 2) }}
Total Amount
{{-- Add more actions if needed --}}
No previous orders found for this user.
@if($orders->hasPages())
{{ $orders->links('pagination::bootstrap-4') }}
@endif
@endsection