<?php

$dashboard = ['home'];
$reports = ['appointments'];
$admin = ['users','indicatorCategories'];
$reports = [];
$routeName = Route::current()->getName();

?>
<div class="sidebar-menu">
    <ul class="menu">
        <li class="sidebar-title">Menu</li>

        <li class="sidebar-item <?php echo e(in_array($routeName,$dashboard) ? 'active' : ''); ?> ">
            <a href="<?php echo e(route('home')); ?>" class='sidebar-link active'>
                <i class="bi bi-grid-fill"></i>
                <span>Dashboard</span>
            </a>
        </li>
        
        <li class="sidebar-item <?php echo e(in_array($routeName,[]) ? 'active' : ''); ?> ">
            <a href="<?php echo e(route('home')); ?>" class='sidebar-link active'>
                <i class="bi bi-grid-fill"></i>
                <span>Add Indicators</span>
            </a>
        </li>
        
        <li class="sidebar-item has-sub  <?php echo e(in_array($routeName,$reports) ? 'active' : ''); ?> ">
            <a href="#" class='sidebar-link'>
                <i class="bi bi-grid-1x2-fill"></i>
                <span>Reports</span>
            </a>
            <ul class="submenu <?php echo e(in_array($routeName,$reports) ? 'active' : ''); ?> ">
                <li class="submenu-item <?php echo e($routeName == 'users' ? 'active' : ''); ?> ">
                    <a href="">Report 1</a>
                </li>                
                <li class="submenu-item <?php echo e($routeName == 'users' ? 'active' : ''); ?> ">
                    <a href="">Report 2</a>
                </li>                
                <li class="submenu-item <?php echo e($routeName == 'users' ? 'active' : ''); ?> ">
                    <a href="">Report 3</a>
                </li>                
            </ul>
        </li>
        
        <li class="sidebar-item has-sub  <?php echo e(in_array($routeName,$admin) ? 'active' : ''); ?> ">
            <a href="#" class='sidebar-link'>
                <i class="bi bi-grid-1x2-fill"></i>
                <span>Admin</span>
            </a>
            <ul class="submenu <?php echo e(in_array($routeName,$admin) ? 'active' : ''); ?> ">
                <li class="submenu-item <?php echo e($routeName == 'users' ? 'active' : ''); ?> ">
                    <a href="<?php echo e(route('users')); ?>">Units</a>
                </li>
                <li class="submenu-item <?php echo e($routeName == 'indicatorCategories' ? 'active' : ''); ?> ">
                    <a href="<?php echo e(route('indicatorCategories')); ?>">Indicators Categories</a>
                </li>
                <li class="submenu-item <?php echo e($routeName == 'users' ? 'active' : ''); ?> ">
                    <a href="<?php echo e(route('users')); ?>">Indicators</a>
                </li>
                
                <li class="submenu-item <?php echo e($routeName == 'users' ? 'active' : ''); ?> ">
                    <a href="<?php echo e(route('users')); ?>">Companies</a>
                </li>                
                <li class="submenu-item <?php echo e($routeName == 'users' ? 'active' : ''); ?> ">
                    <a href="<?php echo e(route('users')); ?>">Users</a>
                </li>                
            </ul>
        </li>

    </ul>
</div>
<?php /**PATH C:\xampp74\htdocs\projects\lrvl_indicators\resources\views/layouts/leftMenu.blade.php ENDPATH**/ ?>