<?php if (!$loaded): ?>
    <script>
        $.popup({
            handler: 'onUpdateDocs',
            extraData: {
                install: true,
            },
        });
    </script>
<?php else: ?>
    <?= Block::put('sidepanel') ?>
        <?php if ($showSidePanel): ?>
            <?= $this->makePartial('sidepanel') ?>
        <?php endif ?>
    <?= Block::endPut() ?>

    <?= Block::put('body') ?>
        <div id="docs-content">
            <?php if ($showRefresh): ?>
                <p>
                    <?= $content ?>
                </p>

                <a
                    href="javascript:;"
                    class="btn btn-primary oc-icon-refresh"
                    data-control="popup"
                    data-handler="onUpdateDocs"
                >
                    <?= e(trans('winter.docs::lang.buttons.updateDocs')) ?>
                </a>
            <?php else: ?>
                <?= $content ?>
            <?php endif ?>
        </div>
    <?= Block::endPut() ?>
<?php endif ?>
