@foreach ($pksfFunds as $pksfFund) @endforeach @foreach ($indicators as $key => $indicator) @php $result = $dataCollection->where('code',$indicator['code'])->where('pksfFundId',0)->sum('result'); @endphp @if (in_array($indicator['code'], $numberFormatCodes)) @else @endif @foreach ($pksfFunds as $pksfFund) @php $numOfProduct = count($loanProducts->where('pksfFundIdFk',$pksfFund->id)->pluck('id')->toArray()); $result = $dataCollection->where('code',$indicator['code'])->where('pksfFundId',$pksfFund->id)->sum('result'); @endphp @if ($numOfProduct==0) @elseif (in_array($indicator['code'], $numberFormatCodes)) @else @endif @endforeach @endforeach
SL# Indicator Code Indicator Name (Program Data) M/F/N Other Fund List of PKSF Funds
{{ $pksfFund->name }}
{{ $key+1 }} {{ $indicator['code'] }} {{ $indicator['name'] }} {{ $indicator['gender'] }}{{ number_format((float)$result,2) }}{{ $result }}{{ number_format((float)$result,2) }}{{ $result }}
{{-- responseDIV --}}
{{-- end first table --}}
{{-- printDiv DIV --}} {{-- --}}