@php $fieldList_array = json_decode($fieldList); $SavedConditionArray=array(); foreach($GetSavedConditionValue as $eachsavedCond) { $DemographyConfigId=$eachsavedCond->DemographyConfigId; $SavedConditionArray[$DemographyConfigId]=json_decode($eachsavedCond->Conditions); } try { $userdetails=Auth::user(); $LoggedUserId = Auth::user()->RefId; } catch(\Exception $e) { $LoggedUserId=1; } if($LoggedUserId==1) { echo "
";
		//print_r($fieldList_array);
		//print_r($AssignedToList);
		//print_r($RelateModules);
		//print_r($ListBoxNamesIDs);
		//print_r($RelatedModulesList);
		//print_r($ParentIds);
		//echo "GetDropdownLists
;"; //print_r($GetDropdownLists); //echo "
DropDownIds
;"; //print_r($DropDownIds); echo "
"; //die(); } $i=0; $closediv="0"; @endphp
@foreach($fieldList_array AS $fieldList) @php $config_id = $fieldList->DemographyConfigId; $ColumnName = $fieldList->ColumnName; $DisplayType = $fieldList->DisplayType; $LabelValue = $fieldList->LabelValue; $TableName = $fieldList->TableName; $C1=''; $C2=''; $C3=''; $C4=''; $C5=''; $C6=''; $C7=''; $C8=''; $C9=''; $C10=''; $C11=''; $C12=''; $C13=''; $C14=''; $C15=''; $C16=''; $C17=''; $C18=''; $C19=''; $C20=''; $C21=''; $C22=''; $C23=''; $C24=''; $loopcount=1; $a=0; $closediv=0; $newpanel=0; @endphp @if($loopcount == 1) @endif
@if($DisplayType==4) @else : @endif @if($DisplayType==1) @php $displayTextValue=""; $TempValue=""; if(array_key_exists($config_id,$SavedConditionArray)) { $TempValueArray=$SavedConditionArray[$config_id]; $textcondition=$TempValueArray->textcondition; $TempValue=$TempValueArray->value; } @endphp @elseif($DisplayType==2 || $DisplayType==3 ) @php $temparray=array(); if(array_key_exists($config_id,$SavedConditionArray)) { $temparray=$SavedConditionArray[$config_id]; $checktext="checked"; } $ListBoxNamesIDVal=""; if(array_key_exists($ColumnName,$DropDownIds)) // on 18th Feb '22 $ListBoxNamesIDVal=$DropDownIds[$ColumnName]; $listBoxVal=array(); if(array_key_exists($ListBoxNamesIDVal,$GetDropdownLists)) { //if(array_key_exists($GetDropdownLists[$ListBoxNamesIDVal],$GetDropdownLists)) // works when commented on 18th Feb '22 { $listBoxVal=$GetDropdownLists[$ListBoxNamesIDVal]; @endphp @php } } else { @endphp @php } @endphp @elseif($DisplayType=='15' || $DisplayType=='32') @php $temparray=array(); if(array_key_exists($config_id,$SavedConditionArray)) { $temparray=$SavedConditionArray[$config_id]; } @endphp @elseif($DisplayType==4 || $DisplayType==14) @if($DisplayType==14) @else @php $Style="none"; $GetCondition=""; $DisplayFromDate=""; $DisplayToDate=""; if(array_key_exists($DemographyConfigId,$SavedConditionArray)) { $TempValueArray=$SavedConditionArray[$DemographyConfigId]; $Column=$TempValueArray->range; $GetCondition=$TempValueArray->range; $DisplayFromDate=$TempValueArray->from; $DisplayToDate=$TempValueArray->to; } if($GetCondition!='') { if($GetCondition=='last_year') { $C12="selected"; } elseif($GetCondition=='this_year') { $C13="selected"; } elseif($GetCondition=='next_year') { $C14="selected"; } elseif($GetCondition=='today') { $C20="selected"; } elseif($GetCondition=='this_week') { $C21="selected"; } elseif($GetCondition=='MTD') { $C22="selected"; } elseif($GetCondition=='YTD') { $C23="selected"; } elseif($GetCondition=='YTD') { $C24="selected"; } elseif($GetCondition=='last_14_days') { $C16="selected"; } elseif($GetCondition=='last_7_days') { $C5="selected"; } elseif($GetCondition=='next_7_days') { $C6="selected"; } elseif($GetCondition=='next_14_days') { $C17="selected"; } elseif($GetCondition=='last_21_days') { $C18="selected"; } elseif($GetCondition=='next_21_days') { $C19="selected"; } elseif($GetCondition=='last_30_days') { $C7="selected"; } elseif($GetCondition=='next_30_days') { $C8="selected"; } elseif($GetCondition=='last_month') { $C9="selected"; } elseif($GetCondition=='this_month') { $C10="selected"; } elseif($GetCondition=='next_month') { $C11="selected"; } elseif($GetCondition=='between') { $C15="selected"; $Style="block"; } } @endphp {{ucwords($LabelValue)}} Range
{{ucwords($LabelValue)}}
@endif @elseif($DisplayType==5 || $DisplayType==6) @if(array_key_exists($ColumnName,$DropDownIds)) @php $ListBoxNamesIDVal=$DropDownIds[$ColumnName]; //print_r($GetDropdownLists); //die(); $temparray=array(); if(array_key_exists($config_id,$SavedConditionArray)) { $temparray=$SavedConditionArray[$config_id]; } $listBoxVal=$GetDropdownLists[$ListBoxNamesIDVal]; @endphp
    @foreach($listBoxVal as $listBoxKey=>$listBoxValue) @if(in_array($listBoxKey,$temparray)) @php $displayCheckedval="checked"; @endphp @else @php $displayCheckedval=""; @endphp @endif
  • @endforeach
@else @endif @elseif($DisplayType=='25') @if(empty($selfRelatedList)) @else @endif @elseif($DisplayType==7) @elseif($DisplayType == '11') @elseif($DisplayType==8) @if(empty($RelatedModulesList)) @else @endif @else @endif
@if($loopcount == 3) @php $loopcount=1; $closediv = 0; @endphp @else @php $loopcount = $loopcount+1; $closediv = 1; @endphp @endif @php $i++; @endphp @endforeach @if($closediv == 1) @endif