mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
Livewire UI installed
This commit is contained in:
26
resources/views/vendor/wireui/components/errors.blade.php
vendored
Normal file
26
resources/views/vendor/wireui/components/errors.blade.php
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
@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 border-b-2 border-negative-200 dark:border-negative-700">
|
||||
<x-dynamic-component
|
||||
:component="WireUi::component('icon')"
|
||||
class="w-5 h-5 text-negative-400 dark:text-negative-600 shrink-0 mr-3"
|
||||
name="exclamation-circle"
|
||||
/>
|
||||
|
||||
<span class="text-sm font-semibold text-negative-800 dark:text-negative-600">
|
||||
{{ str_replace('{errors}', $count($errors), $title) }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="ml-5 pl-1 mt-2">
|
||||
<ul class="list-disc space-y-1 text-sm text-negative-700 dark:text-negative-600">
|
||||
@foreach ($getErrorMessages($errors) as $message)
|
||||
<li>{{ head($message) }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<div class="hidden"></div>
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user