{{-- Alert Component - LucentUI Theme Migrated from AdminLTE to Tailwind Usage: Default alert Operation completed Warning message Callout style --}} @props([ 'variant' => 'default', 'title' => null, 'icon' => null, 'dismissible' => false, 'collapsible' => false, 'collapsed' => false, 'callout' => false, // Use callout style instead of alert ]) @php $variantConfig = [ 'default' => [ 'alertClass' => 'bg-background-secondary border border-neutral text-base/80', 'calloutClass' => 'border-l-4 border-l-neutral bg-background-secondary/50 text-base/80', 'icon' => $icon ?? 'ri-information-line', 'iconColor' => 'text-base/60', ], 'info' => [ 'alertClass' => 'bg-info/10 border border-info/30 text-info', 'calloutClass' => 'border-l-4 border-l-info bg-info/5 text-info', 'icon' => $icon ?? 'ri-information-line', 'iconColor' => 'text-info', ], 'success' => [ 'alertClass' => 'bg-success/10 border border-success/30 text-success', 'calloutClass' => 'border-l-4 border-l-success bg-success/5 text-success', 'icon' => $icon ?? 'ri-checkbox-circle-line', 'iconColor' => 'text-success', ], 'warning' => [ 'alertClass' => 'bg-warning/10 border border-warning/30 text-warning', 'calloutClass' => 'border-l-4 border-l-warning bg-warning/5 text-warning', 'icon' => $icon ?? 'ri-error-warning-line', 'iconColor' => 'text-warning', ], 'danger' => [ 'alertClass' => 'bg-error/10 border border-error/30 text-error', 'calloutClass' => 'border-l-4 border-l-error bg-error/5 text-error', 'icon' => $icon ?? 'ri-error-warning-fill', 'iconColor' => 'text-error', ], 'primary' => [ 'alertClass' => 'bg-primary/10 border border-primary/30 text-primary', 'calloutClass' => 'border-l-4 border-l-primary bg-primary/5 text-primary', 'icon' => $icon ?? 'ri-information-line', 'iconColor' => 'text-primary', ], ]; $config = $variantConfig[$variant] ?? $variantConfig['default']; $componentClass = $callout ? $config['calloutClass'] : $config['alertClass']; @endphp