@php [$tempKey, $tempEmoji, $tempLabel, $tempClass] = $m->lead_temp; $last = $m->latestAttempt; $domain = $m->launchedProject->domain ?? null; $isFollowup = $stageKey === \App\Models\MissileDraft::STAGE_FOLLOWUP; $isClosed = $stageKey === \App\Models\MissileDraft::STAGE_CLOSED; $won = $isClosed && $m->isClosedWon(); $due = ($isFollowup && $last) ? $last->next_followup_at : null; $isOverdue = $due && $due->copy()->startOfDay()->isPast() && !$due->isToday(); @endphp