{{ __('Dashboard') }}

{{ __('Welcome, :name — :company', ['name' => Auth::user()->name, 'company' => Auth::user()->company->name]) }}

{{ __("Here's what's happening across your fleet.") }}

{{-- Tab nav — horizontally scrollable so it works on a phone. Fuel Analytics and Live Operations are entirely built from one module's data (see DashboardController::TAB_MODULE_REQUIREMENTS), so their tabs are dropped outright when that module is off — same "hidden everywhere, not just the sidebar" rule. --}}
{{-- Fleet Overview --}}
@foreach (array_filter([ ['label' => 'Total Vehicles', 'key' => 'totalVehicles', 'icon' => 'truck', 'href' => route('vehicles.index')], ['label' => 'Active Vehicles', 'key' => 'activeVehicles', 'icon' => 'truck', 'href' => route('vehicles.index')], ['label' => 'Total Drivers', 'key' => 'totalDrivers', 'icon' => 'user', 'href' => route('drivers.index')], $company->hasModule(\App\Enums\Module::Trips) ? ['label' => 'Trips This Month', 'key' => 'tripsThisMonth', 'icon' => 'map', 'href' => route('trips.index')] : null, ]) as $stat)
{{ __($stat['label']) }}
@endforeach
{{ __('vehicle(s) currently in maintenance.') }}
{{ $company->hasModule(\App\Enums\Module::Fuel) ? __('Fleet Spend This Month (Fuel + Parts + Maintenance)') : __('Fleet Spend This Month (Parts + Maintenance)') }}

{{ __('Fleet Spend Trend') }}

{{ __('Expiring Documents') }}

{{ __('Nothing expiring soon.') }}

{{ __('Low Stock Parts') }}

{{ __('Everything is above its minimum stock level.') }}
@if ($company->hasModule(\App\Enums\Module::Trips))

{{ __('Recent Trips') }}

{{ __('No trips recorded yet.') }}
{{ __('Date') }} {{ __('Vehicle') }} {{ __('Driver') }} {{ __('Route') }} {{ __('Status') }}
@endif
{{-- Fuel Analytics --}}
{{ __('Loading…') }}
{{-- Inventory --}}
{{ __('Loading…') }}
{{-- Vehicle Expenses --}}
{{ __('Loading…') }}
{{-- Live Operations --}}
{{ __('Loading…') }}
{{-- Compliance & Expiry --}}
{{ __('Loading…') }}
{{-- Challans --}}
{{ __('Loading…') }}