{{ trans('reports.standard.collectionsreport') }}
DATE |
TRANSACTION TYPE |
NUMBER |
DUE DATE |
DAYS ALMOST/OVER DUE |
AMOUNT |
@php
$gtotal = 0;
@endphp
@foreach($customers as $customer)
@if(count($customer->invoices) > 0)
keyboard_arrow_down{{ $customer->name }}
@php
$total = 0;
$invoices = $customer->invoices;
@endphp
@foreach ($invoices as $item)
@php
$total = $total + $item->amount;
$start = Carbon\Carbon::now();
$end = Carbon\Carbon::parse($item->due_at);
$diff = $start->diffInDays($end);
@endphp
{{ Carbon\Carbon::parse($item->invoiced_at)->format($date_format) }} |
Invoice |
{{ $item->invoice_number }} |
{{ Carbon\Carbon::parse($item->due_at)->format($date_format) }} |
{{ $diff }} |
@money($item->amount, 'USD', true) |
@endforeach
{{ $customer->name }} |
@money($total, 'USD', true) |
@php
$gtotal = $gtotal + $total;
$total = 0;
@endphp
@endif
@endforeach
@include('accounts.reports.standard.filter')
@include('includes.datepicker')
@endsection