{{__('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 $account_ids[]=$account->id; $account_budget = $budget->where('accounting_account_id', $account->id)->first(); @endphp @endforeach @endforeach
@lang('account.account') {{$fy_year}}
{{$account_type_detail['label']}}
{{$account->name}} @if(!is_null($account_budget) && !is_null($account_budget->yearly)) {{@num_format($account_budget->yearly)}} @else 0 @endif
@lang('sale.total') {{@num_format($budget->whereIn('accounting_account_id', $account_ids)->sum('yearly'))}}
@lang('lang_v1.grand_total') {{@num_format($budget->sum('yearly'))}}