{{-- resources/views/diler/orders.blade.php --}} @extends('diler.layouts.app') @section('title', 'My Orders') @section('content')

Orders History

Total: {{ $orders->total() }} Orders
@if($orders->count() > 0)
@foreach($orders as $index => $order) @endforeach
# 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') }}
{{ $orders->links() }}
@else
No orders yet

Orders from you and your team will appear here once placed.

Onboard Team Member
@endif
@foreach($orders as $order) @endforeach @endsection