@php $typeBadge = ['call' => 'bg-purple-100 text-purple-700', 'meeting' => 'bg-blue-100 text-blue-700', 'email' => 'bg-teal-100 text-teal-700', 'note' => 'bg-gray-100 text-gray-600']; @endphp
@forelse($activities as $a)
{{ \Modules\CRM\Models\DealActivity::TYPES[$a->type] }}

{{ $a->note }}

{{ $a->user?->name }} · {{ $a->created_at->diffForHumans() }} @if($a->deal)· {{ $a->deal->title }}@endif @if($a->contact)· {{ $a->contact->display_name }}@endif @if($a->scheduled_at)· Follow-up {{ $a->scheduled_at->format('Y-m-d H:i') }}@endif @if($a->done_at)· Done@endif

@if($a->scheduled_at && !$a->done_at && auth()->user()?->hasPermission('crm.activities.manage'))
@csrf
@endif
@empty

No activities recorded.

@endforelse
{{ $activities->links() }}
@if(auth()->user()?->hasPermission('crm.activities.manage'))
@csrf
@endif @forelse($upcoming as $a)

{{ $a->scheduled_at->format('Y-m-d H:i') }}

{{ \Illuminate\Support\Str::limit($a->note, 80) }}

{{ \Modules\CRM\Models\DealActivity::TYPES[$a->type] }}@if($a->deal) · {{ $a->deal->title }}@endif

@empty

No upcoming follow-ups.

@endforelse