@props(['demographyconfigId','result','rowid','moduleid','mandatory']) @php use App\Models\Demography; use App\Models\DGEditModel; use App\Models\DGModel; use App\Models\AccessView; $demography=new Demography(); $dg_model1 = new DGEditModel(); $dg_model = new DGModel(); $Field=DB::table('DemographyConfig')->where('DemographyConfigId',$demographyconfigId)->get()->first(); $getDependentRelateToList=$demography->getDependentRelateToList($moduleid); $ModuleName=$demography->GetModuleName($moduleid); $RelatedModulesList = $dg_model1->RelatedModules($moduleid); $RelateModules = $dg_model1->RelateModule($moduleid); $DisplayName=$Field->LabelValue; $ColumnName=$Field->ColumnName; $LabelValue=$result->$ColumnName; $DependentRelateToGroupId=$Field->DependentRelateToGroupId; $ParentModuleId=$Field->ParentModuleId; $ParentRowId=$result->$ColumnName; $ParentField=DB::table('DemographyConfig')->where('ModuleId',$ParentModuleId)->where('ReferenceField',1)->get(['ColumnName'])->first(); $DepChildOpList=array(); $ReruiredField=""; $DisplayredStar=""; if($mandatory==1) { $ReruiredField="required"; $DisplayredStar="*"; } else { $ReruiredField=""; $DisplayredStar=""; } @endphp