{{-- Info Notice / Alert Banner Component - TailAdmin style Collapsible notice banners for important information Usage: Your notice content here... --}} @props([ 'title' => null, 'variant' => 'info', // info, warning, danger, success 'collapsible' => false, 'storageKey' => null, 'icon' => null, 'showCondition' => null, // Alpine.js expression for conditional display ]) @php $variants = [ 'info' => [ 'bg' => 'bg-blue-light-50 dark:bg-blue-light-500/10', 'border' => 'border-blue-light-200 dark:border-blue-light-800', 'icon' => $icon ?? 'ri-information-line', 'iconColor' => 'text-blue-light-500', ], 'warning' => [ 'bg' => 'bg-warning-50 dark:bg-warning-500/10', 'border' => 'border-warning-200 dark:border-warning-800', 'icon' => $icon ?? 'ri-alert-line', 'iconColor' => 'text-warning-500', ], 'danger' => [ 'bg' => 'bg-error-50 dark:bg-error-500/10', 'border' => 'border-error-200 dark:border-error-800', 'icon' => $icon ?? 'ri-error-warning-line', 'iconColor' => 'text-error-500', ], 'success' => [ 'bg' => 'bg-success-50 dark:bg-success-500/10', 'border' => 'border-success-200 dark:border-success-800', 'icon' => $icon ?? 'ri-checkbox-circle-line', 'iconColor' => 'text-success-500', ], ]; $config = $variants[$variant] ?? $variants['info']; @endphp
Your notice content here...