{{ get_business_name() }}

{{ trans_choice('accounting::report.accounts_receivable_ageing_summary', 1) }}

@foreach ($chart_of_accounts as $chart_of_account_name => $chart_of_account_id) @php $chart_of_account = $data->where('chart_of_account_id', $chart_of_account_id); @endphp @endforeach
{{ trans_choice('accounting::lang.account', 1) }} {{ trans('accounting::lang.current') }} {{ trans('accounting::general.one_to_thirty') }} {{ trans('accounting::general.thirty_one_to_sixty') }} {{ trans('accounting::general.sixty_one_to_ninety') }} {{ trans('accounting::general.ninety_one_and_over') }} {{ trans_choice('accounting::lang.amount', 1) }}
{{ $chart_of_account_name }} {{ $chart_of_account->where('transaction_date', $days_past->today)->sum('amount_due') }} {{ $chart_of_account->whereBetween('transaction_date', [$days_past->thirty_days_ago, $days_past->yesterday])->sum('amount_due') }} {{ $chart_of_account->whereBetween('transaction_date', [$days_past->sixty_days_ago, $days_past->thirty_one_days_ago])->sum('amount_due') }} {{ $chart_of_account->whereBetween('transaction_date', [$days_past->ninety_days_ago, $days_past->sixty_one_days_ago])->sum('amount_due') }} {{ $chart_of_account->where('transaction_date', '<=', $days_past->ninety_one_days_ago)->sum('amount_due') }} {{ $chart_of_account->sum('amount_due') }}
{{ trans('accounting::lang.total') }} {{ $data->where('transaction_date', $days_past->today)->sum('amount_due') }} {{ $data->whereBetween('transaction_date', [$days_past->thirty_days_ago, $days_past->yesterday])->sum('amount_due') }} {{ $data->whereBetween('transaction_date', [$days_past->sixty_days_ago, $days_past->thirty_one_days_ago])->sum('amount_due') }} {{ $data->whereBetween('transaction_date', [$days_past->ninety_days_ago, $days_past->sixty_one_days_ago])->sum('amount_due') }} {{ $data->where('transaction_date', '<=', $days_past->ninety_one_days_ago)->sum('amount_due') }} {{ $data->sum('amount_due') }}