{!! Form::open([ 'route' => 'invoices.store', 'class' => 'stdform', 'method' => 'post', 'id' => 'generate_client_invoice', ]) !!}
D.O.N | Truck/Trailer | Destination | Container | Quantity1 | Rate | Amount |
---|---|---|---|---|---|---|
{{ $loading_order_destination->d_o_number }} | {{ $loading_order_destination->truck }}/{{ $loading_order_destination->trailer }} | {{ $loading_order_destination->destination }} | {{ $loading_order_destination->container }} | @if ($loading_order_destination->rate) @if ($loading_order_destination->rate_setup == 'MT') {{ number_format((float) $loading_order_destination->loading_tonnage, 3) }} @elseif($loading_order_destination->rate_setup == 'LITER') {{ number_format((float) $loading_order_destination->loading_quantity, 3) }} @elseif($loading_order_destination->rate_setup == 'CUBIC_METER') {{ number_format((float) $loading_order_destination->loading_quantity) }} @endif @else {{ number_format((float) $loading_order_destination->loading_tonnage, 3) }} @endif | @if ($loading_order_destination->rate) @if ($loading_order_destination->rate_setup == 'MT') {{ $loading_order_destination->rate }} @elseif($loading_order_destination->rate_setup == 'LITER') {{ $loading_order_destination->rate }} @elseif($loading_order_destination->rate_setup == 'CUBIC_METER') {{ $loading_order_destination->rate }} / M3 @endif @else @endif | @if ($loading_order_destination->rate) @if ($loading_order_destination->rate_setup == 'TRIP') {{ $loading_order_destination->rate }} {{-- */ $total_invoice_amount +=$loading_order_destination->rate /* --}} @elseif($loading_order_destination->rate_setup == 'LITER') {{ $loading_order_destination->rate * $loading_order_destination->loading_quantity }} {{-- */ $total_invoice_amount +=$loading_order_destination->rate*$loading_order_destination->loading_quantity /* --}} @elseif($loading_order_destination->rate_setup == 'CUBIC_METER') {{ ($loading_order_destination->rate * $loading_order_destination->loading_quantity) / 1000 }} {{-- */ $total_invoice_amount +=($loading_order_destination->rate*$loading_order_destination->loading_quantity)/1000 /* --}} @else {{ $loading_order_destination->rate * $loading_order_destination->loading_tonnage }} {{-- */ $total_invoice_amount +=$loading_order_destination->loading_tonnage*$loading_order_destination->rate /* --}} @endif @else @endif |
SUB TOTAL | {{ number_format($total_invoice_amount, 2) }} | |||||
INVOICE AMOUNT |