{{ $stats['total'] ?? 0 }}
Total
{{ $stats['approved'] ?? 0 }}
Approved
{{ $stats['pending'] ?? 0 }}
@lang('lang_v1.pending')
{{ $stats['rejected'] ?? 0 }}
@lang('Rejected')
Order Trend (Last 7 Days)
Fuel Type Distribution
Status Distribution
Monthly Orders
{{ __('fuelorder::lang.fuel_orders') }}
| {{ __('fuelorder::lang.ref_no') }} | {{ __('fuelorder::lang.date') }} | {{ __('fuelorder::lang.fuel_type') }} | {{ __('fuelorder::lang.liters') }} | {{ __('fuelorder::lang.total') }} | {{ __('fuelorder::lang.status') }} | {{ __('fuelorder::lang.actions') }} |
|---|---|---|---|---|---|---|
| {{ $o->reference_no }} | {{ optional($o->order_date)->format('Y-m-d') }} | {{ $o->fuel_type }} | {{ number_format($o->liters, 2) }} | {{ number_format($o->total_amount, 2) }} | @if($o->status === 'approved') {{ __('fuelorder::lang.approved') }} @elseif($o->status === 'pending') {{ __('fuelorder::lang.pending') }} @else {{ ucfirst($o->status) }} @endif | {{ __('fuelorder::lang.view') }} @if($o->status === 'pending' && auth()->check() && (auth()->id() === $o->requested_by || (method_exists(auth()->user(), 'hasRole') && auth()->user()->hasRole('Admin')) || (isset(auth()->user()->is_admin) && auth()->user()->is_admin) || auth()->id() === 1)) @endif @if($o->status === 'pending' && auth()->check() && ((isset(auth()->user()->is_admin) && auth()->user()->is_admin) || (method_exists(auth()->user(), 'hasRole') && auth()->user()->hasRole('Admin')) || auth()->id() === 1)) {{ __('fuelorder::lang.approve') }} @endif |
| {{ __('fuelorder::lang.no_data_found') }} | ||||||