@props([ 'id' => null, 'label' => null, 'name' => null, 'wrapperClass' => null, ]) @php $id = $attributes->get('id', $name) ?? Str::random(8); @endphp
merge(['type' => 'checkbox', 'id' => $id, 'name' => $name, 'class' => 'form-check-input']) }} @checked(old($name)) /> {{ $label }}