@if ($showLabel && $showField)
    @if ($options['wrapper'] !== false)
    <div <?= $options['wrapperAttrs'] ?> >
    @endif
@endif

    @if ($showLabel && $options['label'] !== false && $options['label_show'])
        <?= Form::customLabel($name, $options['label'], $options['label_attr']) ?>
    @endif
    @if ($showField)
    @if (isset($options['form_horizontal']) && $options['form_horizontal'] == true)<div class="col-sm-9">@endif
        <div class="toggle-container">
            <?= Form::checkbox($name, $options['value'], $options['checked'], $options['attr']) ?>
        </div>

        @include('laravel-form-builder::help_block')
    @if (isset($options['form_horizontal']) && $options['form_horizontal'] == true)</div>@endif
@endif

    @include('laravel-form-builder::errors')

@if ($showLabel && $showField)
    @if ($options['wrapper'] !== false)
    </div>
    @endif
@endif
