{{ trans('account.account') }} @foreach ($months as $month) {{ $month }} @endforeach {{ trans('sale.total') }} @php $treegrid_index = 1; @endphp @foreach ($account_types as $type) @php $parent_index = $treegrid_index; @endphp {{ ucfirst($type) }} @for ($i = 0; $i < 13; $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 $budget = $chart_of_account->budget; $yearly_total = $chart_of_account->budget->yearly; @endphp @for ($month_number = 1; $month_number <= 12; $month_number++) @php $month = 'month_' . $month_number; @endphp {{ number_format($budget[$month], 2) }} @endfor {{ number_format($yearly_total, 2) }} @php $treegrid_index++; @endphp @endforeach {{ trans('accounting::lang.total_for') }} {{ $type }} @for ($i = 1; $i <= 12; $i++) {{ number_format($chart_of_accounts_for_type->pluck("budget.month_$i")->sum(), 2) }} @endfor {{ number_format($chart_of_accounts_for_type->yearly_total, 2) }} @endforeach {{ trans('accounting::lang.grand_total') }} @for ($i = 1; $i <= 12; $i++) {{ number_format($chart_of_accounts->pluck("budget.month_$i")->sum(), 2) }} @endfor {{ number_format($chart_of_accounts->yearly_total, 2) }}