2019-02-03 14:45:45 +01:00
|
|
|
{{--
|
|
|
|
$name
|
|
|
|
$label
|
|
|
|
$errors?
|
|
|
|
$model?
|
|
|
|
--}}
|
2021-08-22 14:15:58 +02:00
|
|
|
@include('form.custom-checkbox', [
|
2019-02-03 14:45:45 +01:00
|
|
|
'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
|