@php $options['attr']['label'] = $options['label']; $options['attr']['label_attr'] = Arr::get($options, 'label_attr'); $isShowLabel = $showLabel && $options['label'] && $options['label_show']; if (! $isShowLabel) { unset($options['attr']['label']); } $options['label'] = false; @endphp {!! Form::onOffCheckbox($name, $options['value'], $options['attr']) !!}