<nav id="sidebar" class="sidebar js-sidebar">
    <div class="sidebar-content js-simplebar">
        <a class="sidebar-brand">
            <span class="align-middle">Admin Section</span>
        </a>

        <ul class="sidebar-nav">
            <li class="sidebar-header">
                Menu
            </li>

            <li class="sidebar-item active">
                <a class="sidebar-link" href="<?php echo route('dashboard'); ?> ">
                    <i class="align-middle" data-feather="sliders"></i> <span class="align-middle">Dashboard</span>
                </a>
            </li>

            <li class="sidebar-item">
                <a class="sidebar-link" href="<?php echo route('complaints'); ?> ">
                    <i class="align-middle" data-feather="user"></i> <span class="align-middle">Complaints</span>
                </a>
            </li>

            <?php if(in_array('view-system-users', Session::get('current_user.privillages.keys'))): ?>
            <li class="sidebar-item">
                <a class="sidebar-link" href="<?php echo route('system-users'); ?> ">
                    <i class="align-middle" data-feather="user"></i> <span class="align-middle">System Users</span>
                </a>
            </li>
            <?php endif; ?>


            <?php if(in_array('view-designations', Session::get('current_user.privillages.keys'))): ?>
            <li class="sidebar-item">
                <a class="sidebar-link" href="<?php echo route('designations'); ?> ">
                    <i class="align-middle" data-feather="shield"></i> <span class="align-middle">Designations</span>
                </a>
            </li>
            <?php endif; ?>
           
            <?php if(in_array('view-action-logs', Session::get('current_user.privillages.keys'))): ?>
            <li class="sidebar-item">
                <a class="sidebar-link" href="<?php echo route('action-logs'); ?> ">
                    <i class="align-middle" data-feather="shield"></i> <span class="align-middle">Action Logs</span>
                </a>
            </li>
            <?php endif; ?>
            
        </ul>
    </div>
</nav>