<?php
if (session_status() !== PHP_SESSION_ACTIVE) @session_start();

if (defined('BASE_PATH') && file_exists(BASE_PATH . '/app/views/partials/i18n_sidebar_labels.php')) {
    require_once BASE_PATH . '/app/views/partials/i18n_sidebar_labels.php';
}
if (defined('BASE_PATH') && file_exists(BASE_PATH . '/app/views/partials/sidebar_i18n_overrides.php')) {
    require_once BASE_PATH . '/app/views/partials/sidebar_i18n_overrides.php';
}

if (defined('BASE_PATH') && file_exists(BASE_PATH . '/app/helpers/easychair_translate.php')) {
    require_once BASE_PATH . '/app/helpers/easychair_translate.php';
}
if (defined('BASE_PATH') && file_exists(BASE_PATH . '/app/helpers/permissions.php')) {
    require_once BASE_PATH . '/app/helpers/permissions.php';
}

if (!function_exists('ec_role_layout_role_code')) {
    function ec_role_layout_role_code(): string {
        return (string)($_SESSION['conference_role'] ?? $_SESSION['role'] ?? $_SESSION['user_role'] ?? '');
    }
}
if (!function_exists('ec_role_layout_t')) {
    function ec_role_layout_t(string $key, string $fallback): string {
        $translated = function_exists('ec_t') ? ec_t($key, $fallback) : $fallback;
        $lang = function_exists('ec_lang') ? ec_lang() : ($_SESSION['lang'] ?? 'ar');

        if (
            $lang === 'ar'
            &&
            (
                $translated === $fallback
                ||
                $translated === $key
                ||
                trim((string)$translated) === ''
            )
            &&
            isset($GLOBALS['EC_SIDEBAR_I18N_OVERRIDES']['ar'][$key])
        ) {
            return $GLOBALS['EC_SIDEBAR_I18N_OVERRIDES']['ar'][$key];
        }

        return $translated;
    }
}
if (!function_exists('ec_role_layout_role_label')) {
    function ec_role_layout_role_label(string $role): string {
        return function_exists('ec_role_t') ? ec_role_t($role) : ucwords(str_replace('_',' ', $role));
    }
}
if (!function_exists('ec_role_layout_all_groups')) {
    function ec_role_layout_all_groups(): array {
        return [
            ['group'=>'core','label_key'=>'menu.core','label'=>'Core','items'=>[
                ['url'=>'/easychair/admin/dashboard','icon'=>'fa-gauge-high','label_key'=>'menu.dashboard','label'=>'Dashboard','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','track_chair','organizer','section_editor']],
                ['url'=>'/easychair/admin/online-users','icon'=>'fa-users-viewfinder','label_key'=>'menu.online_users','label'=>'Online Users','roles'=>['superadmin','super_admin']],
                ['url'=>'/easychair/admin/user-scope-audit','icon'=>'fa-users-gear','label_key'=>'menu.user_scope_audit','label'=>'User Scope Audit','roles'=>['superadmin','super_admin']],
                ['url'=>'/easychair/admin/access-audit','icon'=>'fa-shield-halved','label_key'=>'menu.access_audit','label'=>'Access Audit','roles'=>['superadmin','super_admin']],
                ['url'=>'/easychair/admin/scope-debug','icon'=>'fa-bug','label_key'=>'menu.scope_debug','label'=>'Scope Debug','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','organizer']],
            ]],
            ['group'=>'setup','label_key'=>'menu.conference_setup','label'=>'Conference Setup','items'=>[
                ['url'=>'/easychair/admin/conferences','icon'=>'fa-folder-open','label_key'=>'menu.conferences','label'=>'Conferences','roles'=>['superadmin','super_admin','org_admin','admin']],
                ['url'=>'/easychair/admin/organizations','icon'=>'fa-building','label_key'=>'menu.organizations','label'=>'Organizations','roles'=>['superadmin','super_admin']],
                ['url'=>'/easychair/admin/conference-home','icon'=>'fa-palette','label_key'=>'menu.smart_homepage','label'=>'Smart Homepage','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','organizer']],
                ['url'=>'/easychair/admin/branding','icon'=>'fa-image','label_key'=>'menu.branding','label'=>'Branding & Logos','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','organizer']],
                ['url'=>'/easychair/admin/committee-images','icon'=>'fa-images','label_key'=>'menu.committee_images','label'=>'Committee & Participant Images','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','organizer']],

 ['url'=>'/easychair/admin/conference-home/template/compare','icon'=>'fa-solid fa-code-compare','label_key'=>'menu.template_compare','label'=>'Template Compare','roles' => ['superadmin','super_admin','org_admin','conference_chair','track_chair','admin']],
 ['url'=>'/easychair/admin/conference-home/publish-center','icon'=>'fa-solid fa-rocket','label_key'=>'menu.publish_center','label'=>'Publish Center','roles' => ['superadmin','super_admin','org_admin','conference_chair','track_chair','admin']],
[
'url'=>'/easychair/admin/conference-home/publications',
'icon'=>'fa-solid fa-clock-rotate-left',
'label_key'=>'menu.publication_history',
'label'=>'Publication History',
'roles' => ['superadmin','super_admin','org_admin','conference_chair','track_chair','admin']
],
['url'=>'/easychair/admin/conference-home/rollback','icon'=>'fa-solid fa-rotate-left','label_key'=>'menu.rollback_center','label'=>'Rollback Center','roles' => ['superadmin','super_admin','org_admin','conference_chair','track_chair','admin']],
[
'url'=>'/easychair/admin/conference-home/deployment',
'icon'=>'fa-solid fa-tower-broadcast',
'label_key'=>'menu.deployment_center',
'label'=>'Deployment Center',
'roles'=>['superadmin','super_admin','org_admin','conference_chair','track_chair','admin']
],

[
'url'=>'/easychair/admin/conference-home/release-notes',
'icon'=>'fa-solid fa-file-lines',
'label_key'=>'menu.release_notes',
'label'=>'Release Notes',
'roles'=>['superadmin','super_admin','org_admin','conference_chair','track_chair','admin']
],

[
'url'=>'/easychair/admin/conference-home/versions',
'icon'=>'fa-solid fa-layer-group',
'label_key'=>'menu.homepage_versions',
'label'=>'Homepage Versions',
'roles'=>['superadmin','super_admin','org_admin','conference_chair','track_chair','admin']
],

[
'url'=>'/easychair/admin/conference-home/branches',
'icon'=>'fa-solid fa-code-branch',
'label_key'=>'menu.homepage_branches',
'label'=>'Homepage Branches',
'roles'=>['superadmin','super_admin','org_admin','conference_chair','track_chair','admin']
],

[
'url'=>'/easychair/admin/conference-home/workflow-history',
'icon'=>'fa-solid fa-clock-rotate-left',
'label_key'=>'menu.workflow_history',
'label'=>'Workflow History',
'roles'=>['superadmin','super_admin','org_admin','conference_chair','track_chair','admin']
],

[
'url'=>'/easychair/admin/conference-home/workflow-inbox',
'icon'=>'fa-solid fa-inbox',
'label_key'=>'menu.workflow_inbox',
'label'=>'Workflow Inbox',
'roles'=>[
'super_admin',
'conference_chair',
'track_chair'
]
],

[
'url'=>'/easychair/admin/conference-home/workflow-kpi',
'icon'=>'fa-solid fa-chart-line',
'label_key'=>'menu.workflow_kpi',
'label'=>'Workflow KPI Center',
'roles'=>[
'super_admin',
'conference_chair'
]
],


[
'url'=>'/easychair/admin/conference-home/approval-queue',
'icon'=>'fa-solid fa-list-check',
'label_key'=>'menu.approval_queue',
'label'=>'Approval Queue',
'roles'=>[
'super_admin',
'conference_chair',
'track_chair'
]
],

[
'url'=>'/easychair/admin/conference-home/sla-center',
'icon'=>'fa-solid fa-stopwatch',
'label_key'=>'menu.sla_center',
'label'=>'SLA Center',
'roles'=>[
'super_admin',
'conference_chair'
]
],

[
'url'=>'/easychair/admin/conference-home/automation-center',
'icon'=>'fa-solid fa-robot',
'label_key'=>'menu.workflow_automation',
'label'=>'Automation Center',
'roles'=>[
'super_admin',
'conference_chair'
]
],

[
'url'=>'/easychair/admin/conference-home/automation-runner',
'icon'=>'fa-solid fa-gears',
'label_key'=>'menu.workflow_runner',
'label'=>'Automation Runner',
'roles'=>[
'super_admin',
'conference_chair'
]
],

[
'url'=>'/easychair/admin/conference-home/alert-history',
'icon'=>'fa-solid fa-clock-rotate-left',
'label_key'=>'menu.alert_history',
'label'=>'Alert History',
'roles'=>[
'super_admin',
'conference_chair'
]
],

[
'url'=>'/easychair/admin/conference-home/timeline-center',
'icon'=>'fa-solid fa-timeline',
'label_key'=>'menu.timeline_center',
'label'=>'Workflow Timeline',
'roles'=>[
'super_admin',
'conference_chair',
'track_chair'
]
],

[
'url'=>'/easychair/admin/conference-home/workflow-duration',
'icon'=>'fa-solid fa-hourglass-half',
'label_key'=>'menu.workflow_duration',
'label'=>'Workflow Duration',
'roles'=>[
'super_admin',
'conference_chair'
]
],

[
'url'=>'/easychair/admin/conference-home/workflow-heatmap',
'icon'=>'fa-solid fa-fire',
'label_key'=>'menu.workflow_heatmap',
'label'=>'Workflow Heatmap',
'roles'=>[
'super_admin',
'conference_chair'
]
],

[
'url'=>'/easychair/admin/conference-home/executive-dashboard',
'icon'=>'fa-solid fa-gauge-high',
'label_key'=>'menu.executive_dashboard',
'label'=>'Executive Dashboard',
'roles'=>[
'super_admin',
'conference_chair'
]
],

[
'url'=>'/easychair/admin/conference-home/decision-board',
'icon'=>'fa-solid fa-gavel',
'label_key'=>'menu.decision_board',
'label'=>'Decision Board',
'roles'=>[
'super_admin',
'conference_chair'
]
],

[
'url'=>'/easychair/admin/conference-home/operations-center',
'icon'=>'fa-solid fa-tower-broadcast',
'label_key'=>'menu.operations_center',
'label'=>'Operations Center',
'roles'=>[
'super_admin',
'conference_chair'
]
],

[
'url'=>'/easychair/admin/conference-home/ownership-center',
'icon'=>'fa-solid fa-user-shield',
'label_key'=>'menu.ownership_center',
'label'=>'Ownership Center',
'roles'=>[
'super_admin',
'conference_chair'
]
],

[
'url'=>'/easychair/admin/conference-home/automation-scheduler',
'icon'=>'fa-solid fa-robot',
'label_key'=>'menu.automation_scheduler',
'label'=>'Automation Scheduler',
'roles'=>[
'super_admin',
'conference_chair'
]
],

[
'url'=>'/easychair/admin/conference-home/cron-logs',
'icon'=>'fa-solid fa-terminal',
'label_key'=>'menu.cron_logs',
'label'=>'Cron Logs',
'roles'=>[
'super_admin'
]
],

[
'url'=>'/easychair/admin/conference-home/governance-center',
'icon'=>'fa-solid fa-shield-halved',
'label_key'=>'menu.governance_center',
'label'=>'Governance Center',
'roles'=>[
'super_admin',
'conference_chair'
]
],

[
'url'=>'/easychair/admin/conference-home/governance-analytics',
'icon'=>'fa-solid fa-chart-area',
'label_key'=>'menu.governance_analytics',
'label'=>'Governance Analytics',
'roles'=>[
'super_admin',
'conference_chair'
]
],

[
'url'=>'/easychair/admin/conference-home/governance-intelligence',
'icon'=>'fa-solid fa-brain',
'label_key'=>'menu.governance_intelligence',
'label'=>'Governance Intelligence',
'roles'=>[
'super_admin',
'conference_chair'
]
],

/*
[
'url'=>'/easychair/admin/conference-home/performance-center',
'icon'=>'fa-solid fa-medal',
'label_key'=>'menu.performance_center',
'label'=>'Performance Center',
'roles'=>[
'super_admin',
'conference_chair'
]
],
*/










[
    'url'=>'/easychair/admin/conference-speakers',
    'icon'=>'fa-microphone-lines',
    'label'=>'Conference Speakers',
'label_key'=>'menu.conference_speakers',
  'roles' => ['superadmin','super_admin','org_admin','admin']
],
[
    'url'=>'/easychair/admin/conference-home-builder',
    'icon'=>'fa-panorama',
    'label'=>'Homepage Builder',
'label_key'=>'menu.homepage_builder',
  'roles' => ['superadmin','super_admin','org_admin','admin']
],

[
    'url'=>'/easychair/admin/conference-themes',
    'icon'=>'fa-layer-group',
    'label'=>'Conference Themes',
'label_key'=>'menu.conference_themes',
  'roles' => ['superadmin','super_admin','org_admin','admin']
],

[
    'url'=>'/easychair/admin/homepage-sections',
    'icon'=>'fa-layer-group',
    'label'=>'Homepage Sections',
'label_key'=>'menu.homepage_sections',
  'roles' => ['superadmin','super_admin','org_admin','admin']
],

[
    'url'=>'/easychair/admin/hero-slides',
    'icon'=>'fa-images',
    'label'=>'Hero Slides',
    'label_key'=>'menu.hero_slides',
    'roles' => ['superadmin','super_admin','org_admin','admin']
],

[
    'url'=>'/easychair/admin/venues',
    'icon'=>'fa-location-dot',
    'label'=>'Conference Venues',
    'label_key'=>'menu.conference_venues',
    'roles' => ['superadmin','super_admin','org_admin','admin']
],

[
    'url'=>'/easychair/admin/homepage-content',
    'icon'=>'fa-pen-to-square',
    'label'=>'Homepage Content',
    'label_key'=>'menu.homepage_content',
    'roles'=>['superadmin','super_admin','org_admin','admin']
],


[
    'url'=>'/easychair/admin/homepage-design',
    'icon'=>'fa-palette',
    'label'=>'Homepage Designer',
    'label_key'=>'menu.homepage_designer',
    'roles'=>['superadmin','super_admin','org_admin','admin']
],

[
    'url'=>'/easychair/admin/conference-sponsors',
    'icon'=>'fa-handshake',
    'label'=>'Conference Sponsors',
    'label_key'=>'menu.conference_sponsors',
    'roles'=>['superadmin','super_admin','org_admin','admin']
],

[
    'url'=>'/easychair/admin/homepage-studio',
    'icon'=>'fa-globe',
    'label'=>'Homepage Studio',
    'label_key'=>'menu.homepage_studio',
    'roles'=>['superadmin','super_admin','org_admin','admin']
],

[
    'url'=>'/easychair/admin/conference-home/sections',
    'icon'=>'fa-solid fa-layer-group',
    'label'=>'Homepage Sections',
    'label_key'=>'menu.homepage_sections',
    'roles'=>['superadmin','super_admin','org_admin','admin']
],

[
    'url'=>'/easychair/admin/conference-home/studio',
    'icon'=>'fa-solid fa-wand-magic',
    'label'=>'Homepage Studios',
    'label_key'=>'menu.homepage_studios',
    'roles'=>['superadmin','super_admin','org_admin','admin']
],

[
'url'=>'/easychair/admin/conference-home/blocks',
'icon'=>'fa-solid fa-cubes',
'label'=>'Homepage Blocks',
'label_key'=>'menu.homepage_blocks',
'roles'=>[
'superadmin',
'org_admin'
]
],

[
'url'=>'/easychair/admin/conference-home/versions',
'icon'=>'fa-clock-rotate-left',
'label'=>'Homepage Versions',
'label_key'=>'menu.homepage_versions',
'roles'=>
[
'superadmin',
'org_admin'
]
],

[
'url'=>'/easychair/admin/conference-home/clone',
'icon'=>'fa-copy',
'label'=>'Homepage Templates',
'label_key'=>'menu.homepage_templates',
'roles'=>
[
'superadmin',
'org_admin'
]
],

[
'url'=>'/easychair/admin/conference-home/templates',
'icon'=>'fa-store',
'label'=>'Homepage Marketplace',
'label_key'=>'menu.homepage_marketplace',
'roles'=>
[
'superadmin',
'org_admin'
]
],

[
'url'=>'/easychair/admin/conference-home/ai-import',
'icon'=>'fa-robot',
'label'=>'AI Homepage',
'label_key'=>'menu.homepage_ai_homepage',
'roles'=>[
'superadmin',
'org_admin'
]

],



                ['url'=>'/easychair/admin/conference-business','icon'=>'fa-calendar-days','label_key'=>'menu.conference_business','label'=>'Conference Business','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','organizer']],
                ['url'=>'/easychair/admin/certificates','icon'=>'fa-certificate','label_key'=>'menu.certificates','label'=>'Certificates','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','organizer']],
            ]],
            
            ['group'=>'governance','label_key'=>'menu.governance','label'=>'Governance','items'=>[
                ['url'=>'/easychair/admin/conference-home/workflow-inbox','icon'=>'fa-solid fa-inbox','label_key'=>'menu.workflow_inbox','label'=>'Workflow Inbox','roles'=>['super_admin','conference_chair','track_chair']],
                ['url'=>'/easychair/admin/conference-home/workflow-kpi','icon'=>'fa-solid fa-chart-line','label_key'=>'menu.workflow_kpi','label'=>'Workflow KPI Center','roles'=>['super_admin','conference_chair']],
                ['url'=>'/easychair/admin/conference-home/approval-queue','icon'=>'fa-solid fa-list-check','label_key'=>'menu.approval_queue','label'=>'Approval Queue','roles'=>['super_admin','conference_chair','track_chair']],
                ['url'=>'/easychair/admin/conference-home/sla-center','icon'=>'fa-solid fa-stopwatch','label_key'=>'menu.sla_center','label'=>'SLA Center','roles'=>['super_admin','conference_chair']],
                ['url'=>'/easychair/admin/conference-home/automation-center','icon'=>'fa-solid fa-robot','label_key'=>'menu.workflow_automation','label'=>'Automation Center','roles'=>['super_admin','conference_chair']],
                ['url'=>'/easychair/admin/conference-home/automation-runner','icon'=>'fa-solid fa-gears','label_key'=>'menu.workflow_runner','label'=>'Automation Runner','roles'=>['super_admin','conference_chair']],
                ['url'=>'/easychair/admin/conference-home/alert-history','icon'=>'fa-solid fa-clock-rotate-left','label_key'=>'menu.alert_history','label'=>'Alert History','roles'=>['super_admin','conference_chair']],
                ['url'=>'/easychair/admin/conference-home/timeline-center','icon'=>'fa-solid fa-timeline','label_key'=>'menu.timeline_center','label'=>'Workflow Timeline','roles'=>['super_admin','conference_chair','track_chair']],
                ['url'=>'/easychair/admin/conference-home/workflow-duration','icon'=>'fa-solid fa-hourglass-half','label_key'=>'menu.workflow_duration','label'=>'Workflow Duration','roles'=>['super_admin','conference_chair']],
                ['url'=>'/easychair/admin/conference-home/workflow-heatmap','icon'=>'fa-solid fa-fire','label_key'=>'menu.workflow_heatmap','label'=>'Workflow Heatmap','roles'=>['super_admin','conference_chair']],
                ['url'=>'/easychair/admin/conference-home/executive-dashboard','icon'=>'fa-solid fa-gauge-high','label_key'=>'menu.executive_dashboard','label'=>'Executive Dashboard','roles'=>['super_admin','conference_chair']],
                ['url'=>'/easychair/admin/conference-home/decision-board','icon'=>'fa-solid fa-gavel','label_key'=>'menu.decision_board','label'=>'Decision Board','roles'=>['super_admin','conference_chair']],
                ['url'=>'/easychair/admin/conference-home/operations-center','icon'=>'fa-solid fa-tower-broadcast','label_key'=>'menu.operations_center','label'=>'Operations Center','roles'=>['super_admin','conference_chair']],
                ['url'=>'/easychair/admin/conference-home/ownership-center','icon'=>'fa-solid fa-user-shield','label_key'=>'menu.ownership_center','label'=>'Ownership Center','roles'=>['super_admin','conference_chair']],
                ['url'=>'/easychair/admin/conference-home/workload-center','icon'=>'fa-solid fa-scale-balanced','label_key'=>'menu.workload_center','label'=>'Workload Center','roles'=>['super_admin','conference_chair']],
                ['url'=>'/easychair/admin/conference-home/governance-center','icon'=>'fa-solid fa-shield-halved','label_key'=>'menu.governance_center','label'=>'Governance Center','roles'=>['super_admin','conference_chair']],
                ['url'=>'/easychair/admin/conference-home/governance-analytics','icon'=>'fa-solid fa-chart-area','label_key'=>'menu.governance_analytics','label'=>'Governance Analytics','roles'=>['super_admin','conference_chair']],
                ['url'=>'/easychair/admin/conference-home/governance-intelligence','icon'=>'fa-solid fa-brain','label_key'=>'menu.governance_intelligence','label'=>'Governance Intelligence','roles'=>['super_admin','conference_chair']],
                ['url'=>'/easychair/admin/conference-home/performance-center','icon'=>'fa-solid fa-medal','label_key'=>'menu.performance_center','label'=>'Performance Center','roles'=>['super_admin','conference_chair']],
                ['url'=>'/easychair/admin/conference-home/automation-scheduler','icon'=>'fa-solid fa-robot','label_key'=>'menu.automation_scheduler','label'=>'Automation Scheduler','roles'=>['super_admin','conference_chair']],
                ['url'=>'/easychair/admin/conference-home/cron-logs','icon'=>'fa-solid fa-terminal','label_key'=>'menu.cron_logs','label'=>'Cron Logs','roles'=>['super_admin']],
                [
'url'=>'/easychair/admin/conference-home/alert-center',
'icon'=>'fa-solid fa-triangle-exclamation',
'label_key'=>'menu.alert_center',
'label'=>'Alert Center',
'roles'=>[
'super_admin',
'conference_chair',
'track_chair'
]
],

[
'url'=>'/easychair/admin/conference-home/escalation-center',
'icon'=>'fa-solid fa-arrow-up-right-dots',
'label_key'=>'menu.escalation_center',
'label'=>'Escalation Center',
'roles'=>[
'super_admin',
'conference_chair',
'track_chair'
]
],

[
'url'=>'/easychair/admin/conference-home/run-auto-escalation',
'icon'=>'fa-solid fa-bolt',
'label_key'=>'menu.auto_escalation',
'label'=>'Auto Escalation',
'roles'=>[
'super_admin',
'conference_chair'
]
],

[
'url'=>'/easychair/admin/conference-home/reviewer-sla',
'icon'=>'fa-solid fa-clock',
'label_key'=>'menu.reviewer_sla',
'label'=>'Reviewer SLA',
'roles'=>[
'super_admin',
'conference_chair',
'track_chair'
]
],

[
'url'=>'/easychair/admin/conference-home/track-ownership',
'icon'=>'fa-solid fa-sitemap',
'label_key'=>'menu.track_ownership',
'label'=>'Track Ownership',
'roles'=>[
'super_admin',
'conference_chair'
]
],

[
'url'=>'/easychair/admin/conference-home/governance-ops',
'icon'=>'fa-solid fa-shield-halved',
'label_key'=>'menu.governance_ops',
'label'=>'Governance Operations',
'roles'=>[
'super_admin',
'conference_chair'
]
],

[
'url'=>'/easychair/admin/conference-home/self-healing',
'icon'=>'fa-solid fa-screwdriver-wrench',
'label_key'=>'menu.governance_self_healing',
'label'=>'Self-Healing',
'roles'=>[
'super_admin',
'conference_chair'
]
],

[
'url'=>'/easychair/admin/conference-home/manual-track-assignment',
'icon'=>'fa-solid fa-diagram-project',
'label_key'=>'menu.manual_track_assignment',
'label'=>'Manual Track Assignment',
'roles'=>[
'super_admin',
'conference_chair'
]
],

[
'url'=>'/easychair/admin/conference-home/track-chair-governance',
'icon'=>'fa-solid fa-user-tie',
'label_key'=>'menu.track_chair_governance',
'label'=>'Track Chair Governance',
'roles'=>[
'super_admin',
'conference_chair'
]
],

[
'url'=>'/easychair/admin/conference-home/chair-capacity',
'icon'=>'fa-solid fa-gauge-high',
'label_key'=>'menu.chair_capacity',
'label'=>'Chair Capacity Planner',
'roles'=>['super_admin','conference_chair']
],

[
'url'=>'/easychair/admin/conference-home/governance-load-balancer',
'icon'=>'fa-solid fa-scale-balanced',
'label_key'=>'menu.governance_load_balancer',
'label'=>'Governance Load Balancer',
'roles'=>[
'super_admin',
'conference_chair'
]
],

[
'url'=>'/easychair/admin/conference-home/governance-recommendations',
'icon'=>'fa-solid fa-lightbulb',
'label_key'=>'menu.governance_recommendations',
'label'=>'Governance Recommendations',
'roles'=>[
'super_admin',
'conference_chair',
'admin'
]
],

[
'url'=>'/easychair/admin/conference-home/governance-automation',
'icon'=>'fa-solid fa-robot',
'label_key'=>'menu.governance_automation',
'label'=>'Governance Automation',
'roles'=>[
'super_admin',
'conference_chair',
'admin'
]
],

[
'url'=>'/easychair/admin/conference-home/governance-simulation',
'icon'=>'fa-solid fa-flask',
'label_key'=>'menu.governance_simulation',
'label'=>'Governance Simulation',
'roles'=>[
'super_admin',
'conference_chair',
'admin'
]
],

[
'url'=>'/easychair/admin/conference-home/governance-executive-board',
'icon'=>'fa-solid fa-building-columns',
'label_key'=>'menu.governance_executive_board',
'label'=>'Governance Executive Board',
'roles'=>[
'super_admin',
'conference_chair',
'admin'
]
],

[
'url'=>'/easychair/admin/conference-home/governance-decision-engine',
'icon'=>'fa-solid fa-gears',
'label_key'=>'menu.governance_decision_engine',
'label'=>'Governance Decision Engine',
'roles'=>[
'super_admin',
'conference_chair',
'admin'
]
],

[
'url'=>'/easychair/admin/conference-home/governance-approval-center',
'icon'=>'fa-solid fa-stamp',
'label_key'=>'menu.governance_approval_center',
'label'=>'Governance Approval Center',
'roles'=>[
'super_admin',
'conference_chair',
'admin'
]
],

[
'url'=>'/easychair/admin/conference-home/governance-execution-center',
'icon'=>'fa-solid fa-play',
'label_key'=>'menu.governance_execution_center',
'label'=>'Governance Execution Center',
'roles'=>[
'super_admin',
'conference_chair',
'admin'
]
],

[
'url'=>'/easychair/admin/conference-home/governance-observatory',
'icon'=>'fa-solid fa-telescope',
'label_key'=>'menu.governance_observatory',
'label'=>'Governance Observatory',
'roles'=>[
'super_admin',
'conference_chair',
'admin'
]
],


[
'url'=>'/easychair/admin/conference-home/governance-command-center',
'icon'=>'fa-solid fa-tower-broadcast',
'label_key'=>'menu.governance_command_center',
'label'=>'Governance Command Center',
'roles'=>[
'super_admin',
'conference_chair',
'admin'
]
],

[
'url'=>'/easychair/admin/conference-home/reviewer-governance',
'icon'=>'fa-solid fa-user-shield',
'label_key'=>'menu.reviewer_governance',
'label'=>'Reviewer Governance',
'roles'=>[
'super_admin',
'conference_chair',
'admin'
]
],

[
'url'=>'/easychair/admin/conference-home/review-load-balancer',
'icon'=>'fa-solid fa-scale-balanced',
'label_key'=>'menu.review_load_balancer',
'label'=>'Review Load Balancer',
'roles'=>[
'super_admin',
'conference_chair',
'admin'
]
],

[
'url'=>'/easychair/admin/conference-home/review-risk-intelligence',
'icon'=>'fa-solid fa-triangle-exclamation',
'label_key'=>'menu.review_risk_intelligence',
'label'=>'Review Risk Intelligence',
'roles'=>[
'super_admin',
'conference_chair',
'admin'
]
],

[
'url'=>'/easychair/admin/conference-home/track-risk-intelligence',
'icon'=>'fa-solid fa-chart-line',
'label_key'=>'menu.track_risk_intelligence',
'label'=>'Track Risk Intelligence',
'roles'=>[
'super_admin',
'conference_chair',
'admin'
]
],

[
'url'=>'/easychair/admin/conference-home/conference-health-engine',
'icon'=>'fa-solid fa-heart-pulse',
'label_key'=>'menu.conference_health_engine',
'label'=>'Conference Health Engine',
'roles'=>[
'super_admin',
'conference_chair',
'admin'
]
],

[
'url'=>'/easychair/admin/conference-home/executive-governance-cockpit',
'icon'=>'fa-solid fa-tower-observation',
'label_key'=>'menu.executive_governance_cockpit',
'label'=>'Executive Governance Cockpit',
'roles'=>[
'super_admin',
'conference_chair',
'org_admin',
'admin'
]
],

[
'url'=>'/easychair/admin/conference-home/governance-operations-center',
'icon'=>'fa-solid fa-sitemap',
'label_key'=>'menu.governance_operations_center',
'label'=>'Governance Operations Center',
'roles'=>[
'super_admin',
'conference_chair',
'org_admin',
'admin'
]
],

[
'url'=>'/easychair/admin/conference-home/portfolio-management',
'icon'=>'fa-solid fa-briefcase',
'label_key'=>'menu.portfolio_management',
'label'=>'Conference Portfolio Management',
'roles'=>[
'super_admin',
'org_admin',
'conference_chair',
'admin'
]
],

[
'url'=>'/easychair/admin/conference-home/organization-intelligence-hub',
'icon'=>'fa-solid fa-building',
'label_key'=>'menu.organization_intelligence_hub',
'label'=>'Organization Intelligence Hub',
'roles'=>[
'super_admin',
'org_admin',
'admin'
]
],

[
'url'=>'/easychair/admin/conference-home/platform-operations-command-center',
'icon'=>'fa-solid fa-satellite-dish',
'label_key'=>'menu.platform_operations_command_center',
'label'=>'Platform Operations Command Center',
'roles'=>[
'super_admin',
'org_admin',
'admin'
]
],

[
'url'=>'/easychair/admin/conference-home/governance-consolidation-engine',
'icon'=>'fa-solid fa-layer-group',
'label_key'=>'menu.governance_consolidation_engine',
'label'=>'Governance Consolidation Engine',
'roles'=>['super_admin','org_admin','conference_chair','admin']
],

[
'url'=>'/easychair/admin/conference-home/governance-automation-actions',
'icon'=>'fa-solid fa-bolt',
'label_key'=>'menu.governance_automation_actions',
'label'=>'Governance Automation Actions',
'roles'=>['super_admin','org_admin','conference_chair','admin']
],

[
'url'=>'/easychair/admin/conference-home/smart-reviewer-assignment-engine',
'icon'=>'fa-solid fa-user-check',
'label_key'=>'menu.smart_reviewer_assignment_engine',
'label'=>'Smart Reviewer Assignment Engine',
'roles'=>['super_admin','org_admin','conference_chair','admin']
],

[
'url'=>'/easychair/admin/conference-home/predictive-conference-risk-engine',
'icon'=>'fa-solid fa-chart-simple',
'label_key'=>'menu.predictive_conference_risk_engine',
'label'=>'Predictive Conference Risk Engine',
'roles'=>['super_admin','org_admin','conference_chair','admin']
],

[
'url'=>'/easychair/admin/conference-home/executive-ai-assistant',
'icon'=>'fa-solid fa-robot',
'label_key'=>'menu.executive_ai_assistant',
'label'=>'Executive AI Assistant',
'roles'=>['super_admin','org_admin','conference_chair','admin']
],


[
'url'=>'/easychair/admin/publication-integrity',
'icon'=>'fa-solid fa-shield-halved',
'label_key'=>'menu.publication_integrity',
'label'=>'Publication Integrity',
'roles'=>[
    'super_admin',
    'org_admin',
    'conference_chair',
    'admin'
],
],

[
'url'=>'/easychair/admin/conference-home/publication-integrity-monitor',
'icon'=>'fa-solid fa-shield-halved',
'label_key'=>'menu.publication_integrity_monitor',
'label'=>'Publication Integrity Monitor',
'roles'=>[
    'super_admin',
    'org_admin',
    'conference_chair',
    'admin'
],
],

[
'url'=>'/easychair/admin/conference-home/production-operations-center',
'icon'=>'fa-solid fa-industry',
'label_key'=>'menu.production_operations_center',
'label'=>'Production Operations Center',
'roles'=>[
'super_admin',
'org_admin',
'conference_chair',
'admin'
],
],

[
'url'=>'/easychair/admin/conference-home/issue-builder-wizard',
'icon'=>'fa-solid fa-book-open',
'label_key'=>'menu.issue_builder_wizard',
'label'=>'Issue Builder Wizard',
'roles'=>[
    'super_admin',
    'org_admin',
    'conference_chair',
    'admin'
],
],

[
'url'=>'/easychair/admin/conference-home/doi-generator',
'icon'=>'fa-solid fa-link',
'label_key'=>'menu.doi_generator',
'label'=>'DOI Generator',
'roles'=>[
'super_admin',
'org_admin',
'conference_chair',
'admin'
],
],

[
'url'=>'/easychair/admin/conference-home/proceedings-export-center',
'icon'=>'fa-solid fa-file-export',
'label_key'=>'menu.proceedings_export_center',
'label'=>'Proceedings Export Center',
'roles'=>[
'super_admin',
'org_admin',
'conference_chair',
'admin'
],
],

[
'url'=>'/easychair/admin/conference-home/publication-analytics',
'icon'=>'fa-solid fa-chart-line',
'label_key'=>'menu.publication_analytics',
'label'=>'Publication Analytics',
'roles'=>[
'super_admin',
'org_admin',
'conference_chair',
'admin'
],
],

[
'url'=>'/easychair/admin/conference-home/crossref-deposit-center',
'icon'=>'fa-solid fa-file-signature',
'label_key'=>'menu.crossref_deposit_center',
'label'=>'CrossRef Deposit Center',
'roles'=>[
'super_admin',
'org_admin',
'conference_chair',
'admin'
],
],

[
'url'=>'/easychair/admin/conference-home/indexing-readiness-center',
'icon'=>'fa-solid fa-magnifying-glass-chart',
'label_key'=>'menu.indexing_readiness_center',
'label'=>'Indexing Readiness Center',
'roles'=>[
'super_admin',
'org_admin',
'conference_chair',
'admin'
],
],

[
'url'=>'/easychair/admin/conference-home/publication-operations-center',
'icon'=>'fa-solid fa-book-open-reader',
'label_key'=>'menu.publication_operations_center',
'label'=>'Publication Operations Center',
'roles'=>['super_admin','org_admin','conference_chair','admin'],
],
/*
[
'url'=>'/easychair/admin/conference-home/publication-repair-center',
'icon'=>'fa-solid fa-screwdriver-wrench',
'label_key'=>'menu.publication_repair_center',
'label'=>'Publication Repair Center',
'roles'=>[
'super_admin',
'org_admin',
'conference_chair',
'admin'
],
],

[
'url'=>'/easychair/admin/conference-home/publication-workflow-timeline',
'icon'=>'fa-solid fa-timeline',
'label_key'=>'menu.publication_workflow_timeline',
'label'=>'Publication Workflow Timeline',
'roles'=>[
'super_admin',
'org_admin',
'conference_chair',
'admin'
],
],
*/
[
'url'=>'/easychair/admin/conference-home/publication-kpi-dashboard',
'icon'=>'fa-solid fa-chart-line',
'label_key'=>'menu.publication_kpi_dashboard',
'label'=>'Publication KPI Dashboard',
'roles'=>['super_admin','org_admin','conference_chair','admin'],
],

[
'url'=>'/easychair/admin/conference-home/doi-management-center',
'icon'=>'fa-solid fa-link',
'label_key'=>'menu.doi_management_center',
'label'=>'DOI Management Center',
'roles'=>['super_admin','org_admin','conference_chair','admin'],
],

[
'url'=>'/easychair/admin/conference-home/crossref-xml-export-center',
'icon'=>'fa-solid fa-file-code',
'label_key'=>'menu.crossref_xml_export_center',
'label'=>'CrossRef XML Export Center',
'roles'=>[
'super_admin',
'org_admin',
'conference_chair',
'admin'
],
],

[
'url'=>'/easychair/admin/conference-home/publication-analytics-warehouse',
'icon'=>'fa-solid fa-chart-pie',
'label_key'=>'menu.publication_analytics_warehouse',
'label'=>'Publication Analytics Warehouse',
'roles'=>[
'super_admin',
'org_admin',
'conference_chair',
'admin'
],
],

[
'url'=>'/easychair/admin/conference-home/research-intelligence-center',
'icon'=>'fa-solid fa-brain',
'label_key'=>'menu.research_intelligence_center',
'label'=>'Research Intelligence Center',
'roles'=>[
'super_admin',
'org_admin',
'conference_chair',
'admin'
],
],

[
'url'=>'/easychair/admin/conference-home/reviewer-intelligence-center',
'icon'=>'fa-solid fa-user-check',
'label_key'=>'menu.reviewer_intelligence_center',
'label'=>'Reviewer Intelligence Center',
'roles'=>[
'super_admin',
'org_admin',
'conference_chair',
'admin'
],
],

[
'url'=>'/easychair/admin/conference-home/track-chair-intelligence-center',
'icon'=>'fa-solid fa-diagram-project',
'label_key'=>'menu.track_chair_intelligence_center',
'label'=>'Track Chair Intelligence Center',
'roles'=>[
'super_admin',
'org_admin',
'conference_chair',
'admin'
],
],

[
'url'=>'/easychair/admin/conference-home/conference-command-center',
'icon'=>'fa-solid fa-gauge-high',
'label_key'=>'menu.conference_command_center',
'label'=>'Conference Command Center',
'roles'=>[
'super_admin',
'org_admin',
'conference_chair',
'admin'
],
],

[
'url'=>'/easychair/admin/conference-home/ai-conference-advisor',
'icon'=>'fa-solid fa-wand-magic-sparkles',
'label_key'=>'menu.ai_conference_advisor',
'label'=>'AI Conference Advisor',
'roles'=>[
'super_admin',
'org_admin',
'conference_chair',
'admin'
],
],

[
'url'=>'/easychair/admin/conference-home/conference-risk-radar',
'icon'=>'fa-solid fa-triangle-exclamation',
'label_key'=>'menu.conference_risk_radar',
'label'=>'Conference Risk Radar',
'roles'=>[
'super_admin',
'org_admin',
'conference_chair',
'admin'
],
],

[
'url'=>'/easychair/admin/conference-home/conference-benchmark-center',
'icon'=>'fa-solid fa-ranking-star',
'label_key'=>'menu.conference_benchmark_center',
'label'=>'Conference Benchmark Center',
'roles'=>[
'super_admin',
'org_admin',
'conference_chair',
'admin'
],
],

[
'url'=>'/easychair/admin/conference-home/global-operations-control-tower',
'icon'=>'fa-solid fa-tower-broadcast',
'label_key'=>'menu.global_operations_control_tower',
'label'=>'Global Operations Control Tower',
'roles'=>[
'super_admin',
'org_admin'
],
],

[
'url'=>'/easychair/admin/conference-home/enterprise-governance-control-center',
'icon'=>'fa-solid fa-shield-halved',
'label_key'=>'menu.enterprise_governance_control_center',
'label'=>'Enterprise Governance Control Center',
'roles'=>[
'super_admin',
'org_admin'
],
],

[
'url'=>'/easychair/admin/conference-home/platform-security-operations-center',
'icon'=>'fa-solid fa-user-shield',
'label_key'=>'menu.platform_security_operations_center',
'label'=>'Platform Security Operations Center',
'roles'=>[
'super_admin',
'org_admin'
],
],

[
'url'=>'/easychair/admin/conference-home/enterprise-audit-activity-center',
'icon'=>'fa-solid fa-clock-rotate-left',
'label_key'=>'menu.enterprise_audit_activity_center',
'label'=>'Enterprise Audit & Activity Intelligence Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/user-access-intelligence-center',
'icon'=>'fa-solid fa-users-gear',
'label_key'=>'menu.user_access_intelligence_center',
'label'=>'User Access Intelligence Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/platform-data-quality-center',
'icon'=>'fa-solid fa-database',
'label_key'=>'menu.platform_data_quality_center',
'label'=>'Platform Data Quality Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/platform-performance-capacity-center',
'icon'=>'fa-solid fa-gauge-high',
'label_key'=>'menu.platform_performance_capacity_center',
'label'=>'Platform Performance & Capacity Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/platform-growth-trend-analytics-center',
'icon'=>'fa-solid fa-chart-line',
'label_key'=>'menu.platform_growth_trend_analytics_center',
'label'=>'Platform Growth & Trend Analytics Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/executive-kpi-command-center',
'icon'=>'fa-solid fa-chart-pie',
'label_key'=>'menu.executive_kpi_command_center',
'label'=>'Executive KPI Command Center',
'roles'=>[
'super_admin',
'org_admin'
],
],

[
'url'=>'/easychair/admin/conference-home/ai-governance-decision-intelligence-center',
'icon'=>'fa-solid fa-brain',
'label_key'=>'menu.ai_governance_decision_intelligence_center',
'label'=>'AI Governance & Decision Intelligence Center',
'roles'=>[
'super_admin',
'org_admin'
],
],

[
'url'=>'/easychair/admin/conference-home/strategic-planning-forecast-intelligence-center',
'icon'=>'fa-solid fa-binoculars',
'label_key'=>'menu.strategic_planning_forecast_intelligence_center',
'label'=>'Strategic Planning & Forecast Intelligence Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/enterprise-workflow-optimization-center',
'icon'=>'fa-solid fa-diagram-project',
'label_key'=>'menu.enterprise_workflow_optimization_center',
'label'=>'Enterprise Workflow Optimization Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/research-impact-publication-intelligence-center',
'icon'=>'fa-solid fa-book-open-reader',
'label_key'=>'menu.research_impact_publication_intelligence_center',
'label'=>'Research Impact & Publication Intelligence Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/enterprise-compliance-accreditation-intelligence-center',
'icon'=>'fa-solid fa-certificate',
'label_key'=>'menu.enterprise_compliance_accreditation_intelligence_center',
'label'=>'Enterprise Compliance & Accreditation Intelligence Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/institutional-benchmarking-excellence-intelligence-center',
'icon'=>'fa-solid fa-trophy',
'label_key'=>'menu.institutional_benchmarking_excellence_intelligence_center',
'label'=>'Institutional Benchmarking & Excellence Intelligence Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/enterprise-risk-resilience-intelligence-center',
'icon'=>'fa-solid fa-shield-heart',
'label_key'=>'menu.enterprise_risk_resilience_intelligence_center',
'label'=>'Enterprise Risk & Resilience Intelligence Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/digital-transformation-innovation-intelligence-center',
'icon'=>'fa-solid fa-lightbulb',
'label_key'=>'menu.digital_transformation_innovation_intelligence_center',
'label'=>'Digital Transformation & Innovation Intelligence Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/enterprise-sustainability-continuous-improvement-center',
'icon'=>'fa-solid fa-leaf',
'label_key'=>'menu.enterprise_sustainability_continuous_improvement_center',
'label'=>'Enterprise Sustainability & Continuous Improvement Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/enterprise-knowledge-organizational-intelligence-center',
'icon'=>'fa-solid fa-brain',
'label_key'=>'menu.enterprise_knowledge_organizational_intelligence_center',
'label'=>'Enterprise Knowledge & Organizational Intelligence Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/enterprise-reviewer-sustainability-center',
'icon'=>'fa-solid fa-user-clock',
'label_key'=>'menu.enterprise_reviewer_sustainability_center',
'label'=>'Enterprise Reviewer Sustainability Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/enterprise-publication-sustainability-editorial-intelligence-center',
'icon'=>'fa-solid fa-book-open',
'label_key'=>'menu.enterprise_publication_sustainability_editorial_intelligence_center',
'label'=>'Enterprise Publication Sustainability & Editorial Intelligence Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/enterprise-conference-performance-intelligence-center',
'icon'=>'fa-solid fa-chart-line',
'label_key'=>'menu.enterprise_conference_performance_intelligence_center',
'label'=>'Enterprise Conference Performance Intelligence Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/enterprise-executive-command-center',
'icon'=>'fa-solid fa-crown',
'label_key'=>'menu.enterprise_executive_command_center',
'label'=>'Enterprise Executive Command Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/enterprise-board-directors-intelligence-center',
'icon'=>'fa-solid fa-building-columns',
'label_key'=>'menu.enterprise_board_directors_intelligence_center',
'label'=>'Enterprise Board of Directors Intelligence Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/enterprise-strategic-planning-institutional-foresight-center',
'icon'=>'fa-solid fa-binoculars',
'label_key'=>'menu.enterprise_strategic_planning_institutional_foresight_center',
'label'=>'Enterprise Strategic Planning & Institutional Foresight Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/enterprise-institutional-digital-twin-center',
'icon'=>'fa-solid fa-cubes',
'label_key'=>'menu.enterprise_institutional_digital_twin_center',
'label'=>'Enterprise Institutional Digital Twin Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/enterprise-autonomous-operations-control-center',
'icon'=>'fa-solid fa-satellite-dish',
'label_key'=>'menu.enterprise_autonomous_operations_control_center',
'label'=>'Enterprise Autonomous Operations Control Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/enterprise-ai-governance-decision-intelligence-center',
'icon'=>'fa-solid fa-brain',
'label_key'=>'menu.enterprise_ai_governance_decision_intelligence_center',
'label'=>'Enterprise AI Governance & Decision Intelligence Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/enterprise-global-university-ranking-research-impact-intelligence-center',
'icon'=>'fa-solid fa-ranking-star',
'label_key'=>'menu.enterprise_global_university_ranking_research_impact_intelligence_center',
'label'=>'Enterprise Global University Ranking & Research Impact Intelligence Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/enterprise-research-excellence-accreditation-intelligence-center',
'icon'=>'fa-solid fa-award',
'label_key'=>'menu.enterprise_research_excellence_accreditation_intelligence_center',
'label'=>'Enterprise Research Excellence & Accreditation Intelligence Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/enterprise-academic-reputation-global-visibility-intelligence-center',
'icon'=>'fa-solid fa-globe',
'label_key'=>'menu.enterprise_academic_reputation_global_visibility_intelligence_center',
'label'=>'Enterprise Academic Reputation & Global Visibility Intelligence Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/enterprise-research-ecosystem-collaboration-intelligence-center',
'icon'=>'fa-solid fa-network-wired',
'label_key'=>'menu.enterprise_research_ecosystem_collaboration_intelligence_center',
'label'=>'Enterprise Research Ecosystem & Collaboration Intelligence Center',
'roles'=>['super_admin','org_admin'],
],

[
'url'=>'/easychair/admin/conference-home/enterprise-institutional-sustainability-growth-intelligence-center',
'icon'=>'fa-solid fa-seedling',
'label_key'=>'menu.enterprise_institutional_sustainability_growth_intelligence_center',
'label'=>'Enterprise Institutional Sustainability & Growth Intelligence Center',
'roles'=>['super_admin','org_admin'],
],





            ]],

            ['group'=>'submissions','label_key'=>'menu.submissions','label'=>'Submissions','items'=>[
                ['url'=>'/easychair/admin/submission-search','icon'=>'fa-magnifying-glass','label_key'=>'menu.submission_search','label'=>'Submission Search','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','track_chair','section_editor']],
                ['url'=>'/easychair/admin/submissions','icon'=>'fa-inbox','label_key'=>'menu.submissions','label'=>'Submissions','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','track_chair','section_editor']],
                ['url'=>'/easychair/admin/decisions','icon'=>'fa-gavel','label_key'=>'menu.decisions','label'=>'Decisions','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair']],
                ['url'=>'/easychair/admin/production','icon'=>'fa-industry','label_key'=>'menu.production','label'=>'Production / Camera-ready','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','organizer']],
                ['url'=>'/easychair/admin/issues','icon'=>'fa-book','label_key'=>'menu.issues','label'=>'Issues / Proceedings','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','organizer']],
            ]],
            ['group'=>'reviewing','label_key'=>'menu.reviewing','label'=>'Reviewing','items'=>[
                ['url'=>'/easychair/admin/reviewer-assignments','icon'=>'fa-user-plus','label_key'=>'menu.reviewer_assignment','label'=>'Reviewer Assignment','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','track_chair','section_editor']],
                ['url'=>'/easychair/admin/reviewers','icon'=>'fa-user-check','label_key'=>'menu.reviewers','label'=>'Reviewers','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','track_chair']],
                ['url'=>'/easychair/admin/reviewer-expertise','icon'=>'fa-brain','label_key'=>'menu.reviewer_expertise','label'=>'Reviewer Expertise','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','track_chair']],
                ['url'=>'/easychair/admin/review-form','icon'=>'fa-clipboard-list','label_key'=>'menu.review_form','label'=>'Review Form','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair']],
                ['url'=>'/easychair/admin/reviewer-analytics','icon'=>'fa-trophy','label_key'=>'menu.reviewer_analytics','label'=>'Reviewer Analytics','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','track_chair']],

['url'=>'/easychair/admin/reviewer-capacity',
'icon'=>'fa-chart-area',
'label'=>'Reviewer Capacity',
'label_key'=>'menu.reviewer_capacity',
'roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','track_chair']],


['url'=>'/easychair/admin/executive-briefing',
'icon'=>'fa-file-lines',
'label_key'=>'menu.executive_briefing',
'label'=>'Executive Briefing',
'roles'=>['superadmin','super_admin','org_admin','admin']],


['url'=>'/easychair/my-intelligence',
'icon'=>'fa-brain',
'label_key'=>'menu.my_intelligence',
'label'=>'My Intelligence Hub',
'roles'=>['reviewer']],


['url'=>'/easychair/admin/intelligence-hub',
'icon'=>'fa-brain',
'label_key'=>'menu.intelligence_hub',
'label'=>'Unified Intelligence Hub',
'roles'=>['superadmin','super_admin','org_admin','admin']],


['url'=>'/easychair/admin/executive-command-center',
'icon'=>'fa-gauge-high',
'label_key'=>'menu.executive_command_center',
'label'=>'Executive Command Center',
'roles'=>['superadmin','super_admin','org_admin','admin']],



['url'=>'/easychair/admin/resource-optimizer',
'icon'=>'fa-share-nodes',
'label_key'=>'menu.resource_optimizer',
'label'=>'Resource Optimizer',
'roles'=>['superadmin','super_admin','org_admin','admin']],


['url'=>'/easychair/admin/reviewer-academy',
'icon'=>'fa-graduation-cap',
'label_key'=>'menu.reviewer_academy',
'label'=>'Reviewer Academy',
'roles'=>['superadmin','super_admin','org_admin','admin']],

['url'=>'/easychair/admin/reviewer-certification-promotions',
'icon'=>'fa-certificate',
'label_key'=>'menu.reviewer_certification_promotions',
'label'=>'Reviewer Certification',
'roles'=>['superadmin','super_admin','org_admin','admin']],

['url'=>'/easychair/admin/reviewer-retention-intelligence',
'icon'=>'fa-heart',
'label_key'=>'menu.reviewer_retention',
'label'=>'Reviewer Retention',
'roles'=>['superadmin','super_admin','org_admin','admin']],



['url'=>'/easychair/admin/reviewer-lifetime-achievement',
'icon'=>'fa-medal',
'label_key'=>'menu.reviewer_lifetime_achievement',
'label'=>'Lifetime Achievement',
'roles'=>['superadmin','super_admin','org_admin','admin']],

['url'=>'/easychair/admin/reviewer-ecosystem',
'icon'=>'fa-robot',
'label_key'=>'menu.reviewer_ecosystem',
'label'=>'Reviewer Ecosystem',
'roles'=>['superadmin','super_admin','org_admin','admin']],

['url'=>'/easychair/reviewer/career-path',
'icon'=>'fa-road',
'label_key'=>'menu.reviewer_career_path',
'label'=>'Reviewer Career Path',
'roles'=>['reviewer','superadmin','super_admin','admin']],

['url'=>'/easychair/admin/reviewer-digital-twins',
'icon'=>'fa-microchip',
'label_key'=>'menu.reviewer_digital_twins',
'label'=>'Reviewer Digital Twins',
'roles'=>['superadmin','super_admin','org_admin','admin']],


['url'=>'/easychair/admin/global-expert-discovery',
'icon'=>'fa-globe',
'label_key'=>'menu.global_expert_discovery',
'label'=>'Global Expert Discovery',
'roles'=>['superadmin','super_admin','org_admin','admin']],


['url'=>'/easychair/admin/reviewer-leadership-succession',
'icon'=>'fa-chess-king',
'label_key'=>'menu.reviewer_leadership_succession',
'label'=>'Leadership Succession',
'roles'=>['superadmin','super_admin','org_admin','admin']],


['url'=>'/easychair/admin/reviewer-reputation-network',
'icon'=>'fa-shield-halved',
'label_key'=>'menu.reviewer_reputation_network',
'label'=>'Reviewer Reputation',
'roles'=>['superadmin','super_admin','org_admin','admin']],


['url'=>'/easychair/admin/reviewer-exchange',
'icon'=>'fa-right-left',
'label_key'=>'menu.reviewer_exchange',
'label'=>'Reviewer Exchange',
'roles'=>['superadmin','super_admin','org_admin','admin']],


['url'=>'/easychair/admin/reviewer-marketplace',
'icon'=>'fa-store',
'label_key'=>'menu.reviewer_marketplace',
'label'=>'Reviewer Marketplace',
'roles'=>['superadmin','super_admin','org_admin','admin']],

['url'=>'/easychair/admin/reviewer-rewards',
'icon'=>'fa-trophy',
'label_key'=>'menu.reviewer_rewards',
'label'=>'Reviewer Rewards',
'roles'=>['superadmin','super_admin','org_admin','admin']],

['url'=>'/easychair/admin/portfolio-intelligence',
'icon'=>'fa-layer-group',
'label_key'=>'menu.portfolio_intelligence',
'label'=>'Portfolio Intelligence',
'roles'=>['superadmin','super_admin','org_admin','admin']],


['url'=>'/easychair/admin/strategic-optimization',
'icon'=>'fa-chess-queen',
'label_key'=>'menu.strategic_optimization',
'label'=>'Strategic Optimization',
'roles'=>['superadmin','super_admin','org_admin','admin','conference_chair']],


['url'=>'/easychair/admin/self-healing',
'icon'=>'fa-heart-circle-plus',
'label_key'=>'menu.self_healing',
'label'=>'Self Healing Engine',
'roles'=>['superadmin','super_admin','org_admin','admin','conference_chair']],


['url'=>'/easychair/admin/execution-engine',
'icon'=>'fa-play-circle',
'label_key'=>'menu.execution_engine',
'label'=>'Execution Engine',
'roles'=>['superadmin','super_admin','org_admin','admin','conference_chair']],


['url'=>'/easychair/admin/action-approval-engine',
'icon'=>'fa-check-double',
'label_key'=>'menu.action_approval_engine',
'label'=>'Action Approval Engine',
'roles'=>['superadmin','super_admin','org_admin','admin','conference_chair']],


['url'=>'/easychair/admin/review-orchestration',
'icon'=>'fa-gears',
'label_key'=>'menu.review_orchestration',
'label'=>'Review Orchestration',
'roles'=>['superadmin','super_admin','org_admin','admin','conference_chair']],


['url'=>'/easychair/admin/ai-decision-board',
'icon'=>'fa-brain',
'label_key'=>'menu.ai_decision_board',
'label'=>'AI Decision Board',
'roles'=>['superadmin','super_admin','org_admin','admin','conference_chair']],


['url'=>'/easychair/admin/predictive-intelligence',
'icon'=>'fa-chart-line',
'label_key'=>'menu.predictive_intelligence',
'label'=>'Predictive Intelligence',
'roles'=>['superadmin','super_admin','org_admin','admin','conference_chair']],


['url'=>'/easychair/admin/ai-operations-center',
'icon'=>'fa-robot',
'label_key'=>'menu.ai_operations_center',
'label'=>'AI Operations Center',
'roles'=>['superadmin','super_admin','org_admin','admin','conference_chair']],


['url'=>'/easychair/admin/conference-health',
'icon'=>'fa-heart-pulse',
'label_key'=>'menu.conference_health',
'label'=>'Conference Health',
'roles'=>['superadmin','super_admin','org_admin','admin','conference_chair']],


['url'=>'/easychair/admin/track-intelligence',
'icon'=>'fa-sitemap',
'label_key'=>'menu.track_intelligence',
'label'=>'Track Intelligence',
'roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','track_chair']],


['url'=>'/easychair/admin/reviewer-network-intelligence',
'icon'=>'fa-project-diagram',
'label_key'=>'menu.reviewer_network_intelligence',
'label'=>'Reviewer Network Intelligence',
'roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','track_chair']],


['url'=>'/easychair/admin/reviewer-recommendations',
'icon'=>'fa-lightbulb',
'label_key'=>'menu.reviewer_recommendations',
'label'=>'Reviewer Recommendations',
'roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','track_chair']],


['url'=>'/easychair/admin/reviewer-assignment-intelligence',
'icon'=>'fa-brain',
'label_key'=>'menu.reviewer_assignment_intelligence',
'label'=>'Assignment Intelligence',
'roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','track_chair']],


['url'=>'/easychair/admin/review-escalations',
'icon'=>'fa-bell',
'label_key'=>'menu.review_escalations',
'label'=>'Review Escalations',
'roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','track_chair']],


['url'=>'/easychair/admin/review-deadline-intelligence',
'icon'=>'fa-hourglass-half',
'label_key'=>'menu.review_deadline_intelligence',
'label'=>'Review Deadline Intelligence',
'roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','track_chair']],


['url'=>'/easychair/admin/reviewer-conflicts',
'icon'=>'fa-triangle-exclamation',
'label_key'=>'menu.reviewer_conflicts',
'label'=>'Reviewer Conflicts',
'roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','track_chair']],

['url'=>'/easychair/admin/reviewer-certificates','icon'=>'fa-award','label_key'=>'menu.reviewer_certificates','label'=>'Reviewer Certificates','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair']],

['url'=>'/easychair/admin/reviewer-recognition','icon'=>'fa-trophy','label_key'=>'menu.reviewer_recognition','label'=>'Reviewer Recognition','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair']],

['url'=>'/easychair/admin/review-monitor','icon'=>'fa-chart-line','label_key'=>'menu.review_monitor','label'=>'Review Monitor','roles'=>['superadmin','super_admin','super_admin','org_admin','admin','conference_chair','track_chair']],

]],

[
    'group' => 'reviewer',

    'label_key' => 'menu.reviewer_workspace',

    'label' => 'Reviewer Workspace',

    'items' => [

        [
            'url'=>'/easychair/reviewer/dashboard',
            'icon'=>'fa-gauge-high',
            'label_key'=>'menu.reviewer_dashboard',
            'label'=>'Reviewer Dashboard',
            'roles'=>['superadmin','super_admin','reviewer','admin']
        ],

        [
            'url'=>'/easychair/reviewer/assignments',
            'icon'=>'fa-clipboard-check',
            'label_key'=>'menu.reviewer_assignments',
            'label'=>'Review Assignments',
            'roles'=>['superadmin','super_admin','reviewer','admin']
        ],

        [
            'url'=>'/easychair/reviewer/history',
            'icon'=>'fa-clock-rotate-left',
            'label_key'=>'menu.reviewer_history',
            'label'=>'Review History',
            'roles'=>['superadmin','super_admin','reviewer','admin']
        ],

        [
            'url'=>'/easychair/reviewer/reputation',
            'icon'=>'fa-shield-halved',
            'label_key'=>'menu.reviewer_reputation',
            'label'=>'My Reputation',
            'roles'=>['superadmin','super_admin','reviewer','admin']
        ],

        [
            'url'=>'/easychair/reviewer/career-path',
            'icon'=>'fa-road',
            'label_key'=>'menu.reviewer_career_path',
            'label'=>'My Career Path',
            'roles'=>['superadmin','super_admin','reviewer','admin']
        ],

        [
            'url'=>'/easychair/reviewer/digital-twin',
            'icon'=>'fa-microchip',
            'label_key'=>'menu.reviewer_digital_twin',
            'label'=>'My Digital Twin',
            'roles'=>['superadmin','super_admin','reviewer','admin']
        ],

        [
            'url'=>'/easychair/reviewer/awards',
            'icon'=>'fa-trophy',
            'label_key'=>'menu.reviewer_awards',
            'label'=>'My Awards & Recognition',
            'roles'=>['superadmin','super_admin','reviewer','admin']
        ],

        [
            'url'=>'/easychair/reviewer/mentorship',
            'icon'=>'fa-people-arrows',
            'label_key'=>'menu.reviewer_mentorship',
            'label'=>'My Mentorship Center',
            'roles'=>['superadmin','super_admin','reviewer','admin']
        ],

        [
            'url'=>'/easychair/reviewer/certifications',
            'icon'=>'fa-certificate',
            'label_key'=>'menu.reviewer_certifications',
            'label'=>'My Certifications & Academy',
            'roles'=>['superadmin','super_admin','reviewer','admin']
        ],

        [
            'url'=>'/easychair/reviewer/leadership',
            'icon'=>'fa-chess-king',
            'label_key'=>'menu.reviewer_leadership',
            'label'=>'My Leadership Dashboard',
            'roles'=>['superadmin','super_admin','reviewer','admin']
        ],

        [
            'url'=>'/easychair/reviewer/marketplace',
            'icon'=>'fa-store',
            'label_key'=>'menu.reviewer_marketplace_profile',
            'label'=>'Reviewer Marketplace',
            'roles'=>['superadmin','super_admin','reviewer','admin']
        ],

        [
            'url'=>'/easychair/reviewer/exchange',
            'icon'=>'fa-right-left',
            'label_key'=>'menu.reviewer_exchange_opportunities',
            'label'=>'Reviewer Exchange Opportunities',
            'roles'=>['superadmin','super_admin','reviewer','admin']
        ],

        [
            'url'=>'/easychair/reviewer/hall-of-fame',
            'icon'=>'fa-crown',
            'label_key'=>'menu.reviewer_hall_of_fame',
            'label'=>'Reviewer Hall Of Fame',
            'roles'=>['superadmin','super_admin','reviewer','admin']
        ],

        [
            'url'=>'/easychair/reviewer/development-center',
            'icon'=>'fa-chart-line',
            'label_key'=>'menu.development_center',
            'label'=>'My Development Center',
            'roles'=>['superadmin','super_admin','reviewer','admin']
        ]

    ]
],



            ['group'=>'workflow','label_key'=>'menu.workflow','label'=>'Workflow','items'=>[
                ['url'=>'/easychair/admin/workflow','icon'=>'fa-diagram-project','label_key'=>'menu.workflow','label'=>'Workflow','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair']],
                ['url'=>'/easychair/admin/submission-stage-rules','icon'=>'fa-list-ol','label_key'=>'menu.submission_stage_rules','label'=>'Submission Stage Rules','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair']],
                ['url'=>'/easychair/admin/workflow-notifications','icon'=>'fa-bell','label_key'=>'menu.workflow_notifications','label'=>'Workflow Notifications','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair']],
            ]],
            ['group'=>'email','label_key'=>'menu.email_system','label'=>'Mail & System','items'=>[
                ['url'=>'/easychair/admin/conference-mail','icon'=>'fa-envelope-circle-check','label_key'=>'menu.conference_mail','label'=>'Conference Mail','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair']],
                ['url'=>'/easychair/admin/email-templates','icon'=>'fa-envelope-open-text','label_key'=>'menu.email_templates','label'=>'Email Templates','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair']],
                ['url'=>'/easychair/admin/org-smtp','icon'=>'fa-server','label_key'=>'menu.org_smtp','label'=>'Organization SMTP','roles'=>['superadmin','super_admin','org_admin','admin']],
                ['url'=>'/easychair/admin/test-email','icon'=>'fa-paper-plane','label_key'=>'menu.test_email','label'=>'Test Email','roles'=>['superadmin','super_admin','org_admin','admin']],
                ['url'=>'/easychair/admin/notification-broadcast','icon'=>'fa-bullhorn','label_key'=>'menu.notification_broadcast','label'=>'Notification Broadcast','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','organizer']],
                ['url'=>'/easychair/admin/notification-digest','icon'=>'fa-newspaper','label_key'=>'menu.notification_digest','label'=>'Notification Digest','roles'=>['superadmin','super_admin','org_admin','admin']],
                ['url'=>'/easychair/admin/notification-audit','icon'=>'fa-bell-circle-check','label_key'=>'menu.notification_audit','label'=>'Notification Audit','roles'=>['superadmin','super_admin','org_admin','admin']],
            ]],
 /*           ['group'=>'rbac','label_key'=>'menu.rbac','label'=>'Users & Permissions','items'=>[
                ['url'=>'/easychair/admin/users','icon'=>'fa-users','label_key'=>'menu.users','label'=>'Users','roles'=>['superadmin','super_admin','org_admin','admin']],
                ['url'=>'/easychair/admin/roles','icon'=>'fa-user-shield','label_key'=>'menu.roles','label'=>'Roles','roles'=>['superadmin','super_admin']],
                ['url'=>'/easychair/admin/conference-role-permissions','icon'=>'fa-user-lock','label_key'=>'menu.conference_role_permissions','label'=>'Conference Role Permissions','roles'=>['superadmin','super_admin','org_admin','admin']],
                ['url'=>'/easychair/admin/conference-business-permissions','icon'=>'fa-shield-halved','label_key'=>'menu.conference_business_permissions','label'=>'Conference Business Permissions','roles'=>['superadmin','super_admin','org_admin','admin']],
                ['url'=>'/easychair/admin/custom-rights','icon'=>'fa-key','label_key'=>'menu.custom_rights','label'=>'Custom Rights','roles'=>['superadmin','super_admin']],
                ['url'=>'/easychair/admin/rbac-scope','icon'=>'fa-copy','label_key'=>'menu.rbac_scope','label'=>'RBAC Scope Manager','roles'=>['superadmin','super_admin','org_admin','admin']],
                ['url'=>'/easychair/admin/rbac-matrix','icon'=>'fa-sliders','label_key'=>'menu.rbac_matrix','label'=>'RBAC Matrix','roles'=>['superadmin','super_admin']],
            ]], */

[
    'group' => 'rbac',

    'label_key' => 'menu.rbac',

    'label' => 'Users & Permissions',

    'items' => [

        [
            'url' => '/easychair/admin/users',
            'icon' => 'fa-users',
            'label_key' => 'menu.users',
            'label' => 'Users',
            'roles' => ['superadmin','super_admin','org_admin','admin']
        ],

        [
            'url' => '/easychair/admin/roles',
            'icon' => 'fa-user-shield',
            'label_key' => 'menu.roles',
            'label' => 'Roles',
            'roles' => ['superadmin','super_admin']
        ],

[
    'url' => '/easychair/admin/security',
    'icon' => 'fa-shield',
    'label' => 'Security Monitor',
    'label_key' => 'menu.security_monitor',
    'roles' => ['superadmin','super_admin']
],

        [
            'url' => '/easychair/admin/conference-role-permissions',
            'icon' => 'fa-user-lock',
            'label_key' => 'menu.conference_role_permissions',
            'label' => 'Conference Role Permissions',
            'roles' => ['superadmin','super_admin','org_admin','admin','conference_chair']
        ],

        [
            'url' => '/easychair/admin/conference-business-permissions',
            'icon' => 'fa-shield-halved',
            'label_key' => 'menu.conference_business_permissions',
            'label' => 'Conference Business Permissions',
            'roles' => ['superadmin','super_admin','org_admin','admin','conference_chair']
        ],


        [
            'url' => '/easychair/admin/track-chairs',
            'icon' => 'fa-user-tie',
            'label_key' => 'menu.track_chairs',
            'label' => 'Track Chairs',
            'roles' => [
                'superadmin',
                'super_admin',
                'org_admin',
                'admin',
                'conference_chair'
            ]
        ],


        [
            'url' => '/easychair/admin/custom-rights',
            'icon' => 'fa-key',
            'label_key' => 'menu.custom_rights',
            'label' => 'Custom Rights',
            'roles' => ['superadmin','super_admin']
        ],

        [
            'url' => '/easychair/admin/rbac-scope',
            'icon' => 'fa-copy',
            'label_key' => 'menu.rbac_scope',
            'label' => 'RBAC Scope Manager',
            'roles' => ['superadmin','super_admin','org_admin','admin']
        ],

        [
            'url' => '/easychair/admin/rbac-matrix',
            'icon' => 'fa-sliders',
            'label_key' => 'menu.rbac_matrix',
            'label' => 'RBAC Matrix',
            'roles' => ['superadmin','super_admin']
        ],




    ]
],

            ['group'=>'settings','label_key'=>'menu.settings','label'=>'Settings','items'=>[
                ['url'=>'/easychair/admin/dictionary','icon'=>'fa-language','label_key'=>'menu.dictionary','label'=>'Dictionary','roles'=>['superadmin','super_admin']],
                ['url'=>'/easychair/admin/dictionary-scan','icon'=>'fa-magnifying-glass','label_key'=>'menu.dictionary_scan','label'=>'Dictionary Scanner','roles'=>['superadmin','super_admin']],
                ['url'=>'/easychair/admin/dictionary-replace','icon'=>'fa-wand-magic-sparkles','label_key'=>'menu.dictionary_replace','label'=>'Dictionary Replace','roles'=>['superadmin','super_admin']],
                ['url'=>'/easychair/admin/profile-completion','icon'=>'fa-chart-pie','label_key'=>'menu.profile_completion','label'=>'Profile Completion','roles'=>['superadmin','super_admin','org_admin','admin']],
                ['url'=>'/easychair/admin/profile-fields','icon'=>'fa-list-check','label_key'=>'menu.profile_fields','label'=>'Profile Fields','roles'=>['superadmin','super_admin','org_admin','admin']],
                ['url'=>'/easychair/profile','icon'=>'fa-user-graduate','label_key'=>'menu.my_profile','label'=>'My Academic Profile','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','track_chair','organizer','section_editor']],
                ['url'=>'/easychair/notifications','icon'=>'fa-bell','label_key'=>'menu.my_notifications','label'=>'My Notifications','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','track_chair','organizer','section_editor']],
                ['url'=>'/easychair/select-conference?manual=1','icon'=>'fa-building-columns','label_key'=>'menu.change_conference','label'=>'Change Conference','roles'=>['superadmin','super_admin']],

[
    'url'=>'/easychair/select-role?manual=1',
    'icon'=>'fa-building-columns',
    'label_key'=>'menu.change_conference',
    'label'=>'Change Role',
    'roles'=>[
        'superadmin',
        'conference_chair',
        'track_chair',
        'organizer',
        'reviewer',
        'author'
    ]
],



[
    'url'=>'/easychair/admin/rbac-sync',
    'icon'=>'fa-arrows-rotate',
    'label'=>'RBAC Sync',
 'label_key'=>'menu.rbac_sync',
    'roles'=>['superadmin','super_admin']
],

[
    'url'=>'/easychair/admin/rbac-health',
    'icon'=>'fa-heart-pulse',
    'label'=>'RBAC Health',
 'label_key'=>'menu.rbac_health',
    'roles'=>['superadmin','super_admin']
],

[
    'url'=>'/easychair/admin/permission-templates',
    'icon'=>'fa-layer-group',
    'label_key'=>'menu.permission_templates',
    'label'=>'Permission Templates',
    'roles'=>['superadmin','super_admin']
],


[
    'url'=>'/easychair/admin/permission-snapshots',
    'icon'=>'fa-camera-retro',
    'label'=>'Permission Snapshots',
 'label_key'=>'menu.permission_snapshots',
    'roles'=>['superadmin','super_admin']
],


[
    'url'=>'/easychair/admin/permission-diff',
    'icon'=>'fa-code-compare',
    'label'=>'Permission Diff',
 'label_key'=>'menu.permission_diff',
    'roles'=>['superadmin','super_admin']
],


[
    'url'=>'/easychair/admin/sidebar-discovery',
    'icon'=>'fa-sitemap',
    'label'=>'Sidebar Discovery',
 'label_key'=>'menu.sidebar_discovery',
    'roles'=>['superadmin','super_admin']
],

['url'=>'/easychair/logout','icon'=>'fa-right-from-bracket','label_key'=>'menu.logout','label'=>'Logout','roles'=>['superadmin','super_admin','org_admin','admin','conference_chair','track_chair','organizer','section_editor','reviewer']],
            ]],
        ];
    }
}


if (!function_exists('ec_sidebar_menu_allowed')) {

function ec_sidebar_menu_allowed(array $item, string $roleCode): bool
{
try {

    if (
        $roleCode === 'superadmin'
        ||
        $roleCode === 'super_admin'
    ) {
        return true;
    }

    $url = (string)($item['url'] ?? '');

    if ($url === '') {
        return false;
    }

    $conferenceId = (int)(
        $_SESSION['conference_id']
        ??
        $_SESSION['current_conference_id']
        ??
        0
    );

    $db = \App\Core\Database::getInstance();

    /*
     * Conference-specific permission wins.
     */
    $st = $db->prepare("
        SELECT rp.can_view
        FROM rbac_role_menu_permissions rp
        JOIN roles r
            ON r.id = rp.role_id
        JOIN rbac_menu_items mi
            ON mi.id = rp.menu_item_id
        WHERE r.code = ?
          AND mi.url = ?
          AND rp.conference_id = ?
        ORDER BY rp.id DESC
        LIMIT 1
    ");

    $st->execute([
        $roleCode,
        $url,
        $conferenceId
    ]);

    $row = $st->fetch(\PDO::FETCH_ASSOC);

    if ($row) {
        return (int)$row['can_view'] === 1;
    }

    /*
     * Global fallback.
     */
    $st = $db->prepare("
        SELECT rp.can_view
        FROM rbac_role_menu_permissions rp
        JOIN roles r
            ON r.id = rp.role_id
        JOIN rbac_menu_items mi
            ON mi.id = rp.menu_item_id
        WHERE r.code = ?
          AND mi.url = ?
          AND (
                rp.conference_id = 0
                OR rp.conference_id IS NULL
          )
        ORDER BY rp.id DESC
        LIMIT 1
    ");

    $st->execute([
        $roleCode,
        $url
    ]);

    $row = $st->fetch(\PDO::FETCH_ASSOC);

    if ($row) {
        return (int)$row['can_view'] === 1;
    }

    /*
     * No RBAC row exists.
     * Fall back to roles[].
     */
    $roles = $item['roles'] ?? [];

    return
        empty($roles)
        ||
        in_array(
            $roleCode,
            $roles,
            true
        );

} catch (Throwable $e) {

    error_log(
        'SIDEBAR_RBAC_ERROR: ' .
        $e->getMessage()
    );

    return false;
}

}

}


if (!function_exists('ec_role_layout_filtered_groups')) {
    function ec_role_layout_filtered_groups(?string $roleCode=null): array {
        $roleCode = $roleCode ?: ec_role_layout_role_code();
        //$isSuper = $roleCode === 'superadmin';
$isSuper = in_array(
    strtolower($roleCode),
    ['superadmin','super_admin'],
    true
);
$groups = [];
        foreach (ec_role_layout_all_groups() as $group) {
            $items = [];
            foreach (($group['items'] ?? []) as $item) {
                $roles = $item['roles'] ?? [];
                $url = (string)($item['url'] ?? '#');
                /*
                 * Pack 921A
                 * Keep role arrays only as emergency fallback.
                 * Primary visibility now comes from RBAC.
                 */
                if (
                    !$isSuper
                    &&
                    !empty($roles)
                    &&
                    !in_array($roleCode, $roles, true)
                ) {
                    continue;
                }

                if (
                    !$isSuper
                    &&
                    function_exists('ec_sidebar_menu_allowed')
                ) {

                    $dbAllowed =
                        ec_sidebar_menu_allowed(
                            $item,
                            $roleCode
                        );

                    if (!$dbAllowed) {

                        try {

                            $db=
                            \App\Core\Database::getInstance();

                            $q=
                            $db->prepare(
                            "SELECT COUNT(*) FROM rbac_menu_items WHERE url=?"
                            );

                            $q->execute([$url]);

                            if (
                                (int)$q->fetchColumn()
                                > 0
                            ) {
                                continue;
                            }

                        } catch(Throwable $e){}

                    }

                }
                $item['label'] = ec_role_layout_t((string)($item['label_key'] ?? ''), (string)($item['label'] ?? ''));
                $items[] = $item;
            }
            if ($items) {
                $group['label'] = ec_role_layout_t((string)($group['label_key'] ?? ''), (string)($group['label'] ?? ''));
                $group['items'] = $items;
                $groups[] = $group;
            }
        }
        return $groups;
    }
}
