@if($activities && count($activities) > 0)
@foreach($activities as $activity) @php $successColor = ['created', 'imported']; $warningColor = ['updated','filter_campaing','message_update']; $infoColor = ['optedout','exported']; if(in_array($activity->action, $successColor)): $badgeColor = 'success'; elseif(in_array($activity->action, $warningColor)): $badgeColor = 'warning'; elseif($activity->action == 'deleted'): $badgeColor = 'danger'; elseif(in_array($activity->action, $infoColor)): $badgeColor = 'info'; else: $badgeColor = 'primary'; endif; @endphp
{{ formatDate($activity->created_at,"dt","iso") }}
{{ $activity->description }}
@if(isset($_SESSION['user_main_access']) && ($_SESSION['user_main_access'] == "d3a29a0e-91f1-4b06-87d5-11600532323e" || $_SESSION['user_main_access'] == "0f56f683-5464-4ef8-9701-11ead7982685")) @endif @if($activity->action && $activity->action == 'contact_action')
See Details @elseif($activity->action && $activity->action == 'message_update' && $activity->new_data)
See Details @else @if($activity->action && $activity->old_data && $activity->new_data)
See Details @endif @if($activity->action && $activity->action == 'filter_campaing' && $activity->new_data)
See Details @endif @endif
@endforeach @else
No activity found.
@endif