@php $sn = 1; $zn = 0; foreach($result as $ac){ if($ac->zone == 1){ $zones = "JABALPUR ZONE"; }else if($ac->zone == 2){ $zones = "INDORE ZONE"; }else if($ac->zone == 3){ $zones = "GWALIOR ZONE"; } if($ac->zone != $zn){ @endphp @php } @endphp @php // exit(); $zn = $ac->zone; ++$sn; } @endphp
S.No. Hon'ble Portfolio Judge District(s)
HON'BLE PORTFOLIO JUDGES - {{ $zones }}
{{ $sn; }} HON'BLE JUSTICE {{ $ac->name }} {{ $ac->districtname }}