{{$i}} |
{{$invoice->id}} |
{{\Carbon\Carbon::parse($invoice->date)->toFormattedDateString()}} |
@if($invoice->truck == 'MULTIPLE ROUTE')
MULTIPLE ROUTE
@else
{{$invoice->truck}}/
{{$invoice->fileNumber}}/
{{$invoice->containerNumber}}/
{{$invoice->Consignee}}
@endif
|
@if($invoice->debit > $invoice->credit)
{{--*/ $debit = $invoice->debit - $invoice->credit /*--}}
{{--*/ $credit = 0 /*--}}
@else
{{--*/ $credit = $invoice->credit - $invoice->debit /*--}}
{{--*/ $debit = 0 /*--}}
@endif
{{number_format($amount =$invoice->amount,2)}} |
{{--{{number_format($debit,2)}} | --}}
{{--{{number_format($credit,2)}} | --}}
{{--*/ $total_amount = $amount /*--}}
{{--{{$total_amount_paid = $invoice->paidAmount}} | --}}
{{number_format($total_amount_paid = $invoice->paidAmount,2)}} |
{{--*/ $debit = 0 /*--}}
{{number_format($balance = $total_amount-$total_amount_paid,2)}} |
{{--*/ $amount_total += $amount /*--}}
{{--*/ $amount_total_receivable += $total_amount /*--}}
{{--*/ $amount_paid_total += $total_amount_paid /*--}}
{{--*/ $total += $balance /*--}}
{{--*/ $i++ /*--}}
@endforeach