@php //print_r($getMenuList); //print_r($ModuleGroups); //print_r($ConfiguredModuleGroups); $loopcount = 1; //die(); @endphp @foreach($getMenuList as $menulist) @foreach($ConfiguredModuleGroups as $ConfiguredModuleGroup) @php $groupExists=0; @endphp @if(in_array($menulist['ModuleID'],$ConfiguredModuleGroup['ModuleIds'])) @php $groupExists=1; break; @endphp @endif @endforeach @if($groupExists==0) @endif @php $loopcount++; @endphp @endforeach @foreach($ModuleGroups as $ModuleGroup) @if(array_key_exists($ModuleGroup->ModuleGroupId,$ConfiguredModuleGroups)) @endif @endforeach