<?php

use common\modules\rbac\components\MenuHelper;
use common\modules\rbac\models\Menu;
use yii\helpers\Html;

/* @var $this \yii\web\View */
/* @var $content string */
/* @var $context \yii\web\Controller */

backend\assets\ContextAsset::register($this);
\backend\assets\IframeAsset::register($this);


$cssString = "
 .footer {
        color: #ffffff;
        bottom: 0;
        left: 0;
        width: 100%;
    }

    .copyright {
        padding: 24px 0;
    }
    .copyright a {
        color: #ffffff;
    }

";
$this->registerCss($cssString);
?>
<?php $this->beginPage() ?>
    <!DOCTYPE html>
    <html lang="<?= Yii::$app->language ?>">
    <head>
        <meta charset="<?= Yii::$app->charset ?>"/>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <?= Html::csrfMetaTags() ?>
        <title><?= Yii::$app->config->get('name') ?>管理后台</title>
        <?php $this->head() ?>
    </head>
    <body class="hold-transition <?= Yii::$app->config->get('backend_skin', 'skin-green') ?> sidebar-mini fixed">
    <?php $this->beginBody() ?>
    <div class="wrapper">

        <?= $this->render('header.php') ?>

        <?= $this->render('content.php') ?>

        <footer>
            <div class="footer" style="opacity: 0.5;">
            </div>
            <div class="footer" style="background: transparent;">
                <div class="text-center copyright">© <?= Yii::$app->config->get('copyright') ?> <a href="https://beian.miit.gov.cn/"
                                                                        target="_blank"><?= Yii::$app->config->get('icp') ?></a></div>
            </div>
        </footer>


    </div>
    <?php $this->endBody() ?>
    <?php if (isset($this->blocks['js'])): ?>
        <?= $this->blocks['js'] ?>
    <?php endif; ?>
    </body>
    </html>
<?php $this->endPage() ?>