class([
'pointer-events-none relative w-full transition',
'my-auto p-4' => ! ($slideOver || ($width === 'screen')),
])
}}
>
$slideOver,
'h-screen' => $slideOver || ($width === 'screen'),
'mx-auto rounded-xl' => ! ($slideOver || ($width === 'screen')),
'hidden' => ! $visible,
match ($width) {
'xs' => 'max-w-xs',
'sm' => 'max-w-sm',
'md' => 'max-w-md',
'lg' => 'max-w-lg',
'xl' => 'max-w-xl',
'2xl' => 'max-w-2xl',
'3xl' => 'max-w-3xl',
'4xl' => 'max-w-4xl',
'5xl' => 'max-w-5xl',
'6xl' => 'max-w-6xl',
'7xl' => 'max-w-7xl',
'screen' => 'fixed inset-0',
default => $width,
},
])
>
@if ($heading || $header)
$stickyHeader,
'rounded-t-xl' => $stickyHeader && ! ($slideOver || ($width === 'screen')),
match ($alignment) {
Alignment::Start, Alignment::Left => 'gap-x-5',
Alignment::Center => 'flex-col',
default => null,
},
])
>
@if ($closeButton)
! $slideOver,
'end-6 top-6' => $slideOver,
])
>
@endif
@if ($header)
{{ $header }}
@else
@if ($icon)
$alignment === Alignment::Center,
])
>
'fi-color-gray bg-gray-100 dark:bg-gray-500/20',
default => 'fi-color-custom bg-custom-100 dark:bg-custom-500/20',
},
match ($alignment) {
Alignment::Start, Alignment::Left => 'p-2',
Alignment::Center => 'p-3',
default => null,
},
])
@style([
\Filament\Support\get_color_css_variables(
$iconColor,
shades: [100, 400, 500, 600],
) => $iconColor !== 'gray',
])
>
'text-gray-500 dark:text-gray-400',
default => 'text-custom-600 dark:text-custom-400',
},
])
/>
@endif
$alignment === Alignment::Center,
])
>
{{ $heading }}
@if (filled($description))
{{ $description }}
@endif
@endif
@endif
@if (! \Filament\Support\is_slot_empty($slot))
($width === 'screen') || $slideOver,
'pe-6 ps-[5.25rem]' => $icon && ($alignment === Alignment::Start),
'px-6' => ! ($icon && ($alignment === Alignment::Start)),
])
>
{{ $slot }}
@endif
@if ((! \Filament\Support\is_slot_empty($footer)) || (is_array($footerActions) && count($footerActions)) || (! is_array($footerActions) && (! \Filament\Support\is_slot_empty($footerActions))))
$icon && ($alignment === Alignment::Start) && ($footerActionsAlignment !== Alignment::Center) && (! $stickyFooter),
'px-6' => ! ($icon && ($alignment === Alignment::Start) && ($footerActionsAlignment !== Alignment::Center) && (! $stickyFooter)),
'fi-sticky sticky bottom-0 border-t border-gray-200 bg-white py-5 dark:border-white/10 dark:bg-gray-900' => $stickyFooter,
'rounded-b-xl' => $stickyFooter && ! ($slideOver || ($width === 'screen')),
'pb-6' => ! $stickyFooter,
'mt-6' => (! $stickyFooter) && \Filament\Support\is_slot_empty($slot),
'mt-auto' => $slideOver,
])
>
@if (! \Filament\Support\is_slot_empty($footer))
{{ $footer }}
@else
'flex flex-wrap items-center',
Alignment::Center => 'flex flex-col-reverse sm:grid sm:grid-cols-[repeat(auto-fit,minmax(0,1fr))]',
Alignment::End, Alignment::Right => 'flex flex-row-reverse flex-wrap items-center',
default => null,
},
])
>
@if (is_array($footerActions))
@foreach ($footerActions as $action)
{{ $action }}
@endforeach
@else
{{ $footerActions }}
@endif
@endif
@endif