@php $preferences = array( 'DateFormat' => 'dd-mm-YYYY', 'NoOfRecordsListView' => '10', 'NoOfRowsCreateView' => '3', 'NoOfRowsDetailView' => '3', 'Modules' => array(1,3,5), 'Submodules' => array(11,33,15), ); $preferences = json_encode($preferences); //print_r($preferences); $userdetails=Auth::user(); $LoggedUserId = Auth::user()->RefId; @endphp @php $fieldList_array = json_decode($fieldList); echo "
";
	
	//print_r($getDependentRelateToList);
	//print_r($paneltype);
	//	print_r($AssignedToList);
	// print_r($ListBoxNamesIDs);
	//print_r($fieldList_array);
	//print_r($panelList);
	//	print_r($RelateModules);
	//print_r($RelatedModulesList);
	//print_r($GetDropdownLists);
	//print_r($selfRelatedList);
	//print_r($DependentRelateGroupsList);
	//print_r($getAddressFields);
echo "
"; //die(); @endphp @php $OldAddressGroupId=''; $closeAddress=0; $loopcount=1; $closediv =0; @endphp @foreach($fieldList_array AS $fieldList) @php $config_id = $fieldList->DemographyConfigId; $TableName = $fieldList->TableName; $ColumnName = $fieldList->ColumnName; $SortOrder = $fieldList->SortOrder; $DisplayType = $fieldList->DisplayType; $Required = $fieldList->Required; $Display = $fieldList->Display; $LabelValue = $fieldList->LabelValue; $panelid=$fieldList->PanelId; $DefaultValue=$fieldList->DefaultValue; $AddressGroupId=$fieldList->GroupId; $Readonly=$fieldList->Readonly; if($Readonly) { $Readonly="readonly"; } else { $Readonly=""; } $requiredDisplay=""; if($Required==1) { $required="required"; //$requiredDisplay='*'; $requiredDisplay='*'; } else { $required=""; } $DropDownNameId = $fieldList->DropDownNameId; $ParentModuleId = $fieldList->ParentModuleId; // added on 23rd April '21 @endphp @if($closeAddress=="1" && $OldAddressGroupId!=$AddressGroupId) @endif @if($AddressGroupId!='' && $OldAddressGroupId!=$AddressGroupId) @php $OldAddressGroupId=$AddressGroupId; $closeAddress="1"; @endphp
Address: @endif @if($DisplayType == '10' || $DisplayType == '26' || $DisplayType == '27')
@else
@endif
@if($DisplayType == '9' || $DisplayType == '16' || $DisplayType == '26') @else @php echo $requiredDisplay; @endphp @endif @if($DisplayType == '2') @php if(empty($ListBoxNamesIDs) || $DropDownNameId=='') { @endphp @php } else { //$ListBoxNamesIDVal=$ListBoxNamesIDs[$ColumnName]; $ListBoxNamesIDVal=$DropDownNameId; if(array_key_exists($ListBoxNamesIDVal,$GetDropdownLists)) { $listBoxVal=$GetDropdownLists[$ListBoxNamesIDVal]; @endphp @php }else { @endphp @php } @endphp @if($Required==1)
Please fill the {{$ColumnName}}
@endif @php } @endphp @elseif($DisplayType=='15') @elseif($DisplayType == '3') @php if(empty($ListBoxNamesIDs) || $DropDownNameId=='') { @endphp @php } else { //$ListBoxNamesIDVal=$ListBoxNamesIDs[$ColumnName]; $ListBoxNamesIDVal=$DropDownNameId; if(array_key_exists($ListBoxNamesIDVal,$GetDropdownLists)) { $listBoxVal=$GetDropdownLists[$ListBoxNamesIDVal]; @endphp @php } else { @endphp @php } @endphp @if($Required==1)
Please fill the {{$ColumnName}}
@endif @php } @endphp @elseif($DisplayType == '26')
@php if(empty($ListBoxNamesIDs) || $DropDownNameId=='') { @endphp @php } else { //$ListBoxNamesIDVal=$ListBoxNamesIDs[$ColumnName]; $ListBoxNamesIDVal=$DropDownNameId; $listBoxVal=$GetDropdownLists[$ListBoxNamesIDVal]; @endphp @if($Required==1)
Please fill the {{$ColumnName}}
@endif @php } @endphp
@elseif($DisplayType == '4') @php if($DefaultValue) { $DefaultValue=date('Y-m-d', strtotime($DefaultValue)); } @endphp
@if($Required==1)
Please fill the {{$ColumnName}}
@endif @elseif($DisplayType == '14') @php if($DefaultValue) { $DefaultValue=date('Y-m-d h:i a', strtotime($DefaultValue)); } $todaydate=date("d-m-Y"); $DefaultValue=date('Y-m-d h:i a', strtotime($todaydate)); @endphp
@if($Required==1)
Please fill the {{$ColumnName}}
@endif @elseif($DisplayType == '5') @if(empty($ListBoxNamesIDs) || $DropDownNameId=='')
@else @php //$ListBoxNamesIDVal=$ListBoxNamesIDs[$ColumnName]; $ListBoxNamesIDVal=$DropDownNameId; $listBoxVal=$GetDropdownLists[$ListBoxNamesIDVal]; @endphp
    @foreach($listBoxVal as $listBoxKey=>$listBoxValue) @php $radioChecked=""; if($DefaultValue==$listBoxKey) { $radioChecked="checked"; } @endphp
  • @endforeach
@endif @elseif($DisplayType == '6') @if(empty($ListBoxNamesIDs) || $DropDownNameId=='')
@else @php $ListBoxNamesIDVal=$DropDownNameId; $listBoxVal=$GetDropdownLists[$ListBoxNamesIDVal]; @endphp @if(!array_key_exists($ListBoxNamesIDVal,$childList)) @foreach($listBoxVal as $listBoxKey=>$listBoxValue) @php $radioChecked=""; if($DefaultValue==$listBoxKey) { $radioChecked="checked"; } @endphp
@endforeach @endif @if($Required==1)
Please fill the {{$ColumnName}}
@endif @endif @elseif($DisplayType == '7') @elseif($DisplayType == '8') @php $related=1; if($related==1) { if(empty($RelateModules)) { echo ""; } else { @endphp
  • @php if($Required==1) { @endphp
    Please fill the {{$ColumnName}}
    @php } @endphp
@php } } @endphp @elseif($DisplayType == '9')
@php echo $requiredDisplay; @endphp
@elseif($DisplayType == '16')
@php echo $requiredDisplay; @endphp
@elseif($DisplayType == '10')

@elseif($DisplayType == '11') @if($Required==1)
Please fill the {{$ColumnName}}
@endif @elseif($DisplayType == '12')
@if($Required==1)
Please fill the {{$ColumnName}}
@endif @elseif($DisplayType == '13') @if($Required==1)
Please fill the {{$ColumnName}}
@endif @elseif($DisplayType == '17') @if($Required==1)
Please fill the {{$ColumnName}}
@endif @elseif($DisplayType == '18') @if($Required==1)
Please fill the {{$ColumnName}}
@endif @elseif($DisplayType == '1') @if($Required==1)
Please fill the {{$ColumnName}}
@endif @elseif($DisplayType == '19') @if($Required==1)
Please fill the {{$ColumnName}}
@endif @elseif($DisplayType == '23') @php $Drl=1; if($Drl==1) { if(empty($RelateModules)) { echo ""; } else { $DependentRelateGroupId=$DependentRelateGroupsList[$ColumnName]; if(array_key_exists($ParentModuleId,$getDependentRelateToList) && array_key_exists($ParentModuleId,$RelatedModulesList)) { @endphp @php } else { @endphp @php } } } @endphp @elseif($DisplayType=='25') @if(empty($selfRelatedList)) @else @endif @if($Required==1)
Please fill the {{$ColumnName}}
@endif @elseif($DisplayType=='27')
@foreach($SecondaryModulesList as $SecondaryModule) @if($SecondaryModule['ModuleId']!==$ModuleId)
{{$SecondaryModule['ModuleName']}}
@endif @endforeach
@elseif($DisplayType == '28') @php if(empty($ListBoxNamesIDs) || $DropDownNameId=='') { @endphp @php } else { //$ListBoxNamesIDVal=$ListBoxNamesIDs[$ColumnName]; $ListBoxNamesIDVal=$DropDownNameId; if(array_key_exists($ListBoxNamesIDVal,$GetDropdownLists)) { $listBoxVal=$GetDropdownLists[$ListBoxNamesIDVal]; @endphp @if(!array_key_exists($ListBoxNamesIDVal,$childList)) @foreach($listBoxVal as $listBoxKey=>$listBoxValue) @php echo " @php } else { @endphp @php } @endphp @if($Required==1)
Please fill the {{$ColumnName}}
@endif @php } @endphp @else @if($Required==1)
Please fill the {{$ColumnName}}
@endif @endif
@php $loopcount++; @endphp
@endforeach