ldc-portsalaries/resources/views/crud/formfields/boolean.blade.php
2021-06-07 18:51:27 +02:00

20 lines
724 B
PHP

<td>
<label for="{{ $fieldName }}" class="form-label">{{ $prop['label'] }}</label>
</td>
<td>
<label for="{{ $fieldName }}" class="row">
<div class="col">
<div class="form-check form-switch ms-2">
<input
id="{{ $fieldName }}"
name="{{ $fieldName }}"
type="checkbox"
class="ml-2 form-check-input"
value="1"
@if(old($fieldName) ?? ($model->{$fieldName} ? $model->{$fieldName} : false))checked @endif
@if($prop['disabled'])disabled @endif
@if($readonly)readonly @endif>
</div>
</div>
</label>
</td>