2019-02-03 14:45:45 +01:00
|
|
|
{{--
|
|
|
|
$name
|
|
|
|
$label
|
|
|
|
$errors?
|
|
|
|
$model?
|
|
|
|
--}}
|
|
|
|
@include('components.custom-checkbox', [
|
|
|
|
'name' => $name,
|
|
|
|
'label' => $label,
|
|
|
|
'value' => 'true',
|
|
|
|
'checked' => old($name) || (!old() && isset($model) && $model->$name)
|
|
|
|
])
|
2016-02-28 11:49:41 +01:00
|
|
|
|
|
|
|
@if($errors->has($name))
|
|
|
|
<div class="text-neg text-small">{{ $errors->first($name) }}</div>
|
|
|
|
@endif
|