e6f38d9481
* docs: remove requirement for setting APP_KEY manually * optimize date picker * clean up modals * spot light working * reorganization * add lazy load * wip * remove filament * styling
38 lines
1.2 KiB
PHP
38 lines
1.2 KiB
PHP
@props([
|
|
'id' => null,
|
|
'title' => null,
|
|
'description' => null,
|
|
'icon' => 'o-x-circle',
|
|
'only' => []
|
|
])
|
|
|
|
<div>
|
|
@if ($errors->any())
|
|
<div {{ $attributes->class(["flex justify-start alert alert-error rounded rounded-md"]) }} >
|
|
<div class="grid gap-3">
|
|
<div class="flex gap-2">
|
|
@if($title)
|
|
<x-icon :name="$icon" class="w-6 h-6 mt-0.5" />
|
|
@endif
|
|
<div>
|
|
@if($title)
|
|
<div class="font-bold text-lg">{{ $title }}</div>
|
|
@endif
|
|
|
|
@if($description)
|
|
<div class="font-semibold">{{ $description }}</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<ul class="list-disc ms-3 space-y-2 sm:ms-6 pb-3">
|
|
@foreach ($errors->all() as $error)
|
|
<li>{{ $error }}</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
</div>
|