@props(['messages' => []])
@if ($messages)
    <ul {{ $attributes->merge(['class' => 'mt-1.5 space-y-0.5']) }}>
        @foreach ((array) $messages as $message)
            <li class="text-xs text-red">{{ $message }}</li>
        @endforeach
    </ul>
@endif
