@props(['demographyconfigId','result','rowid','moduleid']) @php $Field=DB::table('DemographyConfig')->where('DemographyConfigId',$demographyconfigId)->get()->first(); $DisplayName=$Field->LabelValue; $ColumnName=$Field->ColumnName; $LabelValue=$result->$ColumnName; $DependentField=$Field->DependentField; $DependentFieldId=$Field->DependentFieldId; $displayColumn=1; if($DependentField && $DependentFieldId) { $DropdownResult=DB::table('DropDownLists')->where('DropDownListId',$DependentFieldId)->get(['DropDownNameId'])->first(); try { $dependentFieldDropdownId=$DropdownResult->DropDownNameId; $GetParentColumnName=DB::table('DemographyConfig')->where('ModuleId',$moduleid)->where('DisplayType','26')->where('DropDownNameId',$dependentFieldDropdownId)->get(['ColumnName'])->first(); $ParentColumnName=$GetParentColumnName->ColumnName; if($result->$ParentColumnName==$DependentFieldId) { $displayColumn=1; } else { $displayColumn=0; } } catch(\Exception $e){} } if($displayColumn) { $displayDiv="style=''"; } else { $displayDiv="style='display:none';"; } @endphp

@php echo $LabelValue; @endphp