@if(hasPermission('department_read') || hasPermission('designation_read') || hasPermission('role_read') || hasPermission('user_read') || hasPermission('official_document_menu') || hasPermission('write_up_menu')
|| hasPermission('performance_read'))
<li class="sidebar-menu-item">
    <a href="javascript:void(0)"
        class="parent-item-content has-arrow 
        {{ menu_active_by_route([
            'designation.index', 
            'designation.edit', 
            'designation.create', 
            'department.index', 
            'department.edit', 
            'department.create', 
            'roles.index', 
            'roles.edit', 
            'roles.create', 
            'user.*', 
            'document-request.index',
            'document-request.setting', 
            'complain.*', 
            'verbal-warning.*', 
            'employee.bulk.import']) 
        }}"
    >
        <i class="las la-user-tie"></i>
        <span class="on-half-expanded">
            {{ _trans('common.Employee') }}
        </span>
    </a>
    <ul class="child-menu-list {{ set_active(['hrm/designation*', 'hrm/department*', 'hrm/roles*', 'dashboard/user*', 'dashboard/user/create', 'dashboard/user/edit*', 'dashboard/user/show*', 'dashboard/user/permission*', 'documents/*', 'documents/types/*', 'documents/list', 'admin/complain*', 'admin/verbal-warning*', 'admin/bulk/import/employees']) }}">
        @if (hasPermission('department_read'))
            <li class="sidebar-menu-item {{ menu_active_by_route(['department.index', 'department.edit', 'department.create']) }}">
                <a href="{{ route('department.index') }}" class="{{ set_active(route('department.index')) }}">
                    <span>{{ _trans('common.Departments') }}</span>
                </a>
            </li>
        @endif
        @if (hasPermission('designation_read'))
            <li class="sidebar-menu-item {{ menu_active_by_route(['designation.index', 'designation.edit', 'designation.create']) }}">
                <a href="{{ route('designation.index') }}" class="{{ set_active(route('designation.index')) }}">
                    <span>{{ _trans('common.Designations') }}</span>
                </a>
            </li>
        @endif
        @if (hasPermission('role_read'))
            <li class="sidebar-menu-item {{ menu_active_by_route(['roles.index', 'roles.edit', 'roles.create']) }}">
                <a href="{{ route('roles.index') }}" class="{{ set_active('dashboard/roles') }}">
                    <span>{{ _trans('common.Roles') }}</span>
                </a>
            </li>
        @endif
        @if (hasPermission('user_read') && hasFeature('employees'))
            <li class="sidebar-menu-item {{ menu_active_by_route(['user.*']) }}">
                <a href="{{ route('user.index') }}" class="{{ set_active('dashboard/user') }}">
                    <span>{{ _trans('common.Employees') }}</span>
                </a>
            </li>
        @endif
        @if(isModuleActive('BulkImport') && hasPermission('bulk_upload_menu'))
            @include('bulkimport::sidebar.bulk_import')
        @endif
        @if (hasPermission('official_document_menu') && isModuleActive('EmployeeDocuments') && hasFeature('official_document'))
            @include('employeedocuments::sidebar.imprint.official_document_menu')
        @endif
        @if (hasPermission('write_up_menu') && isModuleActive('WriteUp') && hasFeature('write_up'))
            @include('writeup::sidebar.writeup_sidebar')
        @endif
    </ul>
</li>
@endif