<nav class="navbar navbar-expand-lg bg-white fixed-top">

    <?= view_cell('LogoCell') ?>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse " id="navbarSupportedContent">
        <ul class="navbar-nav ml-auto navbar-right-top">



            <li class="nav-item dropdown nav-user">
                <a class="nav-link nav-user-img" href="#" id="navbarDropdownMenuLink2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                    <img src="<?= base_url() ?>assets/backend/images/profile.png" alt="" class="user-avatar-md rounded-circle"></a>
                <div class="dropdown-menu dropdown-menu-right nav-user-dropdown" aria-labelledby="navbarDropdownMenuLink2">
                    <div class="nav-user-info">
                        <h5 class="mb-0 text-white nav-user-name">
                            <?= join(' ', [get_user()->first_name, get_user()->last_name]) ?> </h5>
                        <span class="status"></span><span class="ml-2"><?= get_user()->role ?></span>
                    </div>
                    <a class="dropdown-item" href="<?= url_to('profile') ?>"><i class="fas fa-user mr-2"></i>My Profile</a>
                    <a class="dropdown-item" href="<?= url_to('logout') ?>"><i class="fas fa-power-off mr-2"></i>Logout</a>
                </div>
            </li>
        </ul>
    </div>
</nav>