| # |
Order ID |
Placed On |
Payment |
Total |
Action |
@forelse($orders as $idx => $order)
| {{ $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 --}}
|
@empty
|
No previous orders found for this user.
|
@endforelse
@if($orders->hasPages())
{{ $orders->links('pagination::bootstrap-4') }}
@endif