@php $events = collect($memory->raw_events ?? []); $progress = $memory->sequenceProgress(); $status = $memory->engagementStatus(); $statusBadge = ['new' => 'neutral', 'active' => 'info', 'replied' => 'success', 'opted_out' => 'paused']; $labels = [ 'email_sent' => 'Email sent', 'reply' => 'Reply received', 'opt_out' => 'Opted out', 'sequence_assigned' => 'Sequence assigned', ]; @endphp
← All engagements

{{ $memory->entity_name ?: $memory->entity_id }}

{{ $memory->entity_id }} @if (! empty($latestProspect['title'])) · {{ $latestProspect['title'] }} @endif @if (! empty($latestProspect['company'])) · {{ $latestProspect['company'] }} @endif @if (! empty($latestProspect['country'])) · {{ $latestProspect['country'] }} @endif

@if ($memory->summary)

Summary

{{ $memory->summary }}

@endif {{-- Full chronological correspondence + cadence timeline --}}

Timeline

@if ($events->isEmpty()) @else
    @foreach ($events as $i => $event) @php $type = $event['type'] ?? 'event'; $body = $event['snippet'] ?? $event['note'] ?? ''; @endphp
  1. @if (! $loop->last)
    @endif
    {{ $labels[$type] ?? $type }} @if (! empty($event['intent'])) intent: {{ $event['intent'] }} @endif {{ \Illuminate\Support\Carbon::parse($event['at'] ?? now())->format('Y-m-d H:i') }}
    @if ($body)
    {{ \Illuminate\Support\Str::limit($body, 300) }}
    @endif
  2. @endforeach
@endif
{{-- Runs that touched this contact, each linking to its full cycle --}}

Runs

@if ($runs->isEmpty())

No runs recorded for this contact.

@else @foreach ($runs as $run) @endforeach
Run #{{ $run->id }} {{ $run->trigger }} {{ $run->started_at?->diffForHumans() }}
@endif