2023-07-13 11:16:24 +00:00
|
|
|
<div class="w-full">
|
2023-06-12 10:00:01 +00:00
|
|
|
@if ($label)
|
2025-03-26 16:24:46 +00:00
|
|
|
<label
|
|
|
|
|
class="flex gap-1 items-center mb-1 text-sm font-medium {{ $disabled ? 'text-neutral-600' : '' }}">{{ $label }}
|
2023-07-13 11:16:24 +00:00
|
|
|
@if ($required)
|
2023-08-22 15:44:49 +00:00
|
|
|
<x-highlighted text="*" />
|
2023-07-13 11:16:24 +00:00
|
|
|
@endif
|
|
|
|
|
@if ($helper)
|
2023-08-11 18:19:42 +00:00
|
|
|
<x-helper :helper="$helper" />
|
2023-07-13 11:16:24 +00:00
|
|
|
@endif
|
2023-06-12 10:00:01 +00:00
|
|
|
</label>
|
|
|
|
|
@endif
|
2025-03-26 16:24:46 +00:00
|
|
|
<select {{ $attributes->merge(['class' => $defaultClass]) }} @disabled($disabled) @required($required)
|
2025-10-09 10:52:59 +00:00
|
|
|
wire:dirty.class="dark:ring-warning ring-warning" wire:loading.attr="disabled" name={{ $id }}
|
2023-12-07 18:06:32 +00:00
|
|
|
@if ($attributes->whereStartsWith('wire:model')->first()) {{ $attributes->whereStartsWith('wire:model')->first() }} @else wire:model={{ $id }} @endif>
|
2023-05-04 08:45:09 +00:00
|
|
|
{{ $slot }}
|
|
|
|
|
</select>
|
2023-08-11 14:13:53 +00:00
|
|
|
@error($id)
|
2023-08-11 18:19:42 +00:00
|
|
|
<label class="label">
|
|
|
|
|
<span class="text-red-500 label-text-alt">{{ $message }}</span>
|
|
|
|
|
</label>
|
2023-08-11 14:13:53 +00:00
|
|
|
@enderror
|
2023-06-05 11:50:34 +00:00
|
|
|
</div>
|