M & E REPORTS
DATE BETWEEN {{ date('jS F, Y', strtotime($_SESSION['dfrom'])) }} and {{ date('jS F, Y', strtotime($_SESSION['dto'])) }} ({{ App\Model\season::find($_SESSION['season'])->name }}) ({{ App\Model\port::find($_SESSION['port'])->name }})
}})
--}}
No. | Transaction Code | Truck No. | Registration Date | First Weight | First Weight Date | Second Weight | Second Weight Date | Offloading Date | Duration |
---|---|---|---|---|---|---|---|---|---|
{{ $count++ }}. | {{ $internal_waybill->bush_delivery->transaction_code }} | {{ $internal_waybill->bush_delivery->truck_no }} | {{ $internal_waybill->bush_delivery->registration_time ? Carbon\Carbon::parse($internal_waybill->bush_delivery->registration_time)->format('j M Y g:i a') : null }} | {{ $internal_waybill->bush_delivery->first_weight }} | {{ $internal_waybill->bush_delivery->first_weight_date ? Carbon\Carbon::parse($internal_waybill->bush_delivery->first_weight_date)->format('j M Y g:i a') : null }} | {{ $internal_waybill->bush_delivery->second_weight }} | {{ $internal_waybill->bush_delivery->second_weight_date ? Carbon\Carbon::parse($internal_waybill->bush_delivery->second_weight_date)->format('j M Y g:i a') : null }} | {{ $internal_waybill->offloading_date ? Carbon\Carbon::parse($internal_waybill->offloading_date)->format('j M Y') : null }} | @php $from = Carbon\Carbon::parse($internal_waybill->bush_delivery->registration_time); $to = Carbon\Carbon::parse($internal_waybill->offloading_date); $try = $from->isSameUnit('day', $to); $period = $to->diffInWeekdays($from); if ($try) { echo '0'; } else { echo $period; } @endphp |