@extends('layouts.app') @section('title', 'Accounts Receivable') @include('inventory.accounting.partials.styles') @section('content')

Accounts Receivable Aging

Unpaid orders by how long they've been open.

@include('inventory.accounting.partials.sub-nav')
@foreach($ar['buckets'] as $key => $bucket)
{{ $bucket['label'] }}
{{ number_format($bucket['total'], 2) }}
{{ count($bucket['orders']) }} orders
@endforeach

Open Orders

Total: {{ number_format($ar['total'], 2) }}
@foreach($ar['buckets'] as $key => $bucket) @foreach($bucket['orders'] as $order) @endforeach @endforeach @if($ar['total'] == 0) @endif
OrderCustomerAmountDays OpenBucket
{{ $order['order_number'] }} {{ $order['customer_name'] }} {{ number_format($order['total'], 2) }} {{ $order['age_days'] }} @php $cls = $order['age_days'] > 60 ? 'danger' : ($order['age_days'] > 30 ? 'warning' : 'info'); @endphp {{ $bucket['label'] }}
All caught up — no open receivables.
@endsection