@foreach ($data->activity()->latest()->get() as $k => $item)
@if ($item->type == 'add')
@elseif ($item->type == 'message')
@if ((isset($item->message_template_id) && !empty($item->message_template_id)))
@else
@endif
@elseif ($item->type == 'email')
@if ((isset($item->email_template_id) && !empty($item->email_template_id)))
@else
@endif
@elseif ($item->type == 'phone')
@elseif ($item->type == 'meeting')
@elseif ($item->type == 'note')
@endif
{{ $item->title }}
@if ($item->type !== 'add')
@endif
{{ $item->created_at->format('M d, Y h:i a') }}
{{ Str::limit($item->description, 100, '...') }}
@endforeach