@if($userActivity->action == 'webhook_update')
Old Webhook |
{{$oldData->old_webhook}} |
New Webhook |
{{$newData->new_webhook}} |
@if(isset($oldData->old_event))
Old Event |
{{$oldData->old_event}} |
New Event |
{{$newData->new_event}} |
@endif
Old Status |
{{$oldData->old_status}} |
New Status |
{{$newData->new_status}} |
@elseif($userActivity->action == 'contact_action')
Old numbers |
{{!empty($oldData) ? implode(', ', $oldData) : ''}} |
New numbers |
{{!empty($newData) ? implode(', ', $newData) : ''}} |
@elseif($userActivity->action == 'message_update')
Old message |
{{$oldData->old_msg}} |
New message |
{{$newData->new_msg}} |
Old time |
{{$oldData->old_time}} |
New time |
{{$newData->new_time}} |
@else
@if($oldData)
Campaign Old Data |
Name |
{{$oldData->title}} |
Campaign New Data |
Name |
{{$newData->title}} |
Campaign Drips Old Data |
Message |
Duration |
@if(!empty($oldData->drips))
@foreach($oldData->drips as $odrip)
{{ $odrip->title }} |
{{ $odrip->duration.' '.$odrip->duration_type }} |
@endforeach
@else
No Records! |
@endif
Campaign Drips New Data |
Message |
Duration |
@if(!empty($newData->drips))
@foreach($newData->drips as $ndrip)
{{ $ndrip->title }} |
{{ $ndrip->duration.' '.$ndrip->duration_type }} |
@endforeach
@else
No Records! |
@endif
Campaign Tags Old Data |
@if(!empty($oldData->tags))
@foreach($oldData->tags as $otag)
{{ $otag->title }} |
@endforeach
@else
No Records! |
@endif
Campaign Tags New Data |
@if(!empty($newData->tags))
@foreach($newData->tags as $ntag)
{{ $ntag->title }} |
@endforeach
@else
No Records! |
@endif
@else
@php
$tages = getTags();
$campaings = getCampaigns();
$tag = null;
if(isset($newData->t)):
foreach($tages as $tag):
if(in_array($tag->id, $newData->t)):
$tag = replaceUshaTagText($tag->title) . ", ";
endif;
endforeach;
endif;
$campaigns = null;
if(isset($newData->c)):
foreach($campaings as $camp):
if($camp->id == $newData->c):
$campaigns = ($camp->title);break;
endif;
endforeach;
endif;
$extTags = null;
if(isset($newData->ext)):
foreach($tages as $tag):
if(in_array($tag->id, $newData->ext)):
$extTags = $tag->title . ", ";
endif;
endforeach;
endif;
$pipelineData = null;
if(isset($newData->p)):
foreach($pipelines as $pipeline):
if($pipeline->id == $newData->p):
$pipelineData = ($pipeline->title);break;
endif;
endforeach;
endif;
@endphp
@endif
@endif