@props(['demographyconfigId','result','rowid','moduleid','mandatory']) @php $Field=DB::table('DemographyConfig')->where('DemographyConfigId',$demographyconfigId)->get()->first(); $DisplayName=$Field->LabelValue; $ColumnName=$Field->ColumnName; $LabelValue=$result->$ColumnName; $DropDownNameId=$Field->DropDownNameId; $DropdownResult=DB::table('DropDownLists')->where('DropDownNameId',$DropDownNameId)->where('DropDownListId',$LabelValue)->get(['DropDownListName'])->first(); try { $LabelValue=$DropdownResult->DropDownListName; } catch(\Exception $e) { $LabelValue=""; } if($mandatory==1) { $ReruiredField="required"; $DisplayredStar="*"; } else { $ReruiredField=""; $DisplayredStar=""; } @endphp
{{$LabelValue}}