@php $btns = collect($block->get('buttons') ?: []); @endphp
@if ($btns->isNotEmpty())
    <div class="flex flex-wrap justify-center gap-3 mt-10">
        @foreach ($btns as $i => $btn)
            @php $btnHref = safe_url(data_get($btn, 'url')); @endphp
            @continue (! $btnHref)
            <a href="{{ $btnHref }}"
               class="ec-btn ec-btn--outline inline-flex items-center rounded-full px-7 py-3 font-semibold transition">
                {{ $block->get("buttons.{$i}.label") ?: data_get($btn, 'label') }}
            </a>
        @endforeach
    </div>
@endif
