@props([ 'type' => 'info', 'dismissible' => false, 'icon' => null, ]) @php $iconClass = $icon ?? match($type) { 'success' => 'bi-check-circle', 'danger' => 'bi-x-circle', 'warning' => 'bi-exclamation-triangle', default => 'bi-info-circle', }; @endphp
merge(['class' => 'bv-alert bv-alert--' . $type, 'role' => 'alert']) }}>
{{ $slot }}
@if($dismissible) @endif