@extends('layout.app') @section('title', 'Edit Freight Invoice') @push('header_script') @endpush @section('content')
| # | GR No | Date | Truck No | From - To | Qty | Rate | Sub Total | (+) Halting | (+) Extra | (-) Deduct | Net Amount | Action | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $rowNum++ }} | {{ $freight->lr_no }} | {{ date('d-M-y', strtotime($freight->date)) }} | {{ $freight->vehicle->vehicle_no ?? '-' }} | {{-- FROM TO --}}
{{ $freight->from_location }}
{{ $freight->to_location }}
|
{{-- QTY MULTI UNIT --}}
@foreach ($groupedUnits as $unit => $rows)
{{ number_format($rows->sum('charge_weight'), 2) }} {{ $unit }}
@endforeach
|
{{-- RATE MULTI UNIT --}}
@foreach ($freight->items as $item)
{{ number_format($item->rate, 2) }} / {{ $item->weight_unit }}
@endforeach
|
{{-- SUB TOTAL (AUTO CALCULATED) --}}
{{-- HALTING --}} | {{-- EXTRA --}} | {{-- DEDUCTION --}} | {{-- NET --}} | {{-- Hidden IDs for Update --}} {{-- Remove Button --}} | ||
| Total | {{--0 | --}}0.00 | 0.00 | 0.00 | 0.00 | 0.00 | |||||||