We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 55ecff9 + fa113fc commit 80dbe61Copy full SHA for 80dbe61
src/resources/views/crud/fields/checkbox.blade.php
@@ -16,8 +16,11 @@
16
{{ $attribute }}="{{ $value }}"
17
@endforeach
18
@endif
19
+ @if (!isset($field['attributes']['id']))
20
+ id="{{ $field['name'] }}_checkbox"
21
+ @endif
22
>
- <label class="form-check-label font-weight-normal" for="{{ $field['name'] }}_checkbox">{!! $field['label'] !!}</label>
23
+ <label class="form-check-label font-weight-normal" for="{{ $field['attributes']['id'] ?? $field['name'] . '_checkbox' }}">{!! $field['label'] !!}</label>
24
25
{{-- HINT --}}
26
@if (isset($field['hint']))
0 commit comments