@if(isset($loading_order_items[0])) @if($print) Loading Order Status
Date: {{ date('d/m/Y') }}

lOADING ORDERS STATUS @if($from != "" && $to != "") FROM {{\Carbon\Carbon::parse($from)->toFormattedDateString()}} TO {{\Carbon\Carbon::parse($to)->toFormattedDateString()}} @elseif($from != "" && $to == "") FROM {{\Carbon\Carbon::parse($from)->toFormattedDateString()}} TO {{\Carbon\Carbon::parse(date("Y/m/d"))->toFormattedDateString()}} @elseif($from == "" && $to != "") AS OF {{\Carbon\Carbon::parse($to)->toFormattedDateString()}} @else AS OF {{\Carbon\Carbon::parse(date('Y-m-d'))->toFormattedDateString()}} @endif

@foreach($loading_order_items as $item) @endforeach
Date Client Allocation Truck Trailer Created By Action Remarks Loading Order
{{ \Carbon\Carbon::parse($item->created_at)->toFormattedDateString()}} {{$item->client->code}} {{ $item->loading_order_item_id }} {{$item->truck}} {{$item->trailer}} {{$item->created_by}} {{$item->action}}: {{$item->reference_id}} {{$item->remarks}} {{ $item->loading_order_id }}
@else @foreach($loading_order_items as $item) @endforeach
Date Client Allocation Truck Trailer Created By Action Remarks Loading Order
{{ \Carbon\Carbon::parse($item->created_at)->toFormattedDateString()}} {{$item->client ? $item->client->code : ''}} {{ $item->loading_order_item_id }} {{$item->truck}} {{$item->trailer}} {{$item->created_by}} @if($item->action == 'REQUISTION') {{$item->action}}: {{$item->reference_id}} @else {{$item->action}}: {{$item->reference_id}} @endif {{$item->remarks}} {{$item->loading_order_id }}
@endif @else









Information Not Available.!!

@endif