@props(['actions' => null]) {{-- Hero CTA buttons under .pl-hero-content. Pass :actions="[['label' => '…', 'href' => '…', 'variant' => 'light|ghost|dark']]" Pass :actions="[]" to hide them. Omit to use the shared default pair. --}} @php $actions ??= [ ['label' => 'Contact us', 'href' => route('contact'), 'variant' => 'light'], ['label' => 'View services', 'href' => route('services.index'), 'variant' => 'ghost'], ]; $actions = array_filter( $actions, fn ($a) => ! empty($a['label']) && ! empty($a['href']) ); @endphp @if (! empty($actions))
@foreach ($actions as $action) @endforeach
@endif