<?php

$dashboard = ['home'];
$reports = ['appointments'];
$admin = ['users','indicatorCategories','companies','units','indicators'];
$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,['addIndicatorEntries']) ? 'active' : ''); ?> ">
            <a href="<?php echo e(route('addIndicatorEntries')); ?>" class="sidebar-link <?php echo e($routeName == 'addIndicatorEntries' ? 'active' : ''); ?>">
                <i class="bi bi-grid-fill"></i>
                <span>Agregar entrada indicadores</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 == 'companies' ? 'active' : ''); ?> ">
                    <a href="<?php echo e(route('companies')); ?>">Companies</a>
                </li>
                <li class="submenu-item <?php echo e($routeName == 'users' ? 'active' : ''); ?> ">
                    <a href="<?php echo e(route('users')); ?>">Users</a>
                </li>
                <li class="submenu-item <?php echo e($routeName == 'units' ? 'active' : ''); ?> ">
                    <a href="<?php echo e(route('units')); ?>">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 == 'indicators' ? 'active' : ''); ?> ">
                    <a href="<?php echo e(route('indicators')); ?>">Indicators</a>
                </li>

            </ul>
        </li>

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