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

@if($client) {{$client->name}} @endif DEMURRAGE SUMMARY

{{----}} @if(!$client) @endif {{----}} {{--*/ $total_demurrage = 0 /*--}} @foreach($demurrage_reports as $index=>$demurrage_report) {{----}} @if(!$client) @endif {{----}} {{--*/ $total_demurrage += $demurrage_report->getDemurrageCharges() /*--}} @endforeach
S/N TruckTrailerDriver Container Size DestinationClientShipping LineLoading DateStart Date Free Days DayTaken Charges/Day Due Date EID/ID Detention Days Detention Days(Customer) Net Detention Day(s) Demurrage Charges
{{++$index}} {{$demurrage_report->truck}}{{$demurrage_report->trailer}}{{$demurrage_report->driver}} {{$demurrage_report->container}} {{$demurrage_report->container_size}} {{$demurrage_report->destination}} {{$demurrage_report->client_code}}{{$demurrage_report->shipping_line}}{{\Carbon\Carbon::parse($demurrage_report->loading_date)->toFormattedDateString()}}{{\Carbon\Carbon::parse($demurrage_report->start_date)->toFormattedDateString()}} {{$demurrage_report->getFreeTime()}} {{$demurrage_report->getTimeElapsed()}} {!! $demurrage_report->getDemurrageRate() !!} {{$demurrage_report->dueDate()}} @if($demurrage_report->expected_interchange_date == '0000-00-00') NC @elseif(is_null($demurrage_report->expected_interchange_date)) NC @else C @endif {{\Carbon\Carbon::parse($demurrage_report->date)->toFormattedDateString()}} {{$demurrage_report->getExceedTime()}} {{$demurrage_report->getDelayTime()}} {{$demurrage_report->getDemurrageDays()}} {{number_format($demurrage_report->getDemurrageCharges(),2)}}
TOTAL AMOUNT {{number_format($total_demurrage,2)}}