2023-07-13 11:16:24 +00:00
|
|
|
<div class="form-control min-w-fit">
|
2023-07-28 07:10:35 +00:00
|
|
|
<label class="flex gap-4 px-0 cursor-pointer label">
|
2023-07-13 11:16:24 +00:00
|
|
|
<span class="flex gap-2 label-text min-w-fit">
|
|
|
|
@if ($label)
|
|
|
|
{{ $label }}
|
|
|
|
@else
|
|
|
|
{{ $id }}
|
|
|
|
@endif
|
|
|
|
@if ($helper)
|
|
|
|
<div class="group w-fit">
|
|
|
|
<div class="cursor-pointer text-warning">
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
|
2023-08-08 09:51:36 +00:00
|
|
|
class="w-4 h-4 stroke-current">
|
2023-07-13 11:16:24 +00:00
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
2023-08-08 09:51:36 +00:00
|
|
|
d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
|
2023-07-13 11:16:24 +00:00
|
|
|
</svg>
|
|
|
|
</div>
|
|
|
|
<div class="absolute hidden text-xs group-hover:block border-coolgray-400 bg-coolgray-500">
|
|
|
|
<div class="p-4 card-body">
|
|
|
|
{!! $helper !!}
|
|
|
|
</div>
|
2023-05-18 11:49:49 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-07-13 11:16:24 +00:00
|
|
|
@endif
|
|
|
|
</span>
|
|
|
|
<input @disabled($disabled) type="checkbox" {{ $attributes->merge(['class' => $defaultClass]) }}
|
2023-08-08 09:51:36 +00:00
|
|
|
@if ($instantSave) wire:click='{{ $instantSave === 'instantSave' || $instantSave == '1' ? 'instantSave' : $instantSave }}'
|
|
|
|
wire:model.defer={{ $id }} @else wire:model.defer={{ $value ?? $id }} @endif />
|
2023-07-13 11:16:24 +00:00
|
|
|
</label>
|
2023-06-14 11:07:58 +00:00
|
|
|
</div>
|