<?php 
echo Html::a('<span class="logo-mini">SM</span><span class="logo-lg">' . Yii::$app->name . '</span>', Yii::$app->homeUrl, ['class' => 'logo']);
?>

    <nav class="navbar navbar-static-top" role="navigation">

        <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">Toggle navigation</span>
        </a>

        <div class="navbar-custom-menu">

            <ul class="nav navbar-nav">
                <?php 
echo \app\models\Notification::notification();
?>

                <li class="dropdown user user-menu">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <img src="<?php 
echo yii::$app->user->identity->thumbnailTrue;
?>
" width="25" class="img-circle" alt="<?php 
echo Yii::$app->user->identity->username;
?>
" />
                        <span class="hidden-xs"><?php 
echo Yii::$app->user->identity->username;
?>
</span>