<?php if(permissionCheck('human_resource')): ?>
    <?php

        $hr = false;
        $attendance = false;
        $events = false;

        if(request()->is('hr/*'))
        {
            $hr = true;
        }
        if(request()->is('attendance/*'))
        {
            $attendance = true;
        }
        if(request()->is('events') || request()->is('events/*'))
        {
            $events = true;
        }

    ?>

    <li class="<?php echo e($hr || $attendance|| $events ?'mm-active' : ''); ?> sortable_li" data-position="<?php echo e(menuManagerCheck(1,23)->position); ?>" data-status="<?php echo e(menuManagerCheck(1,23)->status); ?>">
        <a href="javascript:;" class="has-arrow" aria-expanded="true">
            <div class="nav_icon_small">
                <span class="fas fa-users"></span>
            </div>
            <div class="nav_title">
                <span><?php echo e(__('hr.human_resource')); ?></span>
            </div>
        </a>
        <ul>
            <?php if(permissionCheck('staffs.index') && menuManagerCheck(2,23,'staffs.index')->status == 1): ?>
                <li data-position="<?php echo e(menuManagerCheck(2,23,'staffs.index')->position); ?>">
                    <a href="<?php echo e(route('staffs.index')); ?>" class="<?php echo e(request()->is('hr/staffs/') || request()->is('hr/staffs/*') ? 'active' : ''); ?>"><?php echo e(__('hr.staff')); ?></a>
                </li>
            <?php endif; ?>
            <?php if(permissionCheck('permission.roles.index') && menuManagerCheck(2,23,'permission.roles.index')->status == 1): ?>
                <li data-position="<?php echo e(menuManagerCheck(2,23,'permission.roles.index')->position); ?>">
                    <a href="<?php echo e(route('permission.roles.index')); ?>" class="<?php echo e(request()->is('hr/role-permission/*') ? 'active' : '/*'); ?>"><?php echo e(__('hr.role')); ?></a>
                </li>
            <?php endif; ?>
            <?php if(permissionCheck('departments.index') && menuManagerCheck(2,23,'departments.index')->status == 1): ?>
                <li data-position="<?php echo e(menuManagerCheck(2,23,'departments.index')->position); ?>">
                    <a href="<?php echo e(route('departments.index')); ?>" class="<?php echo e(request()->is('hr/departments') ? 'active' : ''); ?>"><?php echo e(__('hr.department')); ?></a>
                </li>
            <?php endif; ?>
            <?php if(permissionCheck('attendances.index') && menuManagerCheck(2,23,'attendances.index')->status == 1): ?>
                <li data-position="<?php echo e(menuManagerCheck(2,23,'attendances.index')->position); ?>">
                    <a href="<?php echo e(route('attendances.index')); ?>" class="<?php echo e(request()->is('hr/attendances') ? 'active' : ''); ?>"><?php echo e(__('hr.attendance')); ?></a>
                </li>
            <?php endif; ?>
            <?php if(permissionCheck('attendance_report.index') && menuManagerCheck(2,23,'attendance_report.index')->status == 1): ?>
                <li data-position="<?php echo e(menuManagerCheck(2,23,'attendance_report.index')->position); ?>">
                    <a href="<?php echo e(route('attendance_report.index')); ?>" class="<?php echo e(request()->is('attendance/hr/attendance') ? 'active' : ''); ?>"><?php echo e(__('hr.attendance_report')); ?></a>
                </li>
            <?php endif; ?>
            <?php if(permissionCheck('events.index') && menuManagerCheck(2,23,'events.index')->status == 1): ?>
                <li data-position="<?php echo e(menuManagerCheck(2,23,'events.index')->position); ?>">
                    <a href="<?php echo e(route('events.index')); ?>" class="<?php echo e(request()->is('events') || request()->is('events/*') ? 'active' : ''); ?>"><?php echo e(__('hr.event')); ?></a>
                </li>
            <?php endif; ?>
            <?php if(permissionCheck('holidays.index') && menuManagerCheck(2,23,'holidays.index')->status == 1): ?>
                <li data-position="<?php echo e(menuManagerCheck(2,23,'holidays.index')->position); ?>">
                    <a href="<?php echo e(route('holidays.index')); ?>" class="<?php echo e(request()->is('attendance/holidays') ? 'active' : ''); ?>"><?php echo e(__('hr.holiday_setup')); ?></a>
                </li>
            <?php endif; ?>
        </ul>
    </li>
<?php endif; ?>
<?php /**PATH /home/penastud/public_html/mart/resources/views/backEnd/menu.blade.php ENDPATH**/ ?>