<?php
use yii\helpers\Html;
use yii\helpers\Url;

/* @var $this \yii\web\View */
/* @var $content string */
$logo = Html::img('@web/images/logo-my-connection.png', ['class' => 'logo-img-menu', 'alt' => 'InterActive MyConnection']);
$logoSquare = Html::img('@web/images/logo-my-connection-square.png', ['class' => 'logo-img-menu', 'alt' => 'InterActive MyConnection']);
?>

<header class="main-header">
    <?= Html::a('<span class="logo-mini">'.$logoSquare.'</span><span class="logo-lg">'.$logo.'</span>', Yii::$app->homeUrl, ['class' => 'logo']) ?>

    <nav class="navbar navbar-static-top" role="navigation">
        <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
            <span class="sr-only">Toggle navigation</span>
        </a>
        <div class="main-header-name pull-right">
        	<?= Yii::$app->user->identity->username ?> <i class="fa fa-angle-down"></i>
        </div>
        <div class="main-header-name-menu">
        	<a href="<?= Url::toRoute('site/update-account') ?>" class="main-header-name-menu-item"><i class="material-icons">account_circle</i> Account</a>
        	<a href="<?= Url::toRoute('site/logout') ?>" data-method="post" class="main-header-name-menu-item"><i class="fa fa-sign-out"></i> Sign Out</a>
        </div>
    </nav>
</header>