{{-- resources/views/diler/orders.blade.php --}} @extends('diler.layouts.app') @section('title', 'My Orders') @section('content')
| # | Order ID | Member | Amount | PV Earned | Items | Status | Date | Actions |
|---|---|---|---|---|---|---|---|---|
| {{ $orders->firstItem() + $index }} | #{{ $order->order_number }} |
{{ $order->user->name }}
{{ $order->user->user_code }} |
৳{{ number_format($order->total_amount, 2) }} | {{ number_format($order->total_pv, 2) }} PV | {{ $order->items->count() ?? 0 }} item(s) | @php $statusClass = match($order->status) { 'completed' => 'bg-success', 'processing' => 'bg-warning', 'paid' => 'bg-info', 'pending_payment' => 'bg-secondary', 'cancelled' => 'bg-danger', default => 'bg-dark' }; @endphp {{ ucwords(str_replace('_', ' ', $order->status)) }} |
{{ $order->created_at->format('d M Y') }} {{ $order->created_at->format('h:i A') }} |