@props([ 'name', 'maxWidth' => 'md', // sm, md, lg, xl, 2xl 'title' => null, 'subtitle' => null, 'icon' => null, 'gradient' => true, ]) @php $maxWidths = [ 'sm' => 'max-w-sm', 'md' => 'max-w-md', 'lg' => 'max-w-lg', 'xl' => 'max-w-xl', '2xl' => 'max-w-2xl', ]; $widthClass = $maxWidths[$maxWidth] ?? $maxWidths['md']; @endphp
{{-- Backdrop with blur --}}
{{-- Modal Container --}}
{{-- Glass top highlight --}}
{{-- Header --}} @if($title || $icon)
@if($gradient)
@endif
@if($icon)
{!! $icon !!}
@endif
@if($title)

{{ $title }}

@endif @if($subtitle)

{{ $subtitle }}

@endif
{{-- Close Button --}}
@else {{-- Close Button when no header --}} @endif {{-- Body --}}
{{ $slot }}
{{-- Footer --}} @if(isset($footer))
{{ $footer }}
@endif