<div class="menu-list">
    <nav class="navbar navbar-expand-lg navbar-light">
        <a class="d-xl-none d-lg-none" href="#">Dashboard</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarNav">
            <ul class="navbar-nav flex-column">
                <li class="nav-divider">
                    Menu
                </li>
                <li class="nav-item">
                    <a class="nav-link <?php if (current_route() == 'admin_home'): ?> active <?php endif; ?>" href="<?= url_to('admin_home') ?>"><i class="fa fa-fw fa-home"></i>Dashboard </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link <?php if (current_route() == 'visitors'): ?> active <?php endif; ?>" href="<?= url_to('visitors') ?>"><i class="fa fa-fw fa-users"></i>Visitors </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link <?php if (current_route() == 'users' || current_route() == 'edit_profile' || current_route() == 'create_user' || current_route() == 'user_profile'): ?> active <?php endif; ?>" href="<?= url_to('users') ?>"><i class="fa fa-fw fa-user"></i>Users </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link <?php if (current_route() == 'monitoring'): ?> active <?php endif; ?>" href="<?= url_to('monitoring') ?>"><i class="fa fa-fw fa-eye"></i>Monitoring </a>
                </li>

                <li class="nav-divider">
                    Settings
                </li>
                <li class="nav-item">
                    <a class="nav-link <?php if (current_route() == 'settings' || current_route() == 'edit_settings'): ?> active <?php endif; ?>" href="<?= url_to('settings') ?>"><i class="fa fa-fw fa-cog"></i>Settings </a>
                </li>

                <li class="nav-item">
                    <a class="nav-link" href="<?= url_to('logout') ?>"><i class="fas fa-power-off"></i>Logout </a>
                </li>

            </ul>
        </div>
    </nav>
</div>