<?php
    
    use yii\bootstrap\Nav;
    use yii\web\View;
    
    /**
     * @var View $this
     */

?>

<div class="panel panel-default sidebar-menu">
  
  <div class="panel-heading">
    <h3 class="panel-title"><?php echo \Yii::t('app', 'User section'); ?></h3>
  </div>
  
  <div class="panel-body">
      
      <?= Nav::widget(
          [
              'items'        => [
                  [
                      'label' => '<i class="fa fa-list"></i> Мои заказы',
                      'url'   => [ 'account/index' ],
                  ],
                  [
                      'label' => '<i class="fa fa-heart"></i> Мои пожелания',
                      'url'   => [ 'account/wishlist' ],
                  ],
                  [
                      'label' => '<i class="fa fa-user"></i> Мой аккаунт',
                      'url'   => [ 'account/account' ],
                  ],
                  [
                      'label' => '<i class="fa fa-sign-out"></i> Выйти',
                      'url'   => [ 'site/logout' ],
                  ],
              ],
              'options'      => [
                  'class' => 'nav-pills nav-stacked',
              ],
              'encodeLabels' => false,
          ]
      ); ?>
  
  </div>

</div>
