@php
$company = auth()->user()->company;
@endphp
@foreach (array_filter([
$company->hasModule(\App\Enums\Module::Trips)
? ['title' => 'Trip Report', 'description' => 'Trips over a period, filterable by vehicle and driver, with status totals.', 'route' => route('reports.trips'), 'icon' => 'map']
: null,
$company->hasModule(\App\Enums\Module::Fuel)
? ['title' => 'Fuel Report', 'description' => 'Fill-ups with total litres, total cost, and average km/L per vehicle.', 'route' => route('reports.fuel'), 'icon' => 'fuel']
: null,
['title' => 'Vehicle Expense Report', 'description' => 'Total fuel spend per vehicle over a period.', 'route' => route('reports.vehicle-expenses'), 'icon' => 'truck'],
['title' => 'Document Compliance', 'description' => 'Every vehicle and driver document with its expiry status.', 'route' => route('reports.compliance'), 'icon' => 'alert'],
]) as $card)
{{ __($card['title']) }}
{{ __($card['description']) }}
@endforeach
@foreach ([
['title' => 'Inventory Valuation', 'description' => 'Current on-hand value of every part in the catalog.', 'route' => route('reports.inventory.valuation'), 'icon' => 'box'],
['title' => 'Parts Usage', 'description' => 'Quantity and cost issued per part over a period.', 'route' => route('reports.inventory.parts-usage'), 'icon' => 'wrench'],
['title' => 'Stock Movement', 'description' => 'Every stock movement across the catalog for a period.', 'route' => route('reports.inventory.stock-movements'), 'icon' => 'chart'],
['title' => 'Supplier-wise Purchases', 'description' => 'Total purchased per supplier over a period.', 'route' => route('reports.inventory.supplier-purchases'), 'icon' => 'truck'],
['title' => 'Consumables Usage', 'description' => 'Usage rolled up by category over a period.', 'route' => route('reports.inventory.consumables-usage'), 'icon' => 'box'],
['title' => 'Vehicle-wise Expense', 'description' => 'Parts + maintenance combined per vehicle, drillable to detail.', 'route' => route('reports.inventory.vehicle-wise-expense'), 'icon' => 'truck'],
] as $card)
{{ __($card['title']) }}
{{ __($card['description']) }}
@endforeach