Files
Ronald Huynen 2547717edb Initial commit
2026-03-23 21:37:59 +01:00

27 lines
1001 B
PHP

@if ($hasErrors($errors))
<div {{ $attributes->merge(['class' => 'rounded-lg bg-negative-50 dark:bg-secondary-800 dark:border dark:border-negative-600 p-4']) }}>
<div class="flex items-center pb-3">
<x-dynamic-component
:component="WireUi::component('icon')"
class="w-5 h-5 text-red-600 dark:text-red-600 shrink-0 mr-3"
name="exclamation-circle"
/>
<span class="text-sm font-semibold text-red-600 dark:text-red-600">
{{ count($errors) . ' ' . __('error(s) found, please correct the following:')}}
</span>
</div>
<div class="ml-5 pl-1 mt-2">
<ul class="list-disc space-y-1 text-sm text-red-600 dark:text-red-600">
@foreach ($getErrorMessages($errors) as $message)
<li>{{ head($message) }}</li>
@endforeach
</ul>
</div>
</div>
@else
<div class="hidden"></div>
@endif