@extends('layouts.header') @section('content') @php $siteurl=$_SERVER['HTTP_HOST']; $pass_array=array("ModuleId"=>$ModuleId,"RowId"=>$RowId); $results_obj = json_decode($results); $userdetails=Auth::user(); $LoggedUserId = Auth::user()->RefId; use App\Models\InboundEmail; //echo $LoggedUserId; // if($_SERVER['REMOTE_ADDR']=='157.46.89.43') // { echo "
";
    //print_r($results_obj);
    // print_r($ListBoxNamesIDs);
    //print_r($childList);
    // print_r($header);
    // print_r($GetDropdownLists);
    // print_r($panelList);
    //print_r($RelatedModulesList);
    //print_r($selfRelatedList);
    // print_r($RelateModules);
    // print_r($AssignedToList);
    //print_r($getDependentRelateToList);
    //print_r($getChildDependentRelateToList);
    //print_r($DepChildOpList);
    //print_r($EmailFieldsList);
    
echo "
"; // die(); // } @endphp @php $siteurl=$_SERVER['HTTP_HOST']; //$url=explode(".",$siteurl); // crm.bpm360.net //echo ""; @endphp
@csrf
@php $loopcount=1; $tabdiv=1; $closediv=0; $required=""; $panelname=""; $paneltype=""; $paneltype="accordian"; $paneltype="tab"; $opentab=0; $closetabcontent=0; $closetabdiv=0; $oldpanel=""; $closeaccordian=0; $closeaccordiandiv=1; $i=0; $OldAddressGroupId=''; $closeAddress=0; @endphp @foreach($header as $fieldList) @php $field_name=$fieldList['FieldName']; $DisplayName=$fieldList['DisplayName']; $DisplayType=$fieldList['DisplayType']; $DemographyConfigId=$fieldList['DemographyConfigId']; $Placeholder=$fieldList['Placeholder']; $Helptext=$fieldList['Helptext']; $DependentRelateToGroupId=$fieldList['DependentRelateToGroupId']; $DependentRelateToGroupId=$fieldList['DependentRelateToGroupId']; $DependentFieldPanelType=$fieldList['DependentFieldPanelType']; $ParentModuleId=$fieldList['ParentModuleId']; $Required=$fieldList['Required']; $Readonly=$fieldList['Readonly']; if($Readonly) { $Readonly="readonly"; } else { $Readonly=""; } //print_r($fieldList); $AddressGroupId=""; foreach($fieldList as $key=>$value) { //echo "key=".$key; //echo "
"; //echo "value=".$fieldList[$key]; //echo "
"; if($key=="GroupId") { $AddressGroupId=$fieldList[$key]; } } //echo $fieldList['GroupId']; //echo "GroupId=".$AddressGroupId; //echo "
"; try{ $LabelValue = $results_obj[0]->$field_name; if($field_name=="Description" && $ModuleId=="806867ab-96a5-11eb-948a-56b1773fd56f") { $LabelValue=InboundEmail::ExtractMailBody($LabelValue); } } catch(\Exception $e){ $LabelValue=""; } $DropDownNameId=$fieldList['DropDownNameId']; $ParentModuleId=$fieldList['ParentModuleId']; $requiredDisplay=''; if($Required==1) { $required="required"; $requiredDisplay='*'; } else { $required=""; } @endphp @if($loopcount == 1) @endif @php $getpaneltid=$fieldList['PanelId']; foreach($panelList as $panel) { if($panel->DisplayPanelId==$getpaneltid) { $paneltype=$panel->PanelType; if($paneltype==0) { $paneltype="accordian"; } else { $paneltype="tab"; } $panelname=$panel->PanelName; } } @endphp @if($oldpanel!=$fieldList['PanelId'] && $paneltype=="accordian") @if($closeaccordian==1)
@endif @if($closetabdiv=="1") @php $closetabdiv=0; @endphp @endif @php $closeaccordian=1; $oldpanel=$fieldList['PanelId']; @endphp
@php $closeaccordiandiv=0; @endphp @elseif($oldpanel!=$fieldList['PanelId'] && $paneltype=="tab") @php $closetabdiv=1; @endphp @if($closeaccordiandiv==0)
@php $closeaccordiandiv=1; @endphp @endif @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 $oldpanel=$fieldList['PanelId']; @endphp @if($closeAddress=="1" && $OldAddressGroupId!=$AddressGroupId)
@endif @if($AddressGroupId!='' && $OldAddressGroupId!=$AddressGroupId) @php $OldAddressGroupId=$AddressGroupId; $closeAddress="1"; $AddressFrameName=explode("_",$field_name); $AddressFrameName=$AddressFrameName[0]; @endphp
{{$AddressFrameName}}:
@endif @if($DisplayType == '10' || ($DisplayType == '26' && $DependentFieldPanelType==1) || $DisplayType == '27' || $DisplayType == '99')
@else
@endif
@if($DisplayType == '9' || $DisplayType == '16' || $DisplayType == '26' || $DisplayType == '99') @else @if($DisplayType!=8) @else @endif @endif @if($DisplayType == '2') @php if (empty($ListBoxNamesIDs) || $DropDownNameId=='') { @endphp {{$field_name}} @php } else { //$ListBoxNamesIDVal=$ListBoxNamesIDs[$field_name]; if(array_key_exists($DropDownNameId,$GetDropdownLists)) { $listBoxVal=$GetDropdownLists[$DropDownNameId]; @endphp @php } else { @endphp @php } @endphp @if($Required==1)
Please fill the {{$field_name}}
@endif @php } @endphp @elseif($DisplayType == '3') @php $valuesList=array(); $valuesList=explode(",",$LabelValue); //print_r($valuesList); $selected=""; @endphp @php if(empty($ListBoxNamesIDs) || $DropDownNameId=='') { @endphp @php } else { //$ListBoxNamesIDVal=$ListBoxNamesIDs[$field_name]; if(array_key_exists($DropDownNameId,$GetDropdownLists)) { $listBoxVal=$GetDropdownLists[$DropDownNameId]; @endphp @php } else { @endphp @php } @endphp @if($Required==1)
Please fill the {{$field_name}}
@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 {{$field_name}}
@endif @php } @endphp
@if($DependentFieldPanelType==1)
@endif @elseif($DisplayType == '4') @php // echo $LabelValue; if($LabelValue=="0000-00-00 00:00:00" || $LabelValue=="0000-00-00" || $LabelValue=="") { $dateValue=""; } else { $dateValue=date('Y-m-d',strtotime($LabelValue)); } @endphp @elseif($DisplayType == '14')
@php $dateValues=date('Y-m-d h:i',strtotime($LabelValue)); @endphp
@elseif($DisplayType == '5') @if(empty($ListBoxNamesIDs))
@else @php //$ListBoxNamesIDVal=$ListBoxNamesIDs[$]; $listBoxVal=$GetDropdownLists[$DropDownNameId]; @endphp
    @foreach($listBoxVal as $listBoxKey=>$listBoxValue) @php $checked=""; if($LabelValue==$listBoxKey) { $checked="checked"; } @endphp
  • @endforeach
@endif @elseif($DisplayType == '6') @if(empty($ListBoxNamesIDs) || $DropDownNameId=='')
@else @php $ListBoxNamesIDVal=$DropDownNameId; $listBoxVal=$GetDropdownLists[$ListBoxNamesIDVal]; $LabelValue=explode(",",$LabelValue); @endphp @if(!array_key_exists($ListBoxNamesIDVal,$childList)) @foreach($listBoxVal as $listBoxKey=>$listBoxValue) @php if(in_array($listBoxKey,$LabelValue)) { $checked="checked"; } else { $checked=""; } @endphp
@endforeach @endif @if($Required==1)
Please fill the {{$field_name}}
@endif @endif @elseif($DisplayType == '7') @elseif($DisplayType == '8') @php if (empty($RelateModules)) { echo ""; } else { $dispRelatedValue=""; if(array_key_exists($LabelValue,$RelateModules)) { $dispRelatedValue=$RelateModules[$LabelValue]; } @endphp
  • @php if($Required==1) { @endphp
    Please fill the {{$field_name}}
    @php } @endphp

@php try { if($_SERVER['HTTP_HOST']=="tbo.bpm360.net") { @endphp @php } }catch(\Exception $e){} @endphp @php } @endphp @elseif($DisplayType == '9')
@php echo $requiredDisplay; @endphp
@elseif($DisplayType == '16')
@php echo $requiredDisplay; @endphp
@elseif($DisplayType == '10') @php // added on 26th April '21 //$LabelValue=strip_tags($LabelValue); @endphp
@elseif($DisplayType=='15') @elseif($DisplayType=='31') @elseif($DisplayType=='32') @elseif($DisplayType=='33') @elseif($DisplayType=='23') @php if (empty($RelateModules)) { @endphp @php } else { if(array_key_exists($ParentModuleId,$getDependentRelateToList)) { @endphp @php } else { @endphp @if(array_key_exists($field_name,$DepChildOpList)) @else @endif @php } } @endphp @elseif($DisplayType=='25') @if(empty($selfRelatedList)) @else @endif @elseif($DisplayType == '12')
    @php $Emailcount=array(); $emailAddresses=''; $primaryEmailAddress=''; $OptedOutEmailAddress=''; $InvalidEmailAddress=''; $PrimaryEmailValue=''; $primaryEmailChecked=''; $OptedOutEmailValue=''; $OptedOutEmailChecked=''; $InvalidEmailValue=''; $InvalidEmailChecked=''; @endphp @if(array_key_exists('EMailAddressArray',$EmailFieldsList[$field_name])) @foreach($EmailFieldsList[$field_name]['EMailAddressArray'] as $EmailField) @php $emailCount=rand(100000000,999999999); $Emailcount[]=$emailCount; @endphp
  • @php if(array_key_exists('primaryEmailArray',$EmailFieldsList[$field_name])) { if(in_array( $EmailField ,$EmailFieldsList[$field_name]['primaryEmailArray'])) { $PrimaryEmailValue=$EmailField; $primaryChecked="checked"; } else { $primaryChecked=''; } } if(array_key_exists('OptedOutArray',$EmailFieldsList[$field_name])) { if(in_array( $EmailField ,$EmailFieldsList[$field_name]['OptedOutArray'])) { $OptedOutEmailValue=$EmailField; $OptedOutEmailChecked="checked"; } else { $OptedOutEmailChecked=""; } } if(array_key_exists('InvalidMailArray',$EmailFieldsList[$field_name])) { if(in_array( $EmailField ,$EmailFieldsList[$field_name]['InvalidMailArray'])) { $InvalidEmailValue=$EmailField; $InvalidEmailChecked="checked"; } else { $InvalidEmailChecked=''; } } @endphp
  • @endforeach @php $emailAddresses=$EmailFieldsList[$field_name]['EmailAddress']; $primaryEmailAddress=$EmailFieldsList[$field_name]['primaryEmail']; $OptedOutEmailAddress=$EmailFieldsList[$field_name]['OptedOut']; $InvalidEmailAddress=$EmailFieldsList[$field_name]['InvalidMail']; @endphp @endif @php $EmailcountVal=implode(",",$Emailcount); @endphp
@elseif($DisplayType == '27') @php //print_r($SecondaryModulesList); @endphp
@foreach($SecondaryModulesList as $SecondaryModule) @if($SecondaryModule['ModuleId']!==$ModuleId)
{{$SecondaryModule['ModuleName']}}
@php $RelatedRowIds=json_decode($SecondaryModule['RowIds']); foreach($RelatedRowIds as $relatedRowId) { @endphp @php } @endphp
@endif @endforeach
@elseif($DisplayType == '28') @php if (empty($ListBoxNamesIDs) || $DropDownNameId=='') { @endphp @php } else { //$ListBoxNamesIDVal=$ListBoxNamesIDs[$field_name]; if(array_key_exists($DropDownNameId,$GetDropdownLists)) { $listBoxVal=$GetDropdownLists[$DropDownNameId]; @endphp @foreach($listBoxVal as $listBoxKey=> $listBoxValue) "; @endforeach @php } else { @endphp @php } @endphp @if($Required==1)
Please fill the {{$field_name}}
@endif @php } @endphp @elseif($DisplayType == '99')
@else @if($Required==1)
Please fill the {{$field_name}}
@endif @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($closeaccordiandiv==0)
@endif @if($paneltype=="tab")
@endif