@php
$treegrid_index = 1;
@endphp
@foreach ($account_types as $type)
@php
$parent_index = $treegrid_index;
@endphp
{{ ucfirst($type) }} |
@for ($i = 0; $i < 5; $i++)
|
@endfor
@php
$treegrid_index++;
$chart_of_accounts_for_type = $chart_of_accounts_by_type->get($type);
@endphp
@foreach ($chart_of_accounts_for_type as $chart_of_account)
{{ $chart_of_account->name }} |
@php
$yearly_total = $chart_of_account->budget->yearly;
@endphp
@foreach ($chart_of_account->budget->quarterly as $index => $quartely_budget)
@php
$quarter_number = $index + 1;
$quarter = 'quarter_' . $quarter_number;
@endphp
{{ number_format($quartely_budget, 2) }} |
@endforeach
{{ number_format($yearly_total, 2) }} |
@php
$treegrid_index++;
@endphp
@endforeach
{{ trans('accounting::lang.total_for') }} {{ $type }}
|
@for ($i = 1; $i <= 4; $i++)
{{ number_format($chart_of_accounts_for_type->pluck('budget.quarterly')->pluck($i)->sum(),2) }} |
@endfor
{{ number_format($chart_of_accounts_for_type->yearly_total, 2) }}
|
@endforeach
{{ trans('accounting::lang.grand_total') }}
|
@for ($i = 1; $i <= 4; $i++)
{{ number_format($chart_of_accounts->pluck('budget.quarterly')->pluck($i)->sum(),2) }} |
@endfor
{{ number_format($chart_of_accounts->yearly_total, 2) }}
|