@extends('dispatch._layout') @if(session('message')) @endif @section('body')
@if($driver===null)

We cannot find this driver. Please contact to admin

@else
Drivers Information:
Full Name:
{{ $driver->userData->firstname }} {{ $driver->userData->lastname }}
Cell phone:
{{ $driver->userData->cellphone }}
Home phone:
{{ $driver->userData->homephone }}
Status:
{!! $driver->status === 'loaded' ? 'loaded' : 'waiting' !!}
Truck Information:
Truck:
{{ $driver->truckData->number }} {{ $driver->truckData->make }} {{ $driver->truckData->model }}
Trailer:
{{ $driver->trailerData->number }} {{ $driver->trailerData->make }} {{ $driver->trailerData->model }}
Current/Last Load:
Date:
{{ $load->pickup_date }}
Distance:
{{ $load->distance?$load->distance:'-' }}
Price:
${{ $load->price }}
{{ $load->pickup_city}}, {{ $load->pickup_state }} -> {{ $load->delivery_city }}, {{ $load->delivery_state }}
Last location:
@foreach($locations as $loc) @endforeach
Date Location
{{ date('H:i, j F Y', strtotime($loc->created_at)) }} {{ $loc->nearby }} open in google maps
{{ $locations->links('vendor/pagination') }}

The history of the driver's location is deleted every 2 days.

@endif
@endsection @section('script') @endsection