@props([ 'title', 'subtitle' => null, 'href' => null, 'actionLabel' => 'View all', 'icon' => null, ]) {{-- Shared section heading: a 14px title, an optional 11px muted subtitle, and an optional action. Pass `href` for a small "View all" link and an `` for a right-aligned control; with both, the link sits before the control, otherwise next to the title. `` puts a small control (such as a + button) right after the title. --}}
merge(['class' => 'mb-3 min-w-0']) }}>

{{ $title }}

@isset($titleAction) {{ $titleAction }} @endisset
@if (filled($href) && ! isset($actions)) @include('components.section-heading-link') @endif
@isset($actions)
@if (filled($href)) @include('components.section-heading-link') @endif {{ $actions }}
@endisset
@if (filled($subtitle))

{{ $subtitle }}

@endif