@extends('layouts.header') @section('content') @php $results_obj = json_decode($results); $pass_array=array("ModuleId"=>$ModuleId,"RowId"=>$RowId); // added on 28th April '21 $userdetails = Auth::user(); $LoggedUser = $userdetails->name; $DateFormat = $userdetails->DateFormat; $TimeZone = $userdetails->TimeZone; $TimeFormat = $userdetails->TimeFormat; $ModuleName = $module_name; $AssignedToList1=json_encode($AssignedToList); $RelatedModuleListArray=json_encode($RelatedModuleListArray); $EmailTemplatesList=json_encode($EmailTemplatesList); $ContactModules=json_encode($ContactModules); $loggedInUser=Auth::user()->RefId; $todayDate=date('Y-m-d'); $DefaultValue=date('Y-m-d h:i a'); echo "
";
    //print_r($RelatedModulesList);
     //print_r($header);
    //print_r($DepChildOpList);
    //print_r($RelateModules);
    //print_r($RelatedModules);
    //print_r($results_obj);
    //print_r($displayPanels);
echo "
"; $DateTime=date('Y-m-d h:i a'); $DateTime= date('Y-m-d h:i a', strtotime('+30 minutes',strtotime($DateTime))); $DateTime= date('Y-m-d h:i a', strtotime('+5 hour',strtotime($DateTime))); $myIp=$_SERVER['REMOTE_ADDR']; if($myIp=="157.51.151.16") { //print_r($tempFiles); } // added {{$modules[AssociationType]}} on 29th Jul '21 // added on 20th Oct '21 $RoleAccess_c="1264d300-9915-11eb-948a-56b1773fd56f"; // None 8eca7f5f-9914-11eb-948a-56b1773fd56f $RoleAccess_l="1264d300-9915-11eb-948a-56b1773fd56f"; // All $RoleAccess_e="1264d300-9915-11eb-948a-56b1773fd56f"; // All $RoleAccess_d="1264d300-9915-11eb-948a-56b1773fd56f"; // All if(!empty($ModulesAccess)) { foreach($ModulesAccess['Actions'] as $ActionName) { if($ActionName['ActionName']=="Create") $RoleAccess_c=$ActionName['RoleAccess']; if($ActionName['ActionName']=="List") $RoleAccess_l=$ActionName['RoleAccess']; if($ActionName['ActionName']=="Edit") $RoleAccess_e=$ActionName['RoleAccess']; if($ActionName['ActionName']=="Delete") $RoleAccess_d=$ActionName['RoleAccess']; } } @endphp
@csrf @php $loopcount=1; $closediv=0; $i=0; $h=0; $OldPanelId=''; $closePreviousTab="0"; $firsttab="show active"; $countHeader=count($header); @endphp @foreach($header as $fieldList) @php $h++; $field_name=$fieldList['FieldName']; $DisplayName=$fieldList['DisplayName']; $DisplayType=$fieldList['DisplayType']; $DemographyConfigId=$fieldList['DemographyConfigId']; $InLineEdit=$fieldList['InLineEdit']; $DependentFieldPanelType=$fieldList['DependentFieldPanelType']; $DependentFieldPanelId=$fieldList['DependentFieldPanelId']; $PanelId=$fieldList['PanelId']; if(!array_key_exists(0,$results_obj)) { $LabelValue=''; } else { $LabelValue = $results_obj[0]->$field_name; } $DropDownNameId=$fieldList['DropDownNameId']; $ParentModuleId=$fieldList['ParentModuleId']; @endphp @if($closePreviousTab=="1" && $PanelId!=$OldPanelId)
@endif @if($PanelId!=$OldPanelId) @php if($firsttab) { $className="displayblock"; } else { $className="displaynone"; } @endphp
@php $OldPanelId=$PanelId; $closePreviousTab=1; $firsttab=""; @endphp @endif @php if($DisplayType==2 || $DisplayType==26) { if(empty($ListBoxNamesIDs) || $DropDownNameId=='') { $LabelValue=""; //$LabelValue=$GetDropdownLists[$LabelValue]; } else { $ListBoxNamesIDVal=$DropDownNameId; if(array_key_exists($ListBoxNamesIDVal,$GetDropdownLists)) { $listBoxVal=$GetDropdownLists[$ListBoxNamesIDVal]; if(array_key_exists($LabelValue,$listBoxVal)) $LabelValue=$listBoxVal[$LabelValue]; } } } if($DisplayType==3) { if(empty($ListBoxNamesIDs) || $DropDownNameId=='') { $LabelValue=""; //$LabelValue=$GetDropdownLists[$LabelValue]; } else { $ListBoxNamesIDVal=$DropDownNameId; if(array_key_exists($ListBoxNamesIDVal,$GetDropdownLists)) { $listBoxVal=$GetDropdownLists[$ListBoxNamesIDVal]; $listArray=explode(",",$LabelValue); $LabelValue=""; foreach($listArray as $listVal) { if(array_key_exists($listVal,$listBoxVal)) $LabelValue.="
  • ".$listBoxVal[$listVal]."
  • "; } } } } if($DisplayType==5) { if(empty($ListBoxNamesIDs) || $DropDownNameId=='') { $LabelValue=""; //$LabelValue=$GetDropdownLists[$LabelValue]; } else { $ListBoxNamesIDVal=$DropDownNameId; if(array_key_exists($ListBoxNamesIDVal,$GetDropdownLists)) { $listBoxVal=$GetDropdownLists[$ListBoxNamesIDVal]; if(array_key_exists($LabelValue,$listBoxVal)) $LabelValue=$listBoxVal[$LabelValue]; } } } if($DisplayType==4 && $DateFormat!="" && $LabelValue!="") { // added on 28th April '21 //echo $LabelValue; if($LabelValue=="0000-00-00" || $LabelValue=="0000-00-00 00:00:00") $LabelValue=""; else $LabelValue = date("$DateFormat", strtotime($LabelValue)); } if($DisplayType==14 && $DateFormat!="" && $TimeFormat!="" && $LabelValue!="") { // updated on 16th Sept '21 if($LabelValue=="0000-00-00 00:00:00") { $LabelValue=""; } else { // added on 29th April '21 $datetime = new DateTime($LabelValue); $datetime->format("$DateFormat $TimeFormat"); $la_time = new DateTimeZone($TimeZone); //$datetime->setTimezone($la_time); $LabelValue = $datetime->format("$DateFormat $TimeFormat"); } } if($DisplayType==8) { // RelateTo $passArray=array("ModuleId"=>$LabelValue,"RowId"=>$field_name); $row_id=$LabelValue; if($LabelValue!="") { if(array_key_exists($LabelValue,$RelateModules)) { $LabelValue=$RelateModules[$LabelValue]; } else { $LabelValue=$LabelValue; } } } if($DisplayType==23) { if(array_key_exists($LabelValue,$getChildDependentRelateToList)) { $LabelValue=$getChildDependentRelateToList[$LabelValue]; } $LabelValue=$LabelValue; } if($DisplayType==25) { // Self RelateTo @endphp @foreach($selfRelatedList as $selfRelated) @php if($LabelValue==$selfRelated['key']) { $LabelValue=$selfRelated['value']; } @endphp @endforeach @php } if($DisplayType==15 && $LabelValue!="") { // AssignedTo if(array_key_exists($LabelValue,$AssignedToList)) $LabelValue=$AssignedToList[$LabelValue]['name']; } if($DisplayType==7 || $DisplayType==10) { // TextArea OR TextEditor, added on 6th May '21 $LabelValue=strip_tags($LabelValue); } @endphp @if($loopcount == 1) @endif @if($DisplayType!=99)
    {{$DisplayName}}
    @else
    @endif @if($DisplayType == 8) @if($InLineEdit==1) @php $pass_me=json_encode($passArray); @endphp

    @else {{$LabelValue}} @endif @elseif($DisplayType==9) @if(array_key_exists($LabelValue,$tempFiles)) {{$tempFiles[$LabelValue][0]['name']}} @endif @elseif($DisplayType==16) @if(array_key_exists($LabelValue,$tempFiles)) {{$tempFiles[$LabelValue][0]['name']}} @endif @elseif($DisplayType==3) @php echo $LabelValue; @endphp @elseif($DisplayType==20) @php $click_to_call=base64_encode($LabelValue); @endphp {{$LabelValue}} @elseif($DisplayType==21) @php $click_to_call=base64_encode($LabelValue); @endphp XXXX-XXX-XXX @elseif($DisplayType==22) |*_*| @elseif($DisplayType==12) @php if(!empty($EmailValues)) { if(array_key_exists($LabelValue,$EmailValues)) { foreach($EmailValues[$LabelValue] as $emailValue) { @endphp
  • {{$emailValue}}
  • @php } } } @endphp @else @if($InLineEdit==1) @if($DisplayType!=99)
    {{$LabelValue}}
    @endif @else {{$LabelValue}} @endif @endif
    @if(($DisplayType=="26") && !empty($results_obj[0]->$field_name) && $DependentFieldPanelType==1) @php //echo "Dependent Dropdown"; //echo $results_obj[0]->$field_name; @endphp
    @endif @if(($DisplayType=="99") && !empty($results_obj[0]->$field_name)) @php //echo "Dependent Dropdown"; //echo $results_obj[0]->$field_name; @endphp
    @endif @if($loopcount == 3) @php $loopcount=1; $closediv = 0; @endphp @else @php $loopcount = $loopcount+1; $closediv = 1; @endphp @endif @php $loopcount++; $i++; @endphp @endforeach @if($closediv == 1) @endif

    @if($RoleAccess_e!="8eca7f5f-9914-11eb-948a-56b1773fd56f") Edit @endif @if($RoleAccess_d!="8eca7f5f-9914-11eb-948a-56b1773fd56f") Delete @endif View Change Log @if($ModuleId == '32f08263-96a5-11eb-948a-56b1773fd56f') Convert Lead @endif @if($ModuleId == '69772a9d-aa88-4ca1-a701-b7f0c887a770') Download iCalendar @endif Reminder

    @if($RoleAccess_e!="8eca7f5f-9914-11eb-948a-56b1773fd56f") @endif @if($RoleAccess_e!="8eca7f5f-9914-11eb-948a-56b1773fd56f") @endif
    @if($RelatedModules['Status']=="Success") @php $subpanel_loop=0; @endphp
    @foreach($RelatedModules['data'] as $subpanels=>$modules) @if($modules['AssociationType']==2 || $modules['AssociationType']==3) @php $SecondaryModuleId=$modules['SecondaryModuleId']; $AssociationType=$modules['AssociationType']; $ModuleIcon=$modules['ModuleIcon']; $TableCount=$modules['TableCount']; $SubPanel_Count=0; // $modules['AssociationType']; if($ModuleIcon=="") $ModuleIcon=''; @endphp
    @php $subpanel_loop++; @endphp @endif @endforeach
    @endif