@extends('admin.layouts.app') @section('title', $title) @section('content')

{{ $title }}

All ({{ $allOrders->count() }}) @foreach($orderStatuses as $status => $count) @php $statusDetails = getStatusDetails($status); @endphp {{ $statusDetails['label'] }} ({{ $count }}) @endforeach
@if(request()->hasAny(['search', 'status', 'user_id', 'discount_code', 'payment_method'])) Reset @endif
@forelse($orders as $order) @empty @endforelse
ID Order Status User Payment Method Coupon Date Total Actions
{{ $order->id }} {{ $order->order_reference }} @php $statusDetails = getStatusDetails((int)$order->status); @endphp {{ $statusDetails['label'] }} {{ $order->user->name }} {{ $order->payment_method }} {{ $order->discount_code ?? 'N/A' }} {{ $order->created_at->diffForHumans() ?? $order->created_at }} {!! ch_format_price($order->total, $order->currency) !!}
@csrf @method('DELETE')
No Orders found.
@if($orders->hasPages())
{{ $orders->links() }}
@endif
@endsection @push('scripts') @endpush