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 AccessTimeIcon from '@mui/icons-material/AccessTime';

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

        {
            key: "sidebar.transportation-assistant",
            name: "transportation_assistant",
            type: "page",
            route: "/dashboard/transportation-assistant",
            icon: <DirectionsRailwayIcon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permission: "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,
            permission: "manage_province_affairs_navgan",
        },
        {
            key: "sidebar.province-head-expert",
            name: "province_head_expert",
            type: "page",
            route: "/dashboard/province-head-expert",
            icon: <GavelIcon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permission: "manage_province_headquarter_refahi",
        },
        {
            key: "sidebar.inspector-expert",
            name: "inspector_expert",
            type: "page",
            route: "/dashboard/inspector-expert",
            icon: <GradingIcon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permission: "manage_inspector_refahi",
        },
        {
            key: "sidebar.commercial-chief",
            name: "commercial_chief",
            type: "page",
            route: "/dashboard/commercial-chief",
            icon: <BusinessCenterIcon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permission: "manage_commercial_refahi",
        },
        {
            key: "sidebar.development-assistant",
            name: "development_assistant",
            type: "page",
            route: "/dashboard/development-assistant",
            icon: <Diversity3Icon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permission: "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,
            permission: "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,
            permission: "manage_refahi_loan",
        },
        {
            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,
            permission: "manage_navgan_loan",
        },
        {
            key: "sidebar.expert-management",
            name: "expert_management",
            type: "page",
            route: "/dashboard/expert-management",
            icon: <ManageAccountsIcon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permission: "manage_experts",
        },
        {
            key: "sidebar.user-management",
            name: "user_management",
            type: "page",
            route: "/dashboard/user-management",
            icon: <PersonIcon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permission: "manage_users",
        },
        {
            key: "sidebar.role-management",
            name: "role_management",
            type: "page",
            route: "/dashboard/role-management",
            icon: <AccessibilityIcon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permission: "manage_roles",
        },
        {
            key: "sidebar.loan-history",
            name: "loan-history",
            type: "page",
            route: "/dashboard/loan-history",
            icon: <AccessTimeIcon sx={{width: 'inherit', height: 'inherit'}}/>,
            selected: false,
            permission: "manage_navgan_loan",
        },
    ],
];

export default sidebarMenu;
