@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; $RowId=uniqid(); @endphp @php $fieldList_array = json_decode($fieldList); $ConfiguredCustomFunctions=json_decode($ConfiguredCustomFunctions,true); echo "
";
	//echo "source=".$source;
	//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);
	//print_r($SecondaryModulesList);
	//print_r($DependentFieldsList);
	//print_r($NewFieldsList);

	if($_SERVER['REMOTE_ADDR']=="157.51.150.38")
	{
		print_r($ConfiguredCustomFunctions);
	}

echo "
"; //die(); @endphp @php $url=$_SERVER['HTTP_HOST']; $url=explode(".",$url); //print_r($url); if($url[0]=="crm") { @endphp @php } @endphp @php $siteurl=$_SERVER['HTTP_HOST']; //$url=explode(".",$siteurl); // crm.bpm360.net //echo ""; @endphp
@php $loopcount=1; $a=0; $closediv =0; $required=""; $paneltype=2; $newpanel =0; $OldAddressGroupId=''; $closeAddress=0; @endphp @php $newpanel=1; $firstflag=0; @endphp @foreach($fieldList_array AS $fieldList) @php $panelid=$fieldList->PanelId; @endphp @if($firstflag>0) @if($panelid==$oldpanelid) @php $newpanel=0; @endphp @else @php $newpanel=1; @endphp @endif @else @php $firstflag++; @endphp @php $oldpanelid=$fieldList->PanelId; @endphp @endif @php /* @if($newpanel==1) @else @endif */ @endphp @php $oldpanelid=$fieldList->PanelId; @endphp @endforeach @php $startpanel=1; $starttab=1; $closeaccordian=0; $closetab=0; @endphp @php //$displayPaneltype=1; if($displayPaneltype==0) { $paneltype="accordian"; } else { $paneltype="tab"; } $newpanel=1; $tabdiv=1; $firstflag=0; $closeaccordian=0; $closetab=0; $closetabcontent=0; $opentab=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; $requiredDisplay=""; if($Required==1) { $required="required"; //$requiredDisplay='*'; $requiredDisplay='*'; } else { $required=""; } $DropDownNameId = $fieldList->DropDownNameId; $ParentModuleId = $fieldList->ParentModuleId; // added on 23rd April '21 @endphp @if($Display == 1) @if($loopcount == 1) @endif @if($firstflag>0) @if($panelid==$oldpanelid) @php $newpanel=0; @endphp @else @php $newpanel=1; @endphp @endif @else @php $firstflag++; @endphp @php $oldpanelid=$fieldList->PanelId; @endphp @endif @if($newpanel==1 && $paneltype=="accordian") @if($closeaccordian==1)
@endif @php $closeaccordian=1; @endphp
@elseif($newpanel==1 && $paneltype=="tab") @if($opentab==0)
@php $opentab=1; @endphp @endif @if($closetabcontent==1)
@endif
@if($tabshow==0) @php $tabshow=1; $tabshowval=""; @endphp @endif @php $tabdiv++; $closetabcontent=1; @endphp @endif @php $oldpanelid=$fieldList->PanelId; @endphp @if($closeAddress=="1" && $OldAddressGroupId!=$AddressGroupId) @endif @if($AddressGroupId!='' && $OldAddressGroupId!=$AddressGroupId) @php $OldAddressGroupId=$AddressGroupId; $closeAddress="1"; @endphp
Address: @endif @if($DisplayType == '10' || ($DisplayType == '26' && $fieldList->DependentFieldPanelType=='1') || $DisplayType == '27' || $DisplayType == '99')
@else
@endif
@if($DisplayType == '9' || $DisplayType == '16' || $DisplayType == '26' || $DisplayType=='99') @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') @if($fieldList->DependentFieldPanelType==1)
@endif @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 @if($fieldList->DependentFieldPanelType==1)
@endif @if($fieldList->DependentFieldPanelType==1)
@endif @elseif($DisplayType == '99')
@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
@if(array_key_exists($config_id,$ConfiguredCustomFunctions)) @php $EventType=$ConfiguredCustomFunctions[$config_id]['Event']; @endphp @endif @if($loopcount == 3) @php $loopcount=1; $closediv = 0; @endphp @else @php $loopcount = $loopcount+1; $closediv = 1; @endphp @endif @php $loopcount++; @endphp @endif @endforeach @if($closediv == 1) @endif
@if($closeaccordian==1)
@endif @if($paneltype=="tab") @foreach($DependentFieldsList as $DependentFieldList)
@endforeach @endif @if($closetab==1)
@endif @if($paneltype=="tab")

@endif
@php $siteurl=$_SERVER['HTTP_HOST']; //$url=explode(".",$siteurl); // crm.bpm360.net @endphp