<nav class="navbar navbar-expand-lg main-navbar">

    <form class="form-inline mr-auto">

        <ul class="navbar-nav mr-3">
            <li><a href="#" data-toggle="sidebar" class="nav-link nav-link-lg"><i class="fas fa-bars"></i></a></li>
        </ul>

    </form>

    <ul class="navbar-nav navbar-right">

        <li class="dropdown"><a href="#" data-toggle="dropdown" class="nav-link dropdown-toggle nav-link-lg nav-link-user">
                <img alt="image" src="<?php echo asset('img/avatars/default.png') ?>" class="rounded-circle mr-1">
                <div class="d-sm-none d-lg-inline-block"><?php echo $_SESSION['user']['email'] ?></div>
            </a>
            <div class="dropdown-menu dropdown-menu-right">

                <a href="<?php echo url('profile') ?>" class="dropdown-item has-icon">
                    <i class="far fa-user"></i> Profile
                </a>

                <div class="dropdown-divider"></div>

                <form action="<?php echo url('actions/logout') ?>" method="POST">
                    <button type="submit" class="dropdown-item has-icon text-danger d-flex align-items-center">
                        <i class="fas fa-sign-out-alt"></i> Logout
                    </button>
                </form>

            </div>
        </li>

    </ul>
</nav>