ASAS {{ trans('reports.standard.openinvoices') }}
| DATE |
TRANSACTION TYPE |
NUM |
TERMS |
DUE DATE |
OPEN BALANCE |
@foreach ($list as $customer)
@php
$invoices = $customer->invoices;
@endphp
@if(count($invoices)>0)
keyboard_arrow_down{{ $customer->name }}
@php
$total = 0;
@endphp
@foreach ($invoices as $invoice)
@php
$ptm = $invoice->payments_total;
$ptl = isset($ptm->paid_amount)?$ptm->paid_amount:0;
$bal = $invoice->amount - $ptl;
$total = $total + $bal;
@endphp
| {{ Carbon\Carbon::parse($invoice->invoiced_at)->format($date_format) }} |
Invoice |
{{ $invoice->invoice_number }} |
|
{{ Carbon\Carbon::parse($invoice->due_at)->format($date_format) }} |
@money($bal, 'USD', true) |
@endforeach
{{-- INCOME TOTAL --}}
| Income Total |
@money($total, 'USD', true) |
@endif
@php
$total = 0;
@endphp
@endforeach