Accounts Receivables - {{($balance_type == "all"?"All Balances":($balance_type == "credit-line"?"Owed to a credit line":"Owed to an order"))}}

@if(count($filter_data)) @foreach($filter_data as $filter) @endforeach
{{$filter['label']}} {{$filter['value']}}
@endif
@forelse ($data as $item) @empty @endforelse
Customer Name Sales Person Store Invoice Invoice Date Delivery Date Delivery Completion Term Current 1-30 31-60 61-90 Over 90 Total
{{$item['customer_name']}} {{$item['sales_person']}} {{$item['store']}} {{ $item['invoice'] }} {{ $item['invoice_date'] ?? '-' }} {{ $item['delivery_date'] ?? '-' }}

{{ $item['qty_product_delivered'] }}/{{ $item['qty_product_order'] }}

{{ $item['term'] }} ${{ number_format($item['balance_due'],2) }} ${{ number_format($item['first_month'],2) }} ${{ number_format($item['second_month'],2) }} ${{ number_format($item['third_month'],2) }} ${{ number_format($item['more_months'],2) }} ${{ number_format($item['total'],2) }}
No Data
TOTAL BALANCE DUE ${{number_format($meta['total_balance_due'], 2)}}
TOTAL 1-30 Days ${{number_format($meta['total_first_month'], 2)}}
TOTAL 31-60 Days ${{number_format($meta['total_second_month'], 2)}}
TOTAL 61-90 Days ${{number_format($meta['total_third_month'], 2)}}
TOTAL 90+ Days ${{number_format($meta['total_more_months'], 2)}}
TOTAL ACCOUNT RECEIVABLE ${{number_format($meta['total_amount'], 2)}}