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

<?php if ($showField) : ?>
    <?php if (isset($options['form_horizontal']) && $options['form_horizontal'] == true) : ?><div class="col-sm-9"><?php endif; ?>
    <?= $options['children']['first']->render([], true, true, false) ?>
    <?= $options['children']['second']->render([], true, true, false) ?>

    <?php include helpBlockPath(); ?>
    <?php if (isset($options['form_horizontal']) && $options['form_horizontal'] == true) : ?></div><?php endif; ?>
<?php endif; ?>

<?php if ($showError && isset($errors)) : ?>
    <?= $options['children']['first']->render([], false, false, true) ?>
    <?= $options['children']['second']->render([], false, false, true) ?>
<?php endif; ?>

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