@foreach ($major_heads_types as $major_heads_type) @php $total_outlay = 0; $total_budget = 0; $sr = 1; @endphp {{-- --}} @foreach ($Budgets as $Budget) @php $mojor_num = json_decode($Budget->BudgetDetails); @endphp @if ($major_heads_type->id == $mojor_num->select_major_head_type) @php $sr++; @endphp @endif @endforeach {{-- --}}
Sr. No. B.H. Name of Work Outlay in Lakh Budget in Lakh Unit NameView Project
{{ $major_heads_type->name }}
{{ $sr }} {{ $Budget->Budget_BH }} {{ $Budget->ProjectName }} @php $outlay = $Budget->ProjectOutlayAmount; $total_outlay += $outlay; @endphp {{ number_format($outlay, 2) }} @php $num = $mojor_num->provision_amount; $total_budget += $num; @endphp {{ number_format($num, 2) }} {{ $Budget->Taluka }}
Total {{ number_format($total_outlay, 2) }} {{ number_format($total_budget, 2) }}
@endforeach