@if($tab === $tabName)
@forelse($this->activities as $activity)
@php
$userName = $activity->causeable->name ?? $activity->recordable?->createdByUser?->name ?? null;
$activityType = $activity->recordable_type ? strtolower(class_basename($activity->recordable_type)) : null;
@endphp
@empty
{{ ucfirst(__('laravel-crm::lang.no_activities')) }}
@endforelse
{{ $this->activities->links() }}
@endif
@endforeach