@props(['demographyconfigId','moduleid']) @php use App\Models\Demography; $Field=DB::table('DemographyConfig')->where('DemographyConfigId',$demographyconfigId)->get()->first(); $DisplayName=$Field->LabelValue; $ColumnName=$Field->ColumnName; $Helptext=$Field->Helptext; $ParentModuleId=$Field->ParentModuleId; //$RowId=uniqid(); @endphp
@php $demography=new Demography(); $ConfiguredSecondaryModulesList=$demography->ConfiguredSecondaryModulesList($moduleid); if($ParentModuleId) { $ConfiguredSecondaryModulesList=[$ParentModuleId]; } else { $ConfiguredSecondaryModulesList=["09f2ac4a-d55b-431a-a043-4fb6e5b03f5f"]; } foreach ($ConfiguredSecondaryModulesList as $secondaryModule) { if($secondaryModule!=$moduleid) { $RelModuleName=$demography->getModuleName($secondaryModule); $RelModuleId=$secondaryModule; $RelModuleIcon=$demography->GetModuleIcon($secondaryModule); @endphp
{{$RelModuleName}}
@php } } @endphp