{{$account->name}} |
@if(!is_null($account_budget) && !is_null($account_budget->quarter_1))
@php
$total += $account_budget->quarter_1;
@endphp
{{@num_format($account_budget->quarter_1)}}
@else
0
@endif
|
@if(!is_null($account_budget) && !is_null($account_budget->quarter_2))
@php
$total += $account_budget->quarter_2;
@endphp
{{@num_format($account_budget->quarter_2)}}
@else
0
@endif
|
@if(!is_null($account_budget) && !is_null($account_budget->quarter_3))
@php
$total += $account_budget->quarter_3;
@endphp
{{@num_format($account_budget->quarter_2)}}
@else
0
@endif
|
@if(!is_null($account_budget) && !is_null($account_budget->quarter_4))
@php
$total += $account_budget->quarter_4;
@endphp
{{@num_format($account_budget->quarter_4)}}
@else
0
@endif
|
{{@num_format($total)}}
|
@endforeach
@lang('sale.total')
|
{{@num_format($budget->whereIn('accounting_account_id', $account_ids)->sum('quarter_1'))}} |
{{@num_format($budget->whereIn('accounting_account_id', $account_ids)->sum('quarter_2'))}} |
{{@num_format($budget->whereIn('accounting_account_id', $account_ids)->sum('quarter_3'))}} |
{{@num_format($budget->whereIn('accounting_account_id', $account_ids)->sum('quarter_4'))}} |
|