@extends('owner._layout') @if(session('message')) @endif @section('body')
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 }}
Dispatch Information:
Full Name:
{{ $driver->dispatchData->firstname }} {{ $driver->dispatchData->lastname }}
Last location:
@foreach($driver->locationData as $location) @endforeach
Date Location
{{ date('H:i, j F Y', strtotime($location->created_at)) }} {{ $location->latitude }} {{ $location->longitude}} open in google maps
@endsection @section('script') @endsection