@php use Filament\Notifications\Livewire\Notifications; use Filament\Support\Enums\Alignment; use Filament\Support\Enums\VerticalAlignment; use Illuminate\Support\Arr; $color = $getColor() ?? 'gray'; $isInline = $isInline(); $status = $getStatus(); $title = $getTitle(); $hasTitle = filled($title); $date = $getDate(); $hasDate = filled($date); $body = $getBody(); $hasBody = filled($body); @endphp [ 'fi-inline', ], false => [ 'max-w-sm rounded-xl bg-white shadow-lg ring-1 dark:bg-gray-900', match ($color) { 'gray' => 'ring-gray-950/5 dark:ring-white/10', default => 'fi-color-custom ring-custom-600/20 dark:ring-custom-400/30', }, is_string($color) ? 'fi-color-' . $color : null, 'fi-status-' . $status => $status, ], }, ]) @style([ \Filament\Support\get_color_css_variables( $color, shades: [50, 400, 600], alias: 'notifications::notification', ) => ! ($isInline || $color === 'gray'), ]) >
null, default => 'bg-custom-50 dark:bg-custom-400/10', }, ]) > @if ($icon = $getIcon()) @endif
@if ($hasTitle) {{ str($title)->sanitizeHtml()->toHtmlString() }} @endif @if ($hasDate) $hasTitle])> {{ $date }} @endif @if ($hasBody) $hasTitle || $hasDate]) > {{ str($body)->sanitizeHtml()->toHtmlString() }} @endif @if ($actions = $getActions()) $hasTitle || $hasDate || $hasBody]) /> @endif