{{-- checkbox field --}} @php $field['value'] = old_empty_or_null($field['name'], '') ?? $field['value'] ?? $field['default'] ?? ''; $field['attributes']['class'] = $field['attributes']['class'] ?? 'form-check-input'; @endphp @include('crud::fields.inc.wrapper_start') @include('crud::fields.inc.translatable_icon')
$value) {{ $attribute }}="{{ $value }}" @endforeach @endif > {{-- HINT --}} @if (isset($field['hint']))

{!! $field['hint'] !!}

@endif
@include('crud::fields.inc.wrapper_end') {{-- ########################################## --}} {{-- Extra CSS and JS for this particular field --}} {{-- If a field type is shown multiple times on a form, the CSS and JS will only be loaded once --}} {{-- FIELD JS - will be loaded in the after_scripts section --}} @push('crud_fields_scripts') @bassetBlock('backpack/crud/fields/checkbox-field.js') @endBassetBlock @endpush {{-- End of Extra CSS and JS --}} {{-- ########################################## --}}