@php use Filament\Support\Enums\Alignment; use Filament\Support\Enums\VerticalAlignment; $color = $getColor() ?? 'gray'; $isInline = $isInline(); @endphp [], 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 => 'ring-custom-600/20 dark:ring-custom-400/30', }, ], }, ]) @style([ \Filament\Support\get_color_css_variables($color, shades: [400, 600]) => ! ($isInline || $color === 'gray'), ]) >
[], false => [ 'rounded-xl', match ($color) { 'gray' => null, default => 'bg-custom-50 dark:bg-custom-400/10', }, ], }, ]) @style([ \Filament\Support\get_color_css_variables($color, shades: [50, 400]) => ! ($isInline || $color === 'gray'), ]) > @if ($icon = $getIcon()) @endif
@if (filled($title = $getTitle())) {{ str($title)->sanitizeHtml()->toHtmlString() }} @endif @if (filled($date = $getDate())) {{ $date }} @endif @if (filled($body = $getBody())) {{ str($body)->sanitizeHtml()->toHtmlString() }} @endif @if ($actions = $getActions()) @endif