<?php $u = auth()->user(); ?>
<aside class="sidenav navbar navbar-vertical navbar-expand-xs border-0 border-radius-xl my-3 fixed-start ms-3 bg-white" id="sidenav-main">
    <div class="sidenav-header">
        <a class="navbar-brand m-0 d-flex align-items-center px-4 py-3" href="<?php echo e(route('dashboard')); ?>">
            <img src="<?php echo e(asset('assets/img/logo-main.png')); ?>" class="navbar-brand-img" alt="MyIndependent">
        </a>
    </div>
    <hr class="horizontal dark mt-0">
    <div class="collapse navbar-collapse w-auto" id="sidenav-collapse-main">
        <ul class="navbar-nav">
            <li class="nav-item">
                <a class="nav-link <?php echo e(request()->routeIs('dashboard') ? 'active' : ''); ?>" href="<?php echo e(route('dashboard')); ?>">
                    <div class="icon icon-shape icon-sm shadow border-radius-md bg-white text-center me-2 d-flex align-items-center justify-content-center">
                        <i class="bi bi-speedometer2 text-primary"></i></div>
                    <span class="nav-link-text ms-1">Dashboard</span>
                </a>
            </li>

            <li class="nav-item">
                <a class="nav-link <?php echo e(request()->routeIs('staff.*') ? 'active' : ''); ?>" href="<?php echo e(route('staff.index')); ?>">
                    <div class="icon icon-shape icon-sm shadow border-radius-md bg-white text-center me-2 d-flex align-items-center justify-content-center">
                        <i class="bi bi-people text-primary"></i></div>
                    <span class="nav-link-text ms-1"><?php echo e($u->isStaff() ? 'My Profile' : 'Staff'); ?></span>
                </a>
            </li>

            
            <?php if($u->isAdmin() || $u->isSupervisor()): ?>
            <li class="nav-item">
                <a class="nav-link <?php echo e(request()->routeIs('sites.*') ? 'active' : ''); ?>" href="<?php echo e(route('sites.index')); ?>">
                    <div class="icon icon-shape icon-sm shadow border-radius-md bg-white text-center me-2 d-flex align-items-center justify-content-center">
                        <i class="bi bi-geo-alt text-primary"></i></div>
                    <span class="nav-link-text ms-1">Sites / Projects</span>
                </a>
            </li>

            <li class="nav-item">
                <a class="nav-link <?php echo e(request()->routeIs('renewals.*') ? 'active' : ''); ?>" href="<?php echo e(route('renewals.index')); ?>">
                    <div class="icon icon-shape icon-sm shadow border-radius-md bg-white text-center me-2 d-flex align-items-center justify-content-center">
                        <i class="bi bi-passport text-primary"></i></div>
                    <span class="nav-link-text ms-1">Permits &amp; Renewals</span>
                </a>
            </li>
            <?php endif; ?>

            <?php if($u->isAdmin() || $u->isFinance() || $u->isSupervisor()): ?>
            <li class="nav-item">
                <a class="nav-link <?php echo e(request()->routeIs('attendance.*') ? 'active' : ''); ?>" href="<?php echo e(route('attendance.summary')); ?>">
                    <div class="icon icon-shape icon-sm shadow border-radius-md bg-white text-center me-2 d-flex align-items-center justify-content-center">
                        <i class="bi bi-calendar-check text-primary"></i></div>
                    <span class="nav-link-text ms-1">Attendance</span>
                </a>
            </li>
            <?php endif; ?>

            <?php if($u->isAdmin() || $u->isFinance() || $u->isStaff()): ?>
            <li class="nav-item">
                <a class="nav-link <?php echo e(request()->routeIs('payroll.*') || request()->routeIs('payslips.*') ? 'active' : ''); ?>"
                   href="<?php echo e($u->isStaff() ? route('payslips.mine') : route('payroll.index')); ?>">
                    <div class="icon icon-shape icon-sm shadow border-radius-md bg-white text-center me-2 d-flex align-items-center justify-content-center">
                        <i class="bi bi-cash-stack text-primary"></i></div>
                    <span class="nav-link-text ms-1"><?php echo e($u->isStaff() ? 'My Payslips' : 'Payroll'); ?></span>
                </a>
            </li>
            <?php endif; ?>

            <?php if($u->isAdmin() || $u->isSupervisor()): ?>
            <li class="nav-item mt-2">
                <h6 class="ps-4 ms-2 text-uppercase text-xs font-weight-bolder opacity-6">Setup</h6>
            </li>
            <li class="nav-item">
                <a class="nav-link <?php echo e(request()->routeIs('setup.*') ? 'active' : ''); ?>" href="<?php echo e(route('setup.index')); ?>">
                    <div class="icon icon-shape icon-sm shadow border-radius-md bg-white text-center me-2 d-flex align-items-center justify-content-center">
                        <i class="bi bi-list-check text-primary"></i></div>
                    <span class="nav-link-text ms-1">Complete Records</span>
                </a>
            </li>
            <?php endif; ?>

            <?php if($u->isAdmin()): ?>
            <li class="nav-item">
                <a class="nav-link <?php echo e(request()->routeIs('import.*') ? 'active' : ''); ?>" href="<?php echo e(route('import.show')); ?>">
                    <div class="icon icon-shape icon-sm shadow border-radius-md bg-white text-center me-2 d-flex align-items-center justify-content-center">
                        <i class="bi bi-file-earmark-spreadsheet text-primary"></i></div>
                    <span class="nav-link-text ms-1">Import Excel</span>
                </a>
            </li>
            <li class="nav-item">
                <a class="nav-link <?php echo e(request()->routeIs('users.*') ? 'active' : ''); ?>" href="<?php echo e(route('users.index')); ?>">
                    <div class="icon icon-shape icon-sm shadow border-radius-md bg-white text-center me-2 d-flex align-items-center justify-content-center">
                        <i class="bi bi-shield-lock text-primary"></i></div>
                    <span class="nav-link-text ms-1">User Accounts</span>
                </a>
            </li>
            <?php endif; ?>
        </ul>
    </div>
</aside>
<?php /**PATH /Users/kalaiarasen/projects/myindependent-worker-management/resources/views/layouts/partials/sidebar.blade.php ENDPATH**/ ?>