@php $title = $title ?? null; $icon = $icon ?? null; $class = $class ?? ''; $padding = $padding ?? 'p-3'; @endphp
@if($title || $icon || isset($header))
@if($icon)@endif @if($title)
{{ $title }}
@endif @if(isset($header)){{ $header }}@endif
@endif
{{ $slot }}
@if(isset($footer)) @endif