@extends('layouts.admin') @section('title', 'Fleet Dashboard') @section('styles') @if(empty($googleMapsApiKey)) @endif @endsection @section('content')
Reset

Visible Drivers

{{ number_format($stats['total_drivers']) }}

Online Drivers

{{ number_format($stats['online_drivers']) }}

Booked Gigs Today

{{ number_format($stats['booked_gigs_today']) }}

Active Deliveries

{{ number_format($stats['active_deliveries']) }}

Live Driver Map
Admin can locate drivers by current position and area.
{{ count($driverMarkers) }} drivers with mappable location
@if(empty($googleMapsApiKey))
Showing driver locations with Google Maps. Add a Google Maps API key in admin map settings if the map is unavailable.
@endif
Driver Roster
Searchable live operations list
Manage Gigs
@forelse($drivers as $driver)
{{ $driver->name }}
{{ $driver->phone }}
{{ $driver->deliveryArea?->name ?? 'Unassigned area' }}
{{ $onlineDriverIds->contains($driver->id) ? 'Online' : 'Offline' }}
Logged In
@if($onlineDriverIds->contains($driver->id) && !empty($driverOnlineDurations[$driver->id]['duration'])) {{ $driverOnlineDurations[$driver->id]['duration'] }} @else - @endif
Booked Gigs
{{ $driver->booked_gigs_count }}
Active Orders
{{ $driver->active_orders_count }}/{{ $driver->effective_max_active_orders }}
Since
@if($onlineDriverIds->contains($driver->id) && !empty($driverOnlineDurations[$driver->id]['started_at'])) {{ \Carbon\Carbon::parse($driverOnlineDurations[$driver->id]['started_at'])->format('h:i A') }} @else - @endif
@empty
No drivers found for the selected filters.
@endforelse
Today's Gig Slots
Open, booked, and active slot coverage for the day
Open Gigs
@forelse($todayGigs as $gig) @empty @endforelse
Gig Slot Area Time Driver Incentive Status
{{ $gig->title ?: 'Gig Slot #' . $gig->id }}
{{ $gig->min_login_minutes }} min login, {{ $gig->min_orders_required }} orders, max {{ $gig->max_cancellations_allowed }} cancellations
{{ $gig->area?->name ?? 'No area' }} {{ optional($gig->start_time)->format('h:i A') }} - {{ optional($gig->end_time)->format('h:i A') }} {{ $gig->driver?->name ?? 'Open for booking' }} {{ $gig->estimated_earning }} {{ ucfirst($gig->status) }}
No gig slots created for today.
@endsection @section('scripts') @include('partials.google-maps-shim') @endsection