{{-- Safe action buttons for task-queue directives (expects $ctaLinks iterable of ['label' => string, 'href' => string]). --}} @php $ctaList = collect($ctaLinks ?? []) ->filter(fn ($item) => is_array($item) && is_string($item['href'] ?? null) && is_string($item['label'] ?? null) && $item['href'] !== '' && $item['label'] !== '') ->values(); $appBase = rtrim((string) (config('app.url') ?: 'http://localhost'), '/'); $appHost = parse_url($appBase, PHP_URL_HOST); @endphp @if($ctaList->isNotEmpty())