Livewire UI installed

This commit is contained in:
Benjamin Takats
2022-11-30 00:04:07 +01:00
parent 3f5e714177
commit 8f0e818ec9
516 changed files with 3973 additions and 8 deletions

View 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