{{__('accounting::lang.budget')}}
@lang( 'accounting::lang.financial_year_for_the_budget' ): {{$fy_year}}
@foreach($account_types as $account_type => $account_type_detail )
@php
$account_ids=[];
@endphp
@foreach($accounts->where('account_primary_type', $account_type)->sortBy('name')->all() as $account)
@php
$total = 0;
$account_ids[]=$account->id;
@endphp
{{$account->name}} |
@foreach($months as $k => $m)
@php
$account_budget = $budget->where('accounting_account_id', $account->id)->first();
$value = !is_null($account_budget) && !is_null($account_budget->$m)
? $account_budget->$m : null;
@endphp
@if(!is_null($value))
{{@num_format($value)}}
@php
$total += $value;
@endphp
@endif
|
@endforeach
{{@num_format($total)}}
|
@endforeach
@endforeach