@if (!$freightDatas->isEmpty())
@php $rowNum = 1; @endphp @foreach ($freightDatas as $freight) @php $partyName = \App\Http\Helpers\CommonHelper::getPartyByFreightPaidBy( $freight->id, $freight->paid_by, ); $partyId = match ($freight->paid_by) { 'Consignor' => $freight->consignor_id, 'Consignee' => $freight->consignee_id, 'Transporter' => $freight->party_id, default => null, }; @endphp @php $rowNum++; @endphp @endforeach
S.no GR No Dispatch Date Truck No. Party Name From To Sub Total + Halting + Extra charge Any Deduction Net Amount
{{ $rowNum }} {{ $freight->lr_no }} {{ date('d-M-Y', strtotime($freight->date)) }} {{ $freight->vehicle->vehicle_no ?? '' }} {{ $partyName }} {{ $freight->from_location }} {{ $freight->to_location }}
{{-- ================= JS ================= --}} @else

Data Not Found

@endif