<?php
use yii\widgets\Breadcrumbs;
use dmstr\widgets\Alert;

?>
<style type="text/css">
    
div.required label:after {
    content: " *";
    color: red;
}

.nav.c-nav{margin-bottom: 20px;}
</style>
<div class="content-wrapper">
        <section class="content-header">
        <?php if (isset($this->blocks['content-header'])) { ?>
            <h1><?= $this->blocks['content-header'] ?></h1>
        <?php } else { ?>
            <h1>
                <?php
                if ($this->title !== null) {
                    echo \yii\helpers\Html::encode($this->title);
                } else {
                    echo \yii\helpers\Inflector::camel2words(
                        \yii\helpers\Inflector::id2camel($this->context->module->id)
                    );
                    echo ($this->context->module->id !== \Yii::$app->id) ? '<small>Module</small>' : '';
                } ?>
            </h1>
        <?php } ?>

        <?=
        Breadcrumbs::widget(
            [
                'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
            ]
        ) ?>
    </section>

    <div class="panel panel-default" style="background-color:#fff;margin:10px;">
      <div class="panel-body">
    <section class="content">
        <?= Alert::widget() ?>
        <?= $content ?>
    </section>
      </div>
    </div>
    
</div>

<footer class="main-footer">
    <div class="pull-right hidden-xs">
        <b>Version</b> <?php echo Yii::$app->params['version'];?>
    </div>
    <strong>Copyright &copy; <?= date('Y') ?> <a href="http://yunduocms.com" target="_blank">yunduocms.com</a></strong> All rights
    reserved.
</footer>