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