{{ get_business_name() }}

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

@php $row_counter = 1; @endphp @foreach ($days_passed_options as $days_passed => $days_passed_label) @php $parent1_index = $row_counter; @endphp @php $row_counter++; $chart_of_account_subtype = $data->where('days_passed', $days_passed); $filtered_account_subtypes = $chart_of_account_subtype->pluck('account_subtype', 'account_subtype_id'); @endphp @foreach ($filtered_account_subtypes as $account_subtype_id => $account_subtype_name) @php $parent2_index = $row_counter; @endphp @php $row_counter++; $chart_of_account_subtype = $chart_of_account_subtype->where('account_subtype_id', $account_subtype_id); @endphp @foreach ($chart_of_account_subtype as $chart_of_account) @php $row_counter++; @endphp @endforeach @endforeach @endforeach
{{ trans_choice('accounting::lang.account', 1) }} {{ trans_choice('accounting::lang.account', 1) }} {{ trans_choice('accounting::general.detail_type', 1) }} {{ trans_choice('accounting::lang.date', 1) }} {{ trans_choice('accounting::lang.transaction', 1) }} {{ trans_choice('accounting::lang.type', 1) }} {{ trans_choice('accounting::general.reference', 1) }} {{ trans_choice('accounting::lang.no', 1) }} {{ trans_choice('accounting::lang.amount', 1) }}
{{ ucfirst($days_passed_label) }}
{{ ucfirst($account_subtype_name) }}
{{ $chart_of_account->chart_of_account }} {{ $chart_of_account->account_detail_type }} {{ readable_date($chart_of_account->transaction_date) }} {{ $chart_of_account->transaction_type }} {{ $chart_of_account->ref_no }} {{ number_format($chart_of_account->amount_due, 2) }}
{{ trans('accounting::lang.total_for') }} {{ $days_passed_label }} {{ number_format($chart_of_account_subtype->sum('amount_due'), 2) }}
{{ trans_choice('accounting::lang.total', 1) }} {{ number_format($data->sum('amount_due'), 2) }}