@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)Today's Activities
| Calls |
Tasks |
Meetings |
Leads |
| {{$ResultCountArray['Calls']}} |
{{$ResultCountArray['Tasks']}} |
{{$ResultCountArray['Meetings']}} |
{{$ResultCountArray['Leads']}} |
@foreach($CallsFieldDetails as $EachCallField)
| {{$EachCallField['LabelValue']}} |
@endforeach
Action |
@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)
| {{$DisplayValue}} |
@elseif($ReferenceField==1)
@php
$pass_array=array("ModuleId"=>$ModuleId,"RowId"=>$InLineRowId);
@endphp
{{$DisplayValue}} |
@elseif($DisplayType==20)
@if($DisplayValue)
{{$DisplayValue}}
@endif
|
@else
{{$DisplayValue}} |
@endif
@endforeach
|
@php
$bb++;
@endphp
@endforeach
@foreach($TasksFieldDetails as $EachTaskField)
| {{$EachTaskField['LabelValue']}} |
@endforeach
Action |
@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)
| {{$DisplayValue}} |
@elseif($ReferenceField==1)
@php
$pass_array=array("ModuleId"=>$ModuleId,"RowId"=>$InLineRowId);
@endphp
{{$DisplayValue}} |
@elseif($DisplayType==20)
@if($DisplayValue)
{{$DisplayValue}}
@endif
|
@else
{{$DisplayValue}} |
@endif
@endforeach
|
@php
$aa++;
@endphp
@endforeach
@foreach($MeetingFieldDetails as $EachMeetingField)
| {{$EachMeetingField['LabelValue']}} |
@endforeach
Action |
@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)
| {{$DisplayValue}} |
@elseif($ReferenceField==1)
@php
$pass_array=array("ModuleId"=>$ModuleId,"RowId"=>$InLineRowId);
@endphp
{{$DisplayValue}} |
@elseif($DisplayType==20)
@if($DisplayValue)
{{$DisplayValue}}
@endif
|
@else
{{$DisplayValue}} |
@endif
@endforeach
|
@php
$cc++;
@endphp
@endforeach
@foreach($LeadFieldDetails as $EachLeadsField)
| {{$EachLeadsField['LabelValue']}} |
@endforeach
Action |
@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
| {{$DisplayValue}} |
@elseif($DisplayType==20)
{{$DisplayValue}}
|
@else
{{$DisplayValue}} |
@endif
@endforeach
|
@endforeach