CREDIT LOSE REPORT FROM {{ $start_date }} TO {{ $end_date }}

{{-- */ $total_cost_planned = 0; /* --}} {{-- */ $total_cost_recovered = 0; /* --}} {{-- */ $i = 0; /* --}} {{-- */ $total_invoice_amount = 0; /* --}} @foreach ($loading_order_items as $loading_order_item) @endforeach
S/N Invoice Date Invoice #. Truck. Loading Offloaded Allowable Loss Invoice Amount Loss Rate
{{ ++$i }} {{ \Carbon\Carbon::parse($loading_order_item->invoice_date)->toDateString() }} {{ $loading_order_item->invoice_number }} {{ $loading_order_item->loadingOrderVehicle->vehicle->registration_number }} {{ $loading_order_item->loading_quantity }} {{ $loading_order_item->offloading_quantity }} {{ $loading_order_item->allowable_loss }} {{ $loading_order_item->loading_quantity - ($loading_order_item->offloading_quantity + $loading_order_item->allowable_loss) }} {{ $loading_order_item->invoice_amount }} {{ $loading_order_item->loss_rate }}
TOTAL {{ number_format($total_invoice_amount, 2) }}