@if(hasPermission('performance_read'))
<li class="sidebar-menu-item">
    <a href="javascript:void(0)"
        class="parent-item-content has-arrow 
        {{ menu_active_by_route([
            'employee-performance.index',
            'employee-performance.create', 
            'employee-performance.edit',
            'award_type.index',
            'award.index',
            'award.create',
            'award.view',
            'award.edit'
            ]) 
        }}"
    >
        <i class="las la-user-tie"></i>
        <span class="on-half-expanded">
            {{ _trans('common.Evaluation') }}
        </span>
    </a>
    <ul class="child-menu-list {{ set_active(['admin/employee-performance','admin/employee-performance/*', 'admin/award', 'admin/award/type', 'admin/award/create', 'admin/award/view/*', 'admin/award/edit/*']) }}">
        @if (hasPermission('performance_read') && isModuleActive('EmployeePerformance') && hasFeature('performance'))
            <li class="nav-item {{ menu_active_by_route(['employee-performance.*']) }}">
                <a href="{{ route('employee-performance.index') }}" class="">
                    <span> {{ _trans('payroll.Performance') }}</span> 
                    @if (Str::lower(config('app.style')) == 'demo')
                        <span class="badge text-bg-warning">{{ _trans('common.Pro') }}</span>
                    @endif
                </a>
            </li>
        @endif

        @if (hasPermission('award_menu') && hasFeature('awards'))
            <li class="sidebar-menu-item {{ set_menu([route('award.index'), route('award_type.index')]) }}">
                <a href="javascript:void(0)"
                    class="parent-item-content has-arrow {{ menu_active_by_route(['award_type.index','award.index','award.create','award.edit','award.view']) }}">
                    <span class="on-half-expanded">{{ _trans('award.Rewards') }}</span>
                </a>
                <ul class="child-menu-list {{ set_active(['admin/award*']) }}">
                    @if (hasPermission('award_type_read'))
                        <li class="sidebar-menu-item {{ menu_active_by_route(['award_type.index']) }}">
                            <a href="{{ route('award_type.index') }}">
                                <span> {{ _trans('award.Reward Types') }}</span>
                            </a>
                        </li>
                    @endif

                    @if (hasPermission('award_read'))
                        <li class="sidebar-menu-item {{ menu_active_by_route(['award.index','award.create','award.edit','award.view']) }}">
                            <a href="{{ route('award.index') }}">
                                <span> {{ _trans('award.Rewards') }}</span>
                            </a>
                        </li>
                    @endif
                </ul>
            </li>
        @endif
    </ul>
</li>
@endif