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

    <?php if ($showField && ! isset($options['single'])) : ?>
        <?= Form::checkbox($name, $options['value'], $options['checked'], $options['attr']) ?>

        <?php if ($showLabel && $options['label'] !== false && $options['label_show']) : ?>
            <?= Form::customLabel($name, $options['label'], $options['label_attr']) ?>
        <?php endif; ?>

        @include('laravel-form-builder::help_block')
    <?php endif; ?>

    @if ($showLabel && $options['label'] !== false && $options['label_show'])
        <?= Form::customLabel($name, $options['label'], $options['label_attr']) ?>
    @endif
    @if ($showField && isset($options['single']))
    <div class="checkbox-container col-sm-9 checkbox">
        <label>
            <?= Form::checkbox($name, $options['value'], $options['checked'], $options['attr']) ?>
            @if (! empty($options['help_block']['text']))
            <span style="color: #737373; cursor: pointer; display: inline-block; font-weight: normal; margin-bottom: 0; position: relative; left: 5px; top: 2px;">
                <?= $options['help_block']['text'] ?>
            </span>
            @endif
        </label>
    </div>
@endif

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

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