@props(['divClass' => '','value','id','checked'])
{!! Form::checkbox($name,$value ?? null,(isset($checked) && $checked == 1 ? true : old($name)),$attributes->getAttributes() +['id'=> $id ?? $name,'class'=>'form-check-input me-1' . ($errors->has(str_replace('[]','',$name)) ? ' is-invalid' : null)]) !!}
@error(str_replace('[]','',$name))
{{ $message }}
@enderror