datatable.directory codebase
https://datatable.directory/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
727 B
23 lines
727 B
7 years ago
|
@php
|
||
|
/** @var \App\View\Widget $w */
|
||
|
@endphp
|
||
|
|
||
|
<div class="row form-group">
|
||
|
<div class="col-md-{{$w->fieldCols}} offset-md-{{$w->labelCols}}">
|
||
|
<div class="custom-control custom-checkbox{{ $errors->has($w->name) ? ' is-invalid' : '' }}">
|
||
|
<input type="checkbox" class="custom-control-input"
|
||
|
id="field-{{ $w->name }}"
|
||
|
{{+$w->value?'checked':''}}
|
||
|
name="{{ $w->name }}">
|
||
|
<label class="custom-control-label" for="field-{{ $w->name }}">{{ $w->label }}</label>
|
||
|
</div>
|
||
|
|
||
|
@if ($errors->has($w->name))
|
||
|
<span class="invalid-feedback" role="alert">
|
||
|
<strong>{{ $errors->first($w->name) }}</strong>
|
||
|
</span>
|
||
|
@endif
|
||
|
</div>
|
||
|
@include('form._help')
|
||
|
</div>
|