@extends('freight-client.layouts.app') @section('title', 'Find Drivers') @section('head') @endsection @section('content')

Find Freight Drivers

Green pins are drivers who are online & available now with a shared location.

Available Drivers — Live Map

Available & sharing location

All Drivers

@if($drivers->count()) @foreach($drivers as $d) @endforeach
DriverPhoneTruckAvailabilityCurrent LocationLast Update
{{ $d->full_name }} {{ $d->phone ?: '—' }} {{ optional($d->vehicles->first())->truck_type ?: '—' }} @if($d->is_available) Online @else Offline @endif {{ $d->current_location ?: '—' }} {{ $d->last_location_at ? $d->last_location_at->diffForHumans() : '—' }}
@else

No active drivers found yet.

@endif
@endsection @section('scripts') @endsection