13 lines
591 B
PHP
13 lines
591 B
PHP
|
<div class="form-check">
|
||
|
@if(!is_null($notCheckedValue))
|
||
|
<input type="hidden" name="{{ $name }}" value="{{ $notCheckedValue }}">
|
||
|
@endif
|
||
|
<input class="form-check-input @error($requestName) is-invalid @enderror" name="{{ $name }}" type="checkbox" value="{{ $checkboxValue }}" @checked($checkboxValue === $userValue) id="form-checkbox-{{ $requestName }}">
|
||
|
<label class="form-check-label" for="form-checkbox-{{ $requestName }}">
|
||
|
{{ $title }}
|
||
|
</label>
|
||
|
@error($name)
|
||
|
<span class="invalid-feedback d-block">{{ $message }}</span>
|
||
|
@enderror
|
||
|
</div>
|