setting up front 1

This commit is contained in:
elvira
2026-07-31 17:41:55 +03:00
parent b88fde739c
commit bf8b9219fc
48 changed files with 2250 additions and 11 deletions
@@ -0,0 +1,26 @@
@props([
'label' => null,
'required' => false,
'disabled' => false,
'checked' => false,
'value' => '1',
])
<div class="flex items-center gap-3 ">
<input
type="checkbox"
value="{{ $value }}"
@checked($checked)
@disabled($disabled)
@required($required)
{{ $attributes->merge(['class' => 'checkbox appearance-none w-[16px] h-[16px] shrink-0 relative border border-black bg-transparent cursor-pointer']) }}
>
@if ($label || $slot->isNotEmpty())
@php $labelContent = $label ?: $slot; @endphp
<label
@if($attributes->get('id')) for="{{ $attributes->get('id') }}" @endif
class="flex items-center justify-center cursor-pointer {{ $disabled ? 'opacity-50' : '' }}"
>{{ $labelContent }}</label>
@endif
</div>