import SpaceDashboardIcon from "@mui/icons-material/SpaceDashboard";
import DirectionsCarFilledIcon from "@mui/icons-material/DirectionsCarFilled";
import AirlineSeatReclineNormalIcon from "@mui/icons-material/AirlineSeatReclineNormal";
import DirectionsRailwayIcon from "@mui/icons-material/DirectionsRailway";
import AssignmentIndIcon from "@mui/icons-material/AssignmentInd";
import DesktopWindowsIcon from "@mui/icons-material/DesktopWindows";
import GavelIcon from '@mui/icons-material/Gavel';
import BusinessCenterIcon from '@mui/icons-material/BusinessCenter';
import GradingIcon from '@mui/icons-material/Grading';
import SupervisedUserCircleIcon from '@mui/icons-material/SupervisedUserCircle';
import Diversity3Icon from '@mui/icons-material/Diversity3';
import PaidIcon from '@mui/icons-material/Paid';
import ManageAccountsIcon from '@mui/icons-material/ManageAccounts';
import PersonIcon from '@mui/icons-material/Person';
import AccessibilityIcon from '@mui/icons-material/Accessibility';
import AssessmentIcon from '@mui/icons-material/Assessment';
import SecurityIcon from '@mui/icons-material/Security';

const sidebarMenu = [
    [
        {
            key: "sidebar.dashboard",
            type: "page",
            route: "/dashboard",
            icon: <SpaceDashboardIcon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permissions: ["all"],
        },
        {
            key: "sidebar.reports",
            name: "reports",
            type: "page",
            route: "/dashboard/reports",
            icon: <AssessmentIcon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permissions: ["view_reports_navgan"],
        },
        {
            key: "sidebar.loan-history",
            name: "loan-history",
            type: "page",
            route: "/dashboard/loan-history",
            icon: <SecurityIcon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permissions: ["view_navgan_loans", "view_navgan_loans_province"],
        },
    ], [
        {
            key: "sidebar.passenger-office-chief",
            secondary: "secondary.navgan-province-manager",
            name: "passenger_office_chief",
            type: "page",
            route: "/dashboard/passenger-office-chief",
            icon: <AirlineSeatReclineNormalIcon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permissions: ["manage_passenger_office_navgan"],
        },
        {
            key: "sidebar.machinery-expert",
            secondary: "secondary.navgan-province-manager",
            name: "machinery_expert",
            type: "page",
            route: "/dashboard/machinery-expert",
            icon: <DirectionsCarFilledIcon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permissions: ["manage_machinery_navgan"],
        },
        {
            key: "sidebar.passenger-boss",
            secondary: "secondary.navgan-province-manager",
            name: "province_working_group",
            type: "page",
            route: "/dashboard/passenger-boss",
            icon: <AssignmentIndIcon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permissions: ["manage_province_working_group_navgan"],
        },

        {
            key: "sidebar.transportation-assistant",
            secondary: "secondary.navgan-province-manager",
            name: "transportation_assistant",
            type: "page",
            route: "/dashboard/transportation-assistant",
            icon: <DirectionsRailwayIcon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permissions: ["manage_transportation_navgan"],
        },
        {
            key: "sidebar.navgan-province-manager",
            secondary: "secondary.navgan-province-manager",
            name: "province_manager_navgan",
            type: "page",
            route: "/dashboard/navgan-province-manager",
            icon: <DesktopWindowsIcon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permissions: ["manage_province_affairs_navgan"],
        },
        {
            key: "sidebar.navgan-loan-management",
            secondary: "secondary.navgan-loan-management",
            name: "navgan_loan_management",
            type: "page",
            route: "/dashboard/navgan-loan-management",
            icon: <PaidIcon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permissions: ["manage_navgan_loan"],
        },
    ], [
        {
            key: "sidebar.province-head-expert",
            secondary: "secondary.refahi-province-manager",
            name: "province_head_expert",
            type: "page",
            route: "/dashboard/province-head-expert",
            icon: <GavelIcon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permissions: ["manage_province_headquarter_refahi"],
        },
        {
            key: "sidebar.inspector-expert",
            secondary: "secondary.refahi-province-manager",
            name: "inspector_expert",
            type: "page",
            route: "/dashboard/inspector-expert",
            icon: <GradingIcon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permissions: ["manage_inspector_refahi"],
        },
        {
            key: "sidebar.commercial-chief",
            secondary: "secondary.refahi-province-manager",
            name: "commercial_chief",
            type: "page",
            route: "/dashboard/commercial-chief",
            icon: <BusinessCenterIcon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permissions: ["manage_commercial_refahi"],
        },
        {
            key: "sidebar.development-assistant",
            secondary: "secondary.refahi-province-manager",
            name: "development_assistant",
            type: "page",
            route: "/dashboard/development-assistant",
            icon: <Diversity3Icon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permissions: ["manage_development_refahi"],
        },
        {
            key: "sidebar.refahi-province-manager",
            secondary: "secondary.refahi-province-manager",
            name: "province_manager_refahi",
            type: "page",
            route: "/dashboard/refahi-province-manager",
            icon: <SupervisedUserCircleIcon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permissions: ["manage_province_affairs_refahi"],
        },
        {
            key: "sidebar.refahi-loan-management",
            secondary: "secondary.refahi-loan-management",
            name: "refahi_loan_management",
            type: "page",
            route: "/dashboard/refahi-loan-management",
            icon: <PaidIcon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permissions: ["manage_refahi_loan"],
        },
    ], [
        {
            key: "sidebar.expert-management",
            secondary: "secondary.admin-management",
            name: "expert_management",
            type: "page",
            route: "/dashboard/expert-management",
            icon: <ManageAccountsIcon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permissions: ["manage_experts"],
        },
        {
            key: "sidebar.user-management",
            secondary: "secondary.admin-management",
            name: "user_management",
            type: "page",
            route: "/dashboard/user-management",
            icon: <PersonIcon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permissions: ["manage_users"],
        },
        {
            key: "sidebar.role-management",
            secondary: "secondary.admin-management",
            name: "role_management",
            type: "page",
            route: "/dashboard/role-management",
            icon: <AccessibilityIcon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permissions: ["manage_roles"],
        }
    ],
];

export default sidebarMenu;
