@props([
'title' => null,
'subtitle' => null,
'icon' => null,
'iconClass' => 'size-5',
'helpIcon' => false,
'helpTitle' => null,
'helpContent' => null,
'border' => false,
])
@php
$containerClasses = 'flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4';
if ($border) {
$containerClasses .= ' pb-4 border-b border-neutral/10';
}
@endphp
merge(['class' => $containerClasses]) }}>
@if($icon)
@endif
@if($title)
{{ $title }}
@endif
{{-- Help modal trigger --}}
@if($helpIcon || $helpContent)
{{-- Modal Backdrop --}}
{{-- Modal --}}
@if($icon)
@endif
{{ $helpTitle ?? $title }}
@if($helpContent)
{!! $helpContent !!}
@endif
@if(isset($help))
{{ $help }}
@endif
@endif
@if($subtitle)
{{ $subtitle }}
@endif
{{-- Actions slot --}}
@if(isset($actions))
{{ $actions }}
@endif