@props(['variant' => 'info', 'title' => null]) @php $styles = [ 'info' => ['box' => 'border-info/30 bg-info-soft', 'text' => 'text-info', 'icon' => 'info'], 'success' => ['box' => 'border-success/30 bg-success-soft', 'text' => 'text-success', 'icon' => 'check-circle'], 'warning' => ['box' => 'border-warning/30 bg-warning-soft', 'text' => 'text-warning', 'icon' => 'alert'], 'danger' => ['box' => 'border-danger/30 bg-danger-soft', 'text' => 'text-danger', 'icon' => 'x-circle'], ]; $style = $styles[$variant] ?? $styles['info']; @endphp
class(['flex gap-3 rounded-lg border px-4 py-3', $style['box']]) }} role="{{ in_array($variant, ['danger', 'warning']) ? 'alert' : 'status' }}">
@if ($title)

{{ $title }}

@endif
{{ $slot }}