@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}}
@if(!empty($oldData->drips)) @foreach($oldData->drips as $odrip) @endforeach @else @endif
Campaign Drips Old Data
Message Duration
{{ $odrip->title }} {{ $odrip->duration.' '.$odrip->duration_type }}
No Records!
@if(!empty($newData->drips)) @foreach($newData->drips as $ndrip) @endforeach @else @endif
Campaign Drips New Data
Message Duration
{{ $ndrip->title }} {{ $ndrip->duration.' '.$ndrip->duration_type }}
No Records!
@if(!empty($oldData->tags)) @foreach($oldData->tags as $otag) @endforeach @else @endif
Campaign Tags Old Data
{{ $otag->title }}
No Records!
@if(!empty($newData->tags)) @foreach($newData->tags as $ntag) @endforeach @else @endif
Campaign Tags New Data
{{ $ntag->title }}
No Records!
@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