@props([ 'title' => null, 'subtitle' => null, ]) @php $hasHeader = filled($title) || filled($subtitle) || isset($icon); @endphp
merge(['class' => 'bg-white rounded-xl border border-gray-200 shadow-sm p-5 flex flex-col']) }}> @if ($hasHeader)
@if (filled($title))

{{ $title }}

@endif @if($subtitle)

{{ $subtitle }}

@endif
@isset($icon)
{{ $icon }}
@endisset
@endif
{{ $slot }}
@isset($actions)
{{ $actions }}
@endisset