@php
$row_counter = 1;
@endphp
@foreach ($days_passed_options as $days_passed => $days_passed_label)
@php
$parent1_index = $row_counter;
@endphp
{{ ucfirst($days_passed_label) }} |
|
|
|
|
|
@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
{{ ucfirst($account_subtype_name) }} |
|
|
|
|
|
@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)
{{ $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) }} |
@php
$row_counter++;
@endphp
@endforeach
@endforeach
{{ trans('accounting::lang.total_for') }} {{ $days_passed_label }}
|
|
|
|
|
{{ number_format($chart_of_account_subtype->sum('amount_due'), 2) }} |
@endforeach
{{ trans_choice('accounting::lang.total', 1) }}
|
|
|
|
|
{{ number_format($data->sum('amount_due'), 2) }} |