@props(['field']) @php $results=[]; $Field=$field; $DisplayName=$Field->LabelValue; $Required=$Field->Required; $ColumnName=$Field->ColumnName; $ModuleId=$Field->ModuleId; $DropDownNameId=$Field->DropDownNameId; $DependentField=$Field->DependentField; $DependentField=$Field->DependentField; $Helptext=$Field->Helptext; $DefaultValue=$Field->DefaultValue; $parentDropDownListValues=[]; $LabelValue=""; $DropDownNameData=DB::table('DropDownNames')->where('DropDownNameId',$DropDownNameId)->get()->First(); $ParentDropDownNameId=""; $ParentDropDownNameId=$DropDownNameData->ReferenceID; $ParentColumnValue=""; if($ParentDropDownNameId) { $ParentColumn=DB::table('DemographyConfig')->where('ModuleId',$ModuleId)->where('DropDownNameId',$ParentDropDownNameId)->get(['ColumnName'])->first(); try { $ParentColumnName=$ParentColumn->ColumnName; } catch(\Exception $e){} } $DropdownsList=DB::table('DropDownLists')->where('DropDownNameId',$DropDownNameId)->where('DropDownListStatus',1)->orderBy('SortOrder','ASC')->get(['DropDownListId','DropDownListName','ReferenceID']); if($Required==1) { $ReruiredField="required"; $DisplayredStar="*"; } else { $ReruiredField=""; $DisplayredStar=""; } //print_r($parentDropDownListValues); $checkApi=explode("/",$_SERVER['REQUEST_URI']); $apiUrl=""; if(strtolower($checkApi[1])=="api") { $apiUrl="api/"; } if($DependentField==1) { $displayHide="displayHide"; $RequiredField=""; } else { $displayHide=""; } @endphp
Please fill the {{$DisplayName}}