@php $Field=DB::table('DemographyConfig')->where('DemographyConfigId',$demographyconfigId)->get()->first(); $DisplayName=$Field->LabelValue; $ColumnName=$Field->ColumnName; $DisplayType=$Field->DisplayType; $DependentField=$Field->DependentField; $moduleid=$Field->ModuleId; $TempValue=""; $textconditiona=""; $textconditionb=""; if(array_key_exists($demographyconfigId,$valueforhold)) { $TempValueArray=$valueforhold[$demographyconfigId]; $textcondition=$TempValueArray->textcondition; $TempValue=$TempValueArray->value; if($textcondition=='Like') { $textconditiona="selected"; } if($textcondition=='Equals') { $textconditionb="selected"; } } @endphp