echo Html::encode($this->title); ?> </title> <?php $this->head(); ?> </head> <body> <?php $this->beginBody(); ?> <div class="wrap"> <?php NavBar::begin(['brandLabel' => \Yii::t('app', 'My Goals'), 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]); echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => Yii::$app->user->isGuest ? [] : [['label' => \Yii::t('dashboard', 'Dashboard'), 'url' => ['/dashboard/index']], ['label' => \Yii::t('task', 'Tasks'), 'url' => Task::urlToAll()], ['label' => \Yii::t('status', 'Statuses'), 'url' => ['/settings/status/index']], ['label' => \Yii::t('type', 'Types'), 'url' => ['/settings/type/index']], ['label' => \Yii::t('priority', 'Priorities'), 'url' => ['/settings/priority/index']], ['label' => \Yii::t('app', 'Logout ({0})', [Yii::$app->user->identity->username]), 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']]]]); NavBar::end(); ?> <div class="container"> <?php echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]); ?> <?php echo $content; ?> </div> </div> <footer class="footer"> <div class="container">
?> <? endforeach; ?> </div> <? endif; ?> </div> <div class="row"> <div class="col-lg-8 col-md-7 col-sm-6 col-xs-12"> <h2> <?php echo \Yii::t('dashboard', 'Nearest Tasks'); ?> <?php echo Html::a($tasksCount, Task::urlToAll(), ['class' => 'label label-primary']); ?> </h2> <? foreach ($tasks as $task): ?> <?php echo $this->render('/task/list-item', ['task' => $task, 'showGoalTitle' => true]); ?> <? endforeach; ?> </div> <div class="col-lg-4 col-md-5 col-sm-6 col-xs-12"> <h2><?php echo \Yii::t('dashboard', 'Nearest Goals'); ?> <?php echo Html::a($goalsCount, Url::to('/goal/index'), ['class' => 'label label-primary']);