@props(['messages'])

@if ($messages)
    <ul {{ $attributes->merge(['class' => 'list-unstyled mt-1 mb-0']) }}>
        @foreach ((array) $messages as $message)
            <li class="text-danger small fw-semibold">
                <i class="bi bi-exclamation-circle-fill me-1"></i>
                {{ $message }}
            </li>
        @endforeach
    </ul>
@endif
