Past Invoices

@if(($x=$o->invoices()->where('invoices.created_at','>',\Carbon\Carbon::now()->subMonths(12))->with(['items.taxes','paymentitems.payment','account.country.currency'])->get()->where('due','<=',0))->count()) @foreach ($x as $oo) @endforeach
Account # Issued Due Paid Total
{{ $oo->account->name }} {{ $oo->sid }} {{ $oo->created_at->format('Y-m-d') }} {{ $oo->due_at->format('Y-m-d') }} {{ $oo->paid_date ? $oo->paid_date->format('Y-m-d') : '' }} ${{ number_format($oo->total,2) }}
@else

No invoices to list

@endif
@section('page-scripts') @css(datatables,bootstrap4|rowgroup) @js(datatables,bootstrap4|rowgroup) @append