{{-- Section Header Component - shadcn-style Usage: Action --}} @props([ 'title', 'subtitle' => null, 'icon' => null, 'iconColor' => 'text-primary', 'actions' => null, 'helpText' => null, 'size' => 'lg', ]) @php $titleSizes = [ 'sm' => 'text-base font-semibold', 'md' => 'text-lg font-semibold', 'lg' => 'text-xl font-semibold tracking-tight', 'xl' => 'text-2xl font-bold tracking-tight', ]; $titleClass = $titleSizes[$size] ?? $titleSizes['lg']; @endphp
class(['flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between']) }}>
@if($icon)
@endif

{{ $title }}

@if($helpText)
{{-- Help Modal --}}
@endif
@if($subtitle)

{{ $subtitle }}

@endif
@if($actions)
{{ $actions }}
@endif