@props(['type' => 'success', 'title' => null]) @php [$styles, $icon] = match ($type) { 'error' => ['border-error/25 bg-error/5 text-error', 'alert'], 'warning' => ['border-warning/30 bg-warning/5 text-warning', 'alert'], 'info' => ['border-primary-200 bg-primary-50 text-primary', 'info'], default => ['border-success/25 bg-success/5 text-success', 'check-circle'], }; @endphp {{-- Status is carried by an icon and wording, never colour alone (SOW B.5). --}}
merge(['class' => 'flex items-start gap-3 rounded-xl border px-4 py-3.5 text-sm '.$styles]) }}>
@if ($title)

{{ $title }}

@endif
$type === 'info', 'mt-0.5' => $title])>{{ $slot }}