@php $fieldList_array = json_decode($field_list); echo "
";
//print_r($fieldList_array);
//print_r($GetDropdownLists);
//print_r($GetSavedConditionValue);
$SavedConditionArray=array();
foreach($GetSavedConditionValue as $eachsavedCond)
{
	$DemographyConfigId=$eachsavedCond->DemographyConfigId;
	$SavedConditionArray[$DemographyConfigId]=json_decode($eachsavedCond->Conditions);
}
//print_r($SavedConditionArray);
echo "
"; $DisplayNameExtra=""; if($source=='SubModule') { $DisplayNameExtra=$PrimaryModuleId; } $loopcount=0; @endphp

Add Conditions

@foreach($fieldList_array as $eachField) @php $loopcount++; $ColumnName=$eachField->ColumnName; $DisplayType=$eachField->DisplayType; $DemographyConfigId=$eachField->DemographyConfigId; $DropDownNameId=$eachField->DropDownNameId; $PModuleId=$eachField->ParentModuleId; $ParentModuleId=$eachField->ParentModuleId; $C1=''; $C2=''; $C3=''; $C4=''; $C5=''; $C6=''; $C7=''; $C8=''; $C9=''; $C10=''; $C11=''; $C12=''; $C13=''; $C14=''; $C15=''; $C16=''; $C17=''; $C18=''; $C19=''; $C20=''; $C21=''; $C22=''; $C23=''; $C24=''; $C25=''; $desc=''; $asc=''; @endphp @if($DisplayType==2) @php $checktext=""; $temparray=array(); if(array_key_exists($DemographyConfigId,$SavedConditionArray)) { $temparray=$SavedConditionArray[$DemographyConfigId]; $checktext="checked"; } @endphp @elseif($DisplayType==5) @php $checktext=""; $temparray=array(); if(array_key_exists($DemographyConfigId,$SavedConditionArray)) { $temparray=$SavedConditionArray[$DemographyConfigId]; $checktext="checked"; } @endphp @elseif($DisplayType==6 || $DisplayType==3) @php $checktext=""; $temparray=array(); if(array_key_exists($DemographyConfigId,$SavedConditionArray)) { $temparray=$SavedConditionArray[$DemographyConfigId]; $checktext="checked"; } @endphp @elseif($DisplayType==15 || $DisplayType==31 || $DisplayType==32 || $DisplayType==33 ) @php $temparray=array(); if(array_key_exists($DemographyConfigId,$SavedConditionArray)) { $temparray=$SavedConditionArray[$DemographyConfigId]; } @endphp @elseif(($DisplayType==1 || $DisplayType==20 )&& $ColumnName!='DeletedStatus') @php $TempValue=""; $checktext=""; $textconditiona=""; $textconditionb=""; if(array_key_exists($DemographyConfigId,$SavedConditionArray)) { $TempValueArray=$SavedConditionArray[$DemographyConfigId]; $textcondition=$TempValueArray->textcondition; $TempValue=$TempValueArray->value; $checktext="checked"; if($textcondition=='Like') { $textconditiona="selected"; } if($textcondition=='Equals') { $textconditionb="selected"; } } @endphp @elseif($DisplayType==12) @php $checktext=""; $temparray=array(); if(array_key_exists($DemographyConfigId,$SavedConditionArray)) { $temparray=$SavedConditionArray[$DemographyConfigId]; $checktext="checked"; } $textconditiona=""; $textconditionb=""; $TempValue=""; if(array_key_exists($DemographyConfigId,$SavedConditionArray)) { $TempValueArray=$SavedConditionArray[$DemographyConfigId]; $textcondition=$TempValueArray->textcondition; $TempValue=$TempValueArray->value; $checktext="checked"; if($textcondition=='Like') { $textconditiona="selected"; } if($textcondition=='Equals') { $textconditionb="selected"; } } @endphp @elseif($DisplayType==17 || $DisplayType==13) @php $TempValue=""; $TempValue2=""; $checktext=""; $noneorblock="none"; $textconditiona=""; $textconditionb=""; $textconditionc=""; $textconditiond=""; if(array_key_exists($DemographyConfigId,$SavedConditionArray)) { $TempValueArray=$SavedConditionArray[$DemographyConfigId]; $textcondition=$TempValueArray->textcondition; $TempValue=$TempValueArray->value; $checktext="checked"; if($textcondition=='Equals') { $textconditiona="selected"; } if($textcondition=='Greater_Than') { $textconditionb="selected"; } if($textcondition=='Lesser_Than') { $textconditionc="selected"; } if($textcondition=='IS_Between') { $textconditiond="selected"; $TempValue2=$TempValueArray->value2; $noneorblock="block"; } } @endphp @elseif($DisplayType==4 || $DisplayType==14) @php $Style="none"; $checktext=""; $GetCondition=""; $DisplayFromDate=""; $DisplayToDate=""; $DisplayMaxDay=""; if(array_key_exists($DemographyConfigId,$SavedConditionArray)) { $TempValueArray=$SavedConditionArray[$DemographyConfigId]; $Column=$TempValueArray->range; $GetCondition=$TempValueArray->range; $DisplayFromDate=$TempValueArray->from; $DisplayToDate=$TempValueArray->to; $checktext="checked"; $DisplayMaxDay=30; if(property_exists($TempValueArray,'MaxDay')) { $DisplayMaxDay=$TempValueArray->MaxDay; } } 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=='yesterday') { $C25="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 @elseif($DisplayType==8) @php $checktext=""; if(array_key_exists($DemographyConfigId,$SavedConditionArray)) { $checktext="checked"; } @endphp @endif @endforeach @if($AdHocReportType==2) @foreach($OtherModuleName as $eachModuleId=>$eachModuleName)
@endforeach @endif @php $Indicator="If you select the Role , when selected role user logged in only they can see their own records"; @endphp

Role & User Based Report

@php $SelectRoleBased=''; if($DisplayRoleREsult==1) { $SelectRoleBased='checked'; } @endphp

Sort order Configuration