<?php

return [
    /*
    | Route name or prefix => module key (must match plan's modules array).
    | When plan has non-empty modules, only routes with a module in that list are allowed.
    | Empty or missing plan modules = all modules allowed.
    */
    'route_module' => [
        'dashboard' => 'dashboard',
        'dashboard.self' => 'dashboard',
        'people' => 'employees',
        'employees' => 'employees',
        'departments' => 'employees',
        'designations' => 'employees',
        'locations' => 'employees',
        'org-chart' => 'employees',
        'hr' => 'hr_operations',
        'leaves.dashboard' => 'leaves',
        'attendance' => 'attendance',
        'shifts' => 'attendance',
        'weekoff-rules' => 'attendance',
        'attendance-regularizations' => 'attendance',
        'biometric-devices' => 'attendance',
        'attendance-punches' => 'attendance',
        'leaves' => 'leaves',
        'leave-types' => 'leaves',
        'holidays' => 'leaves',
        'payroll' => 'payroll',
        'salary-components' => 'payroll',
        'salary-groups' => 'payroll',
        'assets' => 'assets',
        'asset-types' => 'assets',
        'finance' => 'finance',
        'finance.dashboard' => 'finance',
        'finance.self' => 'finance',
        'finance.team' => 'finance',
        'finance.operational' => 'finance',
        'finance.my-advances' => 'finance',
        'accounts' => 'finance',
        'expenses' => 'finance',
        'pre-payments' => 'finance',
        'deposits' => 'finance',
        'payees' => 'finance',
        'payers' => 'finance',
        'deposit-categories' => 'finance',
        'vendors' => 'finance',
        'documents' => 'documents',
        'letter-head-templates' => 'documents',
        'forms' => 'documents',
        'form-submissions' => 'documents',
        'generated-letters' => 'documents',
        'settings.audit' => 'settings',
        'company-policies' => 'hr_operations',
        'policies' => 'hr_operations',
        'warnings' => 'hr_operations',
        'complaints' => 'hr_operations',
        'promotions' => 'hr_operations',
        'offboardings' => 'hr_operations',
        'resignations' => 'hr_operations',
        'terminations' => 'hr_operations',
        'appreciations' => 'hr_operations',
        'recruitment.dashboard' => 'recruitment',
        'job-postings' => 'recruitment',
        'applicants' => 'recruitment',
        'applicants.refer' => 'recruitment',
        'applicants.refer.store' => 'recruitment',
        'applicants.resume.download' => 'recruitment',
        'interviews' => 'recruitment',
        'performance.dashboard' => 'performance',
        'goals' => 'performance',
        'performance-reviews' => 'performance',
        'performance-cycles' => 'performance',
        'announcements' => 'announcements',
        'reports' => 'reports',
        'settings' => 'settings',
        'subscription' => 'settings',
        'tenant-roles' => 'settings',
    ],

    /*
    | Sidebar section (permission or label) => module key for hiding by plan.
    */
    'sidebar_module' => [
        'dashboard_view' => 'dashboard',
        'users_view' => 'employees',
        'attendances_view' => 'attendance',
        'biometric_devices_view' => 'attendance',
        'leaves_view' => 'leaves',
        'payrolls_view' => 'payroll',
        'assets_view' => 'assets',
        'finance_view' => 'finance',
        'finance_treasury_view' => 'finance',
        'finance_operational' => 'finance',
        'finance_team_view' => 'finance',
        'finance_self_view' => 'finance',
        'expenses_create_own' => 'finance',
        'documents_view' => 'documents',
        'hr_operations_view' => 'hr_operations',
        'complaints_view_own' => 'hr_operations',
        'recruitment_view' => 'recruitment',
        'recruitment_refer' => 'recruitment',
        'recruitment_referrals_view' => 'recruitment',
        'recruitment_create' => 'recruitment',
        'performance_view' => 'performance',
        'performance_create' => 'performance',
        'announcements_view' => 'announcements',
        'view_reports' => 'reports',
        'manage_settings' => 'settings',
        'roles_view' => 'settings',
    ],
];
