| Total |
MOOE |
CO |
{{-- START GOODS FIRST QUARTER--}}
@for($i = 0; $i< $data['category_size']; $i++)
@for($k = 0; $k< $data['mop_size']; $k++)
@php
$totaloffs1= 0;
@endphp
@php
$totaloffs_set1= 0;
@endphp
@foreach($data['categoryqtr1'.$i.$k] as $index => $offs_qtr1 )
{{-- @foreach($data['categoryqtr1_set'.$i.$k] as $index =>$offs_qtr1_set)
@if(($offs_qtr1->ch_id == $offs_qtr1_set->ch_id) && ($offs_qtr1->mop_id == $offs_qtr1_set->mop_id) && ($offs_qtr1->fund_sourc == $offs_qtr1_set->ch_id))
@endif
@endforeach --}}
{{-- {{$data['categoryqtr1'.$i.$k][0]->category}}--}}
|
{{$data['categoryqtr1'.$i.$k][0]->category}} |
|
|
|
|
|
|
|
|
|
{{-- @if($offs_qtr1->ch_id == 2)--}}
{{-- OFFS-{{ sprintf('%03d',$offs_sequence + 1) }}--}}
{{-- @php--}}
{{-- $offs_sequence++;--}}
{{-- @endphp--}}
{{-- @endif--}}
{{-- @if($offs_qtr1->ch_id == 1)--}}
{{-- CONST-{{ sprintf('%03d',$const_sequence + 1) }}--}}
{{-- @php--}}
{{-- $const_sequence++;--}}
{{-- @endphp--}}
{{-- @endif--}}
{{-- @if($offs_qtr1->ch_id == 3)--}}
{{-- OACS-{{ sprintf('%03d',$oacs_sequence + 1) }}--}}
{{-- @php--}}
{{-- $oacs_sequence++;--}}
{{-- @endphp--}}
{{-- @endif--}}
{{-- @if($offs_qtr1->ch_id == 4)--}}
{{-- OTHERS-{{ sprintf('%03d',$others_sequence + 1) }}--}}
{{-- @php--}}
{{-- $others_sequence++;--}}
{{-- @endphp--}}
{{-- @endif--}}
{{ substr($offs_qtr1->category, 0, 4).sprintf('%03d',$offs_sequence + 1)}}
@php
$offs_sequence++;
@endphp
|
{{ $offs_qtr1->category }} |
{{ $offs_qtr1->fund_source }} |
{{-- @if($offs_qtr1->mop_id == 1)--}}
{{-- CB--}}
{{-- @endif--}}
{{-- @if($offs_qtr1->mop_id == 2)--}}
{{-- NP-SVP--}}
{{-- @endif--}}
{{-- @if($offs_qtr1->mop_id == 3)--}}
{{-- DC--}}
{{-- @endif--}}
{{-- @if($offs_qtr1->mop_id == 5)--}}
{{-- Not Assigned--}}
{{-- @endif--}}
{{$offs_qtr1->mop}}
|
1st Quarter |
GoP |
{{-- P {{ number_format($offs_qtr1->ttotal, 2) }}--}}
@php
$total = $offs_qtr1->ttotal
@endphp
P {{ number_format($total, 2) }}
|
P {{ number_format($total, 2) }} |
|
|
@php
$totaloffs1 = $totaloffs1 + $total;
@endphp
@endforeach
@if($totaloffs1 != 0)
{{-- {{$data['categoryqtr1'.$i.$k][0]->category}}--}}
|
Total |
|
| error
|
|
P {{ number_format( $totaloffs1, 2) }} |
|
|
|
@php
$grand_total[$grand_total_index] = $totaloffs1;
$grand_total_index++;
@endphp
@endif
{{-- ITEM PACKAGE--}}
{{-- @foreach($data['categoryqtr_set1'.$i.$k] as $index => $offs_set1 )--}}
{{-- --}}
{{-- --}}{{-- {{$data['categoryqtr1'.$i.$k][0]->category}}--}}
{{-- | --}}
{{-- {{$data['categoryqtr_set1'.$i.$k][0]->category}} | --}}
{{-- | --}}
{{-- | --}}
{{-- | --}}
{{-- | --}}
{{-- | --}}
{{-- | --}}
{{-- | --}}
{{-- | --}}
{{--
--}}
{{-- --}}
{{-- | --}}
{{-- @if($offs_set1->ch_id == 2)--}}
{{-- OFFS-{{ sprintf('%03d',$offs_sequence + 1) }}--}}
{{-- @php--}}
{{-- $offs_sequence++;--}}
{{-- @endphp--}}
{{-- @endif--}}
{{-- @if($offs_set1->ch_id == 1)--}}
{{-- CONST-{{ sprintf('%03d',$const_sequence + 1) }}--}}
{{-- @php--}}
{{-- $const_sequence++;--}}
{{-- @endphp--}}
{{-- @endif--}}
{{-- @if($offs_set1->ch_id == 3)--}}
{{-- OACS-{{ sprintf('%03d',$oacs_sequence + 1) }}--}}
{{-- @php--}}
{{-- $oacs_sequence++;--}}
{{-- @endphp--}}
{{-- @endif--}}
{{-- @if($offs_set1->ch_id == 4)--}}
{{-- OTHERS-{{ sprintf('%03d',$others_sequence + 1) }}--}}
{{-- @php--}}
{{-- $others_sequence++;--}}
{{-- @endphp--}}
{{-- @endif--}}
{{-- | --}}
{{-- {{$offs_set1->category }} | --}}
{{-- {{ $offs_set1->fund_source }} | --}}
{{-- --}}
{{-- @if($offs_set1->mop_id == 1)--}}
{{-- CB--}}
{{-- @endif--}}
{{-- @if($offs_set1->mop_id == 2)--}}
{{-- NP-SVP--}}
{{-- @endif--}}
{{-- @if($offs_set1->mop_id == 3)--}}
{{-- DC--}}
{{-- @endif--}}
{{-- @if($offs_set1->mop_id == 5)--}}
{{-- Not Assigned--}}
{{-- @endif--}}
{{-- | --}}
{{-- 1st Quarter | --}}
{{-- GoP | --}}
{{-- --}}
{{-- --}}{{-- P {{ number_format($offs_qtr1->ttotal, 2) }}--}}
{{-- @php--}}
{{-- $total = $offs_set1->ttotal--}}
{{-- @endphp--}}
{{-- P {{ number_format($total, 2) }}--}}
{{-- | --}}
{{-- P {{ number_format($total, 2) }} | --}}
{{-- | --}}
{{-- | --}}
{{--
--}}
{{-- @php--}}
{{-- $totaloffs_set1 = $totaloffs_set1 + $total;--}}
{{-- @endphp--}}
{{-- @endforeach--}}
{{-- @if($totaloffs_set1 != 0)--}}
{{-- --}}
{{-- --}}{{-- {{$data['categoryqtr1'.$i.$k][0]->category}}--}}
{{-- | --}}
{{-- Total | --}}
{{-- | --}}
{{-- | error--}}
{{-- | --}}
{{-- | --}}
{{-- P {{ number_format( $totaloffs_set1, 2) }} | --}}
{{-- | --}}
{{-- | --}}
{{-- | --}}
{{--
--}}
{{-- @endif--}}
{{-- END ITEM PACKAGE--}}
@endfor
@endfor
{{-- END GOODS FIRST QUARTER--}}
{{-- GOODS SECOND QUARTER--}}
@for($i = 0; $i< $data['category_size']; $i++)
@for($k = 0; $k< $data['mop_size']; $k++)
@php
$totaloffs1= 0;
@endphp
@foreach($data['categoryqtr2'.$i.$k] as $index => $offs_qtr1 )
{{-- {{$data['categoryqtr2'.$i.$k][0]->category}}--}}
|
{{$data['categoryqtr2'.$i.$k][0]->category}} |
|
|
|
|
|
|
|
|
|
{{-- @if($offs_qtr1->ch_id == 2)--}}
{{-- OFFS-{{ sprintf('%03d',$offs_sequence + 1) }}--}}
{{-- @php--}}
{{-- $offs_sequence++;--}}
{{-- @endphp--}}
{{-- @endif--}}
{{-- @if($offs_qtr1->ch_id == 1)--}}
{{-- CONST-{{ sprintf('%03d',$const_sequence + 1) }}--}}
{{-- @php--}}
{{-- $const_sequence++;--}}
{{-- @endphp--}}
{{-- @endif--}}
{{-- @if($offs_qtr1->ch_id == 3)--}}
{{-- OACS-{{ sprintf('%03d',$oacs_sequence + 1) }}--}}
{{-- @php--}}
{{-- $oacs_sequence++;--}}
{{-- @endphp--}}
{{-- @endif--}}
{{-- @if($offs_qtr1->ch_id == 4)--}}
{{-- OTHERS-{{ sprintf('%03d',$others_sequence + 1) }}--}}
{{-- @php--}}
{{-- $others_sequence++;--}}
{{-- @endphp--}}
{{-- @endif--}}
{{ substr($offs_qtr1->category, 0, 4).sprintf('%03d',$offs_sequence + 1)}}
@php
$offs_sequence++;
@endphp
|
{{ $offs_qtr1->category }} |
{{ $offs_qtr1->fund_source }} |
{{-- @if($offs_qtr1->mop_id == 1)--}}
{{-- CB--}}
{{-- @endif--}}
{{-- @if($offs_qtr1->mop_id == 2)--}}
{{-- NP-SVP--}}
{{-- @endif--}}
{{-- @if($offs_qtr1->mop_id == 3)--}}
{{-- DC--}}
{{-- @endif--}}
{{-- @if($offs_qtr1->mop_id == 5)--}}
{{-- Not Assigned--}}
{{-- @endif--}}
{{$offs_qtr1->mop}}
|
2nd Quarter |
GoP |
{{-- P {{ number_format($offs_qtr1->ttotal, 2) }}--}}
@php
$total = $offs_qtr1->ttotal
@endphp
P {{ number_format($total, 2) }}
|
P {{ number_format($total, 2) }} |
|
|
@php
$totaloffs1 = $totaloffs1 + $total;
@endphp
@endforeach
@if($totaloffs1 != 0)
|
Total |
|
|
|
|
P {{ number_format( $totaloffs1, 2) }} |
|
|
|
@php
$grand_total[$grand_total_index] = $totaloffs1;
$grand_total_index++;
@endphp
@endif
@endfor
@endfor
{{-- --}}{{-- END GOODS SECOND QUARTER--}}
{{-- --}}{{-- GOODS 3RD QUARTER--}}
@for($i = 0; $i< $data['category_size']; $i++)
@for($k = 0; $k< $data['mop_size']; $k++)
@php
$totaloffs1= 0;
@endphp
@foreach($data['categoryqtr3'.$i.$k] as $index => $offs_qtr1 )
{{-- {{$data['categoryqtr3'.$i.$k][0]->category}}--}}
|
{{$data['categoryqtr3'.$i.$k][0]->category}} |
|
|
|
|
|
|
|
|
|
{{-- @if($offs_qtr1->ch_id == 2)--}}
{{-- OFFS-{{ sprintf('%03d',$offs_sequence + 1) }}--}}
{{-- @php--}}
{{-- $offs_sequence++;--}}
{{-- @endphp--}}
{{-- @endif--}}
{{-- @if($offs_qtr1->ch_id == 1)--}}
{{-- CONST-{{ sprintf('%03d',$const_sequence + 1) }}--}}
{{-- @php--}}
{{-- $const_sequence++;--}}
{{-- @endphp--}}
{{-- @endif--}}
{{-- @if($offs_qtr1->ch_id == 3)--}}
{{-- OACS-{{ sprintf('%03d',$oacs_sequence + 1) }}--}}
{{-- @php--}}
{{-- $oacs_sequence++;--}}
{{-- @endphp--}}
{{-- @endif--}}
{{-- @if($offs_qtr1->ch_id == 4)--}}
{{-- OTHERS-{{ sprintf('%03d',$others_sequence + 1) }}--}}
{{-- @php--}}
{{-- $others_sequence++;--}}
{{-- @endphp--}}
{{-- @endif--}}
{{ substr($offs_qtr1->category, 0, 4).sprintf('%03d',$offs_sequence + 1)}}
@php
$offs_sequence++;
@endphp
|
{{ $offs_qtr1->category }} |
{{ $offs_qtr1->fund_source }} |
{{-- @if($offs_qtr1->mop_id == 1)--}}
{{-- CB--}}
{{-- @endif--}}
{{-- @if($offs_qtr1->mop_id == 2)--}}
{{-- NP-SVP--}}
{{-- @endif--}}
{{-- @if($offs_qtr1->mop_id == 3)--}}
{{-- DC--}}
{{-- @endif--}}
{{-- @if($offs_qtr1->mop_id == 5)--}}
{{-- Not Assigned--}}
{{-- @endif--}}
{{$offs_qtr1->mop}}
|
3rd Quarter |
GoP |
{{-- P {{ number_format($offs_qtr1->ttotal, 2) }}--}}
@php
$total = $offs_qtr1->ttotal
@endphp
P {{ number_format($total, 2) }}
|
P {{ number_format($total, 2) }} |
|
|
@php
$totaloffs1 = $totaloffs1 + $total;
@endphp
@endforeach
@if($totaloffs1 != 0)
|
Total |
|
|
|
|
P {{ number_format( $totaloffs1, 2) }} |
|
|
|
@php
$grand_total[$grand_total_index] = $totaloffs1;
$grand_total_index++;
@endphp
@endif
@endfor
@endfor
{{-- --}}{{-- END GOODS 3RD QUARTER--}}
{{-- --}}{{-- GOODS 4th QUARTER--}}
@for($i = 0; $i< $data['category_size']; $i++)
@for($k = 0; $k< $data['mop_size']; $k++)
@php
$totaloffs1= 0;
@endphp
@foreach($data['categoryqtr4'.$i.$k] as $index => $offs_qtr1 )
{{-- {{$data['categoryqtr4'.$i.$k][0]->category}}--}}
|
{{$data['categoryqtr4'.$i.$k][0]->category}} |
|
|
|
|
|
|
|
|
|
{{-- @if($offs_qtr1->ch_id == 2)--}}
{{-- OFFS-{{ sprintf('%03d',$offs_sequence + 1) }}--}}
{{-- @php--}}
{{-- $offs_sequence++;--}}
{{-- @endphp--}}
{{-- @endif--}}
{{-- @if($offs_qtr1->ch_id == 1)--}}
{{-- CONST-{{ sprintf('%03d',$const_sequence + 1) }}--}}
{{-- @php--}}
{{-- $const_sequence++;--}}
{{-- @endphp--}}
{{-- @endif--}}
{{-- @if($offs_qtr1->ch_id == 3)--}}
{{-- OACS-{{ sprintf('%03d',$oacs_sequence + 1) }}--}}
{{-- @php--}}
{{-- $oacs_sequence++;--}}
{{-- @endphp--}}
{{-- @endif--}}
{{-- @if($offs_qtr1->ch_id == 4)--}}
{{-- OTHERS-{{ sprintf('%03d',$others_sequence + 1) }}--}}
{{-- @php--}}
{{-- $others_sequence++;--}}
{{-- @endphp--}}
{{-- @endif--}}
{{ substr($offs_qtr1->category, 0, 4).sprintf('%03d',$offs_sequence + 1)}}
@php
$offs_sequence++;
@endphp
|
{{ $offs_qtr1->category }} |
{{ $offs_qtr1->fund_source }} |
{{-- @if($offs_qtr1->mop_id == 1)--}}
{{-- CB--}}
{{-- @endif--}}
{{-- @if($offs_qtr1->mop_id == 2)--}}
{{-- NP-SVP--}}
{{-- @endif--}}
{{-- @if($offs_qtr1->mop_id == 3)--}}
{{-- DC--}}
{{-- @endif--}}
{{-- @if($offs_qtr1->mop_id == 5)--}}
{{-- Not Assigned--}}
{{-- @endif--}}
{{ $offs_qtr1->mop }}
|
4th Quarter |
GoP |
{{-- P {{ number_format($offs_qtr1->ttotal, 2) }}--}}
@php
$total = $offs_qtr1->ttotal
@endphp
P {{ number_format($total, 2) }}
|
P {{ number_format($total, 2) }} |
|
|
@php
$totaloffs1 = $totaloffs1 + $total;
@endphp
@endforeach
@if($totaloffs1 != 0)
|
Total |
|
|
|
|
P {{ number_format( $totaloffs1, 2) }} |
|
|
|
@php
$grand_total[$grand_total_index] = $totaloffs1;
$grand_total_index++;
@endphp
@endif
@endfor
@endfor
{{-- END GOODS 4th QUARTER--}}
{{--START FOR CIVIL WORKS--}}
|
Infrastructure |
|
|
|
|
|
|
|
|
{{-- @foreach($data['cw_modes'] as $mode_key=>$mode_value)--}}
{{-- @foreach($data['cw_funding'] as $funding_key => $funding_value)--}}
{{-- --}}
{{-- @endforeach--}}
{{-- @endforeach--}}
@foreach($data['civil_works'] as $cw_item)
@php
$totaloffs1 = 0;
@endphp
|
{{ $cw_item->project_code }} |
{{ $cw_item->fund_source }} |
{{ $cw_item->mode }}
|
1st Quarter |
GoP |
P {{ number_format($cw_item->total_cost, 2) }}
|
|
P {{ number_format($cw_item->total_cost, 2) }} |
|
@php
array_push($infra_total, $cw_item->total_cost);
@endphp
@endforeach
|
Total |
|
|
|
|
P {{ number_format( array_sum($infra_total), 2) }} |
|
|
|
@php
$grand_total[$grand_total_index] = array_sum($infra_total);
@endphp
{{--END FOR CIVIL WORKS--}}
|
Grand Total |
|
|
|
|
P {{ number_format( array_sum($grand_total), 2) }} |
|
|
|