{{ $loop->index + 1 }}. |
{{ Carbon\Carbon::parse($evac_truck->second_weight_date)->format('Y-m-d') }} |
{{ strtoupper($evac_truck->truck->truck_no) }} |
{{ $evac_truck->transaction_code }} |
{{ $evac_truck->first_weight }} |
{{ $evac_truck->second_weight }} |
{{ $evac_truck->net_weight }} |
@foreach ($evac_truck->shed_waybills as $sw)
{{ optional($sw->cdn)->cdn_number }}
@endforeach
|
{{ $evac_truck->shed_waybills()->sum('quantity') }} |
|
Contract No. |
Contract Tonnage |
Contract Tonnage Delivered |
MK Tonnage Remaining |
@foreach ($evac_truck->shed_waybills as $shed_waybill)
{{ $shed_waybill->contract->number }} |
@php
$mkt = $shed_waybill->sales_advice->tonnage;
$td = $shed_waybill->sales_advice->shed_waybills()->sum('net_weight');
@endphp
{{ $shed_waybill->contract->tonnage }} |
{{ $shed_waybill->contract->shed_waybills()->sum('net_weight') }} |
{{ $mkt - $td }} |
@endforeach
|
@if ($evac_truck->factory_bags != null)
CONFIRMED
|
@else
CONFIRM
|
@endif
@endforeach