@foreach($clients as $client) @if(count($client->locations))

Date : {!! date('d/m/Y') !!}

@if($client->name) {{ $client->name }} @endif TRACKING REPORT

@if($client->cargo_type == 'DRY_CARGO') @else @endif {{----}} @forelse($client->locations as $index=>$location) @if($client->cargo_type == 'DRY_CARGO') @else @endif @empty @endforelse
S/N TRUCK TRAILER DRIVER CARGO TYPECARGO DETAILSCARGO VOLUMELOADING DATE LOCATIONDAYSDESTINATION
{{++$index}} {{$location->truck}} {{$location->trailer}} {{$location->driver}} {{ str_replace("_"," ",$location->cargo_type) }} {!! $location->cargo !!} {!! number_format($location->cargo_quantity) !!}{{ date('d/m/Y',strtotime($location->loading_date)) }} {{ strtoupper($location->location) }} {{$location->destination}}
No records found!

@endif @endforeach