@props(['demographyconfigId','result','rowid','moduleid']) @php use App\Models\InboundEmail; $Field=DB::table('DemographyConfig')->where('DemographyConfigId',$demographyconfigId)->get()->first(); $DisplayName=$Field->LabelValue; $ColumnName=$Field->ColumnName; //$LabelValue=strip_tags($result->$ColumnName);; $LabelValue=$result->$ColumnName; if($_SERVER['HTTP_HOST']=="crm.bpm360.net" && $ColumnName=="Description" && $moduleid="806867ab-96a5-11eb-948a-56b1773fd56f") { } $LabelValue=InboundEmail::ExtractMailBody($LabelValue); $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