2023-07-13 11:16:24 +00:00
|
|
|
<div class="w-full">
|
2023-06-12 10:00:01 +00:00
|
|
|
@if ($label)
|
2023-07-13 11:16:24 +00:00
|
|
|
<label for="small-input"
|
|
|
|
class="flex items-center gap-1 mb-2 text-sm font-medium text-neutral-400">{{ $label }}
|
|
|
|
@if ($required)
|
|
|
|
<span class="text-warning">*</span>
|
|
|
|
@endif
|
|
|
|
@if ($helper)
|
|
|
|
<x-helper :helper="$helper" />
|
|
|
|
@endif
|
2023-06-12 10:00:01 +00:00
|
|
|
</label>
|
|
|
|
@endif
|
2023-07-26 11:23:47 +00:00
|
|
|
<select {{ $attributes->merge(['class' => $defaultClass]) }} @required($required) wire:dirty.class.remove='text-white'
|
2023-07-13 11:16:24 +00:00
|
|
|
wire:dirty.class="text-black bg-warning" wire:loading.attr="disabled" name={{ $id }}
|
2023-07-13 20:03:27 +00:00
|
|
|
@if ($attributes->whereStartsWith('wire:model')->first()) {{ $attributes->whereStartsWith('wire:model')->first() }} @else wire:model.defer={{ $id }} @endif>
|
2023-05-04 08:45:09 +00:00
|
|
|
{{ $slot }}
|
|
|
|
</select>
|
2023-06-05 11:50:34 +00:00
|
|
|
</div>
|