@php /** * Renderiza el funnel post-lanzamiento de 6 etapas para un misil launched. * * Variables esperadas: * $m — MissileDraft (con launchedProject cargado) * $steps — opcional, $m->funnelProgress() si no se pasa */ $steps = $steps ?? $m->funnelProgress(); $tp = $m->launchedProject; $tenantUrl = $tp && $tp->domain ? "https://{$tp->domain}" : null; // CTA dinámica: primer paso pendiente (no done) que tenga meta accionable $nextActionStep = null; foreach ($steps as $s) { if (!$s['done'] && !empty($s['meta']) && str_starts_with($s['meta'], '/')) { $nextActionStep = $s; break; } } @endphp