my-idlers/resources/views/components/form-check.blade.php

8 lines
280 B
PHP
Raw Permalink Normal View History

<div class="form-check mb-2">
<input class="form-check-input" name="{{$name}}" id="{{$id ?? 'formCheck'}}" type="checkbox"
value="1" @if(isset($checked) && $checked === '1') checked @endif>
<label class="form-check-label">
{{$text}}
</label>
</div>