@php $CallsResult=$Result['Calls']; $CallsResultArray=json_decode($CallsResult); $TasksResult=$Result['Tasks']; $TasksResultArray=json_decode($TasksResult); $MeetingsResult=$Result['Meetings']; $MeetingsResultArray=json_decode($MeetingsResult); $LeadsResult=$Result['Leads']; $LeadsResultArray=json_decode($LeadsResult); echo "
";
// print_r($CallsFields);
// print_r($TasksFieldDetails);
// print_r($MeetingFieldDetails);
 //print_r($LeadFieldDetails);
echo "
"; $TodayDate=date('d-m-Y'); $TaskColorArray=array(); $a=1; foreach($TasksResultArray as $eachTaskValue) { $TEmpDate=date('d-m-Y',strtotime($eachTaskValue->StartDate)); if(strtotime($TEmpDate)StartDate)); if(strtotime($TEmpDate)DateStart)); if(strtotime($TEmpDate)Upcomming Activities
Calls Tasks Meetings Leads
{{$ResultCountArray['Calls']}} {{$ResultCountArray['Tasks']}} {{$ResultCountArray['Meetings']}} {{$ResultCountArray['Leads']}}
Calls
...
@foreach($CallsFieldDetails as $EachCallField) @endforeach @php $bb=1; @endphp @foreach($CallsResultArray as $EachCallValue) @php $callstyle=$callColorArray[$bb]; @endphp @foreach($CallsFieldDetails as $EachCallField) @php $InLineRowId=end($EachCallValue); $ColumnName=$EachCallField['ColumnName']; $DisplayType=$EachCallField['DisplayType']; $DropDownNameId=$EachCallField['DropDownNameId']; $ParentModuleId=$EachCallField['ParentModuleId']; $ModuleId=$EachCallField['ModuleId']; $ReferenceField=$EachCallField['ReferenceField']; $DisplayValue=$EachCallValue->$ColumnName; $DisplayValueNew=$EachCallValue->$ColumnName; if(($DisplayType==5 || $DisplayType==2 || $DisplayType==3 || $DisplayType==6 ) && $DisplayValue!='') { if($GetDropdownLists[$DropDownNameId]) { $ChildDropDown=$GetDropdownLists[$DropDownNameId]; if(array_key_exists($DisplayValue,$ChildDropDown)) { $DisplayValue=$ChildDropDown[$DisplayValue]; } } } if($DisplayType==8) { if($DisplayValue) { if(array_key_exists($DisplayValue,$OtherModuleFieldValues)) { $DisplayValue=$OtherModuleFieldValues[$DisplayValue]; } } $pass_array=array("ModuleId"=>$ParentModuleId,"RowId"=>$DisplayValueNew); } @endphp @if($DisplayType==8) @elseif($ReferenceField==1) @php $pass_array=array("ModuleId"=>$ModuleId,"RowId"=>$InLineRowId); @endphp @elseif($DisplayType==20) @else @endif @endforeach @php $bb++; @endphp @endforeach
{{$EachCallField['LabelValue']}}Action
{{$DisplayValue}}{{$DisplayValue}} @if($DisplayValue) {{$DisplayValue}}
@endif
{{$DisplayValue}}
Tasks
...
@foreach($TasksFieldDetails as $EachTaskField) @endforeach @php $aa=1; @endphp @foreach($TasksResultArray as $EachTaskREsultValue) @php $taskstyle=$TaskColorArray[$aa]; @endphp @foreach($TasksFieldDetails as $EachTaskField) @php $InLineRowId=end($EachTaskREsultValue); $ColumnName=$EachTaskField['ColumnName']; $DisplayType=$EachTaskField['DisplayType']; $DropDownNameId=$EachTaskField['DropDownNameId']; $ParentModuleId=$EachTaskField['ParentModuleId']; $ModuleId=$EachTaskField['ModuleId']; $ReferenceField=$EachTaskField['ReferenceField']; $DisplayValue=$EachTaskREsultValue->$ColumnName; $DisplayValueNew=$EachTaskREsultValue->$ColumnName; if(($DisplayType==5 || $DisplayType==2 || $DisplayType==3 || $DisplayType==6 ) && $DisplayValue!='') { if($GetDropdownLists[$DropDownNameId]) { $ChildDropDown=$GetDropdownLists[$DropDownNameId]; if(array_key_exists($DisplayValue,$ChildDropDown)) { $DisplayValue=$ChildDropDown[$DisplayValue]; } } } if($DisplayType==8) { if($DisplayValue) { if(array_key_exists($DisplayValue,$OtherModuleFieldValues)) { $DisplayValue=$OtherModuleFieldValues[$DisplayValue]; } } $pass_array=array("ModuleId"=>$ParentModuleId,"RowId"=>$DisplayValueNew); } @endphp @if($DisplayType==8) @elseif($ReferenceField==1) @php $pass_array=array("ModuleId"=>$ModuleId,"RowId"=>$InLineRowId); @endphp @elseif($DisplayType==20) @else @endif @endforeach @php $aa++; @endphp @endforeach
{{$EachTaskField['LabelValue']}}Action
{{$DisplayValue}}{{$DisplayValue}} @if($DisplayValue) {{$DisplayValue}}
@endif
{{$DisplayValue}}
Meetings
...
@foreach($MeetingFieldDetails as $EachMeetingField) @endforeach @php $cc=1; @endphp @foreach($MeetingsResultArray as $MeetingsResultValue) @php $meetingstyle=$MeetingColorArray[$cc]; @endphp @foreach($MeetingFieldDetails as $EachMeetingField) @php $InLineRowId=end($MeetingsResultValue); $ColumnName=$EachMeetingField['ColumnName']; $DisplayType=$EachMeetingField['DisplayType']; $DropDownNameId=$EachMeetingField['DropDownNameId']; $ParentModuleId=$EachMeetingField['ParentModuleId']; $ModuleId=$EachMeetingField['ModuleId']; $ReferenceField=$EachMeetingField['ReferenceField']; $DisplayValue=$MeetingsResultValue->$ColumnName; $DisplayValueNew=$MeetingsResultValue->$ColumnName; $pass_array=array(); if(($DisplayType==5 || $DisplayType==2 || $DisplayType==3 || $DisplayType==6 ) && $DisplayValue!='') { if($GetDropdownLists[$DropDownNameId]) { $ChildDropDown=$GetDropdownLists[$DropDownNameId]; if(array_key_exists($DisplayValue,$ChildDropDown)) { $DisplayValue=$ChildDropDown[$DisplayValue]; } } } if($DisplayType==8) { if($DisplayValue) { if(array_key_exists($DisplayValue,$OtherModuleFieldValues)) { $DisplayValue=$OtherModuleFieldValues[$DisplayValue]; } } $pass_array=array("ModuleId"=>$ParentModuleId,"RowId"=>$DisplayValueNew); } @endphp @if($DisplayType==8) @elseif($ReferenceField==1) @php $pass_array=array("ModuleId"=>$ModuleId,"RowId"=>$InLineRowId); @endphp @elseif($DisplayType==20) @else @endif @endforeach @php $cc++; @endphp @endforeach
{{$EachMeetingField['LabelValue']}}Action
{{$DisplayValue}}{{$DisplayValue}} @if($DisplayValue) {{$DisplayValue}}
@endif
{{$DisplayValue}}
Leads
...
@foreach($LeadFieldDetails as $EachLeadsField) @endforeach @foreach($LeadsResultArray as $LeadsResultValue) @foreach($LeadFieldDetails as $EachLeadsField) @php $InLineRowId=end($LeadsResultValue); $ColumnName=$EachLeadsField['ColumnName']; $ReferenceField=$EachLeadsField['ReferenceField']; $DisplayType=$EachLeadsField['DisplayType']; $DropDownNameId=$EachLeadsField['DropDownNameId']; $ModuleId=$EachLeadsField['ModuleId']; $DisplayValue=$LeadsResultValue->$ColumnName; if(($DisplayType==5 || $DisplayType==2 || $DisplayType==3 || $DisplayType==6 ) && $DisplayValue!='') { if($GetDropdownLists[$DropDownNameId]) { $ChildDropDown=$GetDropdownLists[$DropDownNameId]; if(array_key_exists($DisplayValue,$ChildDropDown)) { $DisplayValue=$ChildDropDown[$DisplayValue]; } } } @endphp @if($ReferenceField==1) @php $pass_array=array("ModuleId"=>$ModuleId,"RowId"=>$InLineRowId); @endphp @elseif($DisplayType==20) @else @endif @endforeach @endforeach
{{$EachLeadsField['LabelValue']}}Action
{{$DisplayValue}} {{$DisplayValue}}
{{$DisplayValue}}