import { Security } from "@mui/icons-material";

export const pageMenu = [
    {
        id: "dashboard",
        label: "پیشخوان",
        type: "page",
        route: "/dashboard",
        icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
        permissions: ["all"],
    },
    {
        id: "userManagement",
        label: "مدیریت کاربران",
        type: "page",
        route: process.env.NEXT_PUBLIC_API_URL + "/v2/user_management",
        icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
        permissions: ["full-user-management", "limited-user-management"],
    },
    {
        id: "projectsManagment",
        label: "پروژه های راهداری",
        type: "menu",
        icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
        hasSubitems: true,
        Subitems: [
            {
                id: "projectsManagmentFinance",
                label: "ثبت قرارداد و پروژه",
                type: "page",
                route: process.env.NEXT_PUBLIC_API_URL + "/v2/rahdari_projects/finance",
                icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
                permissions: ["show-contract", "show-contract-province"],
            },
            {
                id: "projectsManagmentList",
                label: "لیست پروژه ها",
                type: "page",
                route: process.env.NEXT_PUBLIC_API_URL + "/v2/rahdari_projects/projects_list",
                icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
                permissions: ["all"],
            },
            {
                id: "projectsManagmentProposal",
                label: "پروژه های پیشنهادی",
                type: "page",
                route: process.env.NEXT_PUBLIC_API_URL + "/v2/rahdari_projects/proposal",
                icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
                permissions: ["show-proposal", "show-proposal-province"],
            },
            {
                id: "projectsManagmentLawmaker",
                label: "درخواست نمایندگان",
                type: "page",
                route: process.env.NEXT_PUBLIC_API_URL + "/v2/rahdari_projects/lawmakers",
                icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
                permissions: ["show-lawmaker", "show-lawmaker-province"],
            },
            {
                id: "projectsManagmentMap",
                label: "پراکندگی بر روی نقشه",
                type: "page",
                route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=rahdari_projects",
                icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
                permissions: ["all"],
            },
        ],
    },
    {
        id: "roadItemManagment",
        label: "فعالیت های روزانه",
        type: "menu",
        icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
        hasSubitems: true,
        Subitems: [
            {
                id: "roadItemManagmentSupervisor",
                label: "ارزیابی",
                type: "menu",
                icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
                hasSubitems: true,
                Subitems: [
                    {
                        id: "roadItemManagmentSupervisorCartable",
                        label: "کارتابل",
                        type: "page",
                        route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_items/supervisor/cartable",
                        permissions: [
                            "show-road-item-supervise-cartable",
                            "show-road-item-supervise-cartable-province",
                        ],
                    },
                ],
            },
            {
                id: "roadItemManagmentOparation",
                label: "عملیات",
                type: "menu",
                icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
                hasSubitems: true,
                Subitems: [
                    {
                        id: "roadItemManagmentOparationCreate",
                        label: "ثبت فعالیت",
                        type: "page",
                        route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_items/operator/create",
                        permissions: ["create-road-item"],
                    },
                    {
                        id: "roadItemManagmentOparationCartable",
                        label: "کارتابل",
                        type: "page",
                        route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_items/operator/cartable",
                        permissions: ["create-road-item"],
                    },
                ],
            },
            {
                id: "roadItemManagmentMap",
                label: "پراکندگی بر روی نقشه",
                type: "page",
                route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=road_items",
                icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
                permissions: [
                    "show-road-item-supervise-cartable",
                    "show-road-item-supervise-cartable-province",
                    "create-road-item",
                ],
            },
            {
                id: "roadItemManagmentReport",
                label: "گزارش ها",
                type: "page",
                route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_items/report",
                icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
                permissions: [
                    "show-road-item-supervise-cartable",
                    "show-road-item-supervise-cartable-province",
                    "create-road-item",
                ],
            },
        ],
    },
    {
        id: "roadPatrolManagment",
        label: "گشت راهداری و ترابری",
        type: "menu",
        icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
        hasSubitems: true,
        Subitems: [
            {
                id: "roadPatrolManagmentSupervisor",
                label: "ارزیابی",
                type: "menu",
                icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
                hasSubitems: true,
                Subitems: [
                    {
                        id: "roadPatrolManagmentSupervisorCartable",
                        label: "کارتابل",
                        type: "page",
                        route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_patrols/supervisor/cartable",
                        permissions: [
                            "show-road-patrol-supervise-cartable",
                            "show-road-patrol-supervise-cartable-province",
                        ],
                    },
                ],
            },
            {
                id: "roadPatrolManagmentOparation",
                label: "عملیات",
                type: "menu",
                icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
                hasSubitems: true,
                Subitems: [
                    {
                        id: "roadPatrolManagmentOparationCreate",
                        label: "ثبت اقدام",
                        type: "page",
                        route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_patrols/operator/create",
                        permissions: ["add-road-patrol"],
                    },
                    {
                        id: "roadPatrolManagmentOparationCartable",
                        label: "کارتابل",
                        type: "page",
                        route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_patrols/operator/cartable",
                        permissions: ["add-road-patrol"],
                    },
                ],
            },
            {
                id: "roadPatrolManagmentMap",
                label: "پراکندگی بر روی نقشه",
                type: "page",
                route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=road_patrols",
                icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
                permissions: [
                    "add-road-patrol",
                    "show-road-patrol-supervise-cartable",
                    "show-road-patrol-supervise-cartable-province",
                ],
            },
            {
                id: "roadPatrolManagmentReport",
                label: "گزارش ها",
                type: "page",
                route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_patrols/report",
                icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
                permissions: [
                    "add-road-patrol",
                    "show-road-patrol-supervise-cartable",
                    "show-road-patrol-supervise-cartable-province",
                ],
            },
        ],
    },
    {
        id: "inquiryPrivacyManagment",
        label: "استعلام حریم راه",
        type: "menu",
        icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
        hasSubitems: true,
        Subitems: [
            {
                id: "inquiryPrivacyManagmentFencing",
                label: "احداث و بهره برداری دیوارکشی و مستحدثات",
                type: "page",
                route: "/dashboard/inquiry_privacy/fencing",
                permissions: ["all"],
            },
            {
                id: "inquiryPrivacyManagmentRoad",
                label: "احداث راه دسترسی اختصاصی",
                type: "page",
                route: "/dashboard/inquiry_privacy/road",
                permissions: ["all"],
            },
            {
                id: "inquiryPrivacyManagmentInfrastructure",
                label: "احداث و بهره برداری تاسیسات زیربنایی",
                type: "page",
                route: "/dashboard/inquiry_privacy/infrastructure",
                permissions: ["all"],
            },
        ],
    },
    {
        id: "safetyAndPrivacyManagment",
        label: "نگهداری حریم راه",
        type: "menu",
        icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
        hasSubitems: true,
        Subitems: [
            {
                id: "safetyAndPrivacyManagmentOparation",
                label: "عملیات",
                type: "menu",
                icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
                hasSubitems: true,
                Subitems: [
                    {
                        id: "safetyAndPrivacyManagmentOparationCreate",
                        label: "ثبت فعالیت",
                        type: "page",
                        route: process.env.NEXT_PUBLIC_API_URL + "/v2/safety_and_privacy/operator/first_step",
                        permissions: ["add-safety-and-privacy"],
                    },
                    {
                        id: "safetyAndPrivacyManagmentOparationCartable",
                        label: "کارتابل",
                        type: "page",
                        route: process.env.NEXT_PUBLIC_API_URL + "/v2/safety_and_privacy/operator/cartable",
                        permissions: [
                            "show-safety-and-privacy-operator-cartable",
                            "show-safety-and-privacy-operator-cartable-province",
                            "show-safety-and-privacy-operator-cartable-edarate-shahri",
                        ],
                    },
                ],
            },
            {
                id: "safetyAndPrivacyManagmentMap",
                label: "پراکندگی بر روی نقشه",
                type: "page",
                route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=safety_and_privacy",
                icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
                permissions: [
                    "show-safety-and-privacy-operator-cartable",
                    "show-safety-and-privacy-operator-cartable-province",
                    "show-safety-and-privacy-operator-cartable-edarate-shahri",
                    "add-safety-and-privacy",
                ],
            },
            {
                id: "safetyAndPrivacyManagmentReport",
                label: "گزارش ها",
                type: "page",
                route: process.env.NEXT_PUBLIC_API_URL + "/v2/safety_and_privacy/report",
                icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
                permissions: [
                    "show-safety-and-privacy-operator-cartable",
                    "show-safety-and-privacy-operator-cartable-province",
                    "show-safety-and-privacy-operator-cartable-edarate-shahri",
                    "add-safety-and-privacy",
                ],
            },
        ],
    },
    {
        id: "roadObservationsManagment",
        label: "واکنش سریع",
        type: "menu",
        icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
        hasSubitems: true,
        Subitems: [
            {
                id: "roadObservationsManagmentSupervisor",
                label: "ارزیابی",
                type: "menu",
                icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
                hasSubitems: true,
                Subitems: [
                    {
                        id: "roadObservationsManagmentSupervisorCartable",
                        label: "کارتابل",
                        type: "page",
                        route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_observations/supervisor/cartable",
                        permissions: ["supervise-fast-react", "supervise-fast-react-province"],
                    },
                ],
            },
            {
                id: "roadObservationsManagmentList",
                label: "رسیدگی به شکایات",
                type: "page",
                route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_observations",
                icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
                permissions: ["show-fast-react", "show-fast-react-province", "show-fast-react-edarate-shahri"],
            },
            {
                id: "roadObservationsManagmentOparation",
                label: "عملیات",
                type: "menu",
                icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
                hasSubitems: true,
                Subitems: [
                    {
                        id: "roadObservationsManagmentOparationCartable",
                        label: "کارتابل",
                        type: "page",
                        route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_observations/operator/cartable",
                        permissions: ["show-fast-react", "show-fast-react-province", "show-fast-react-edarate-shahri"],
                    },
                ],
            },
            {
                id: "roadObservationsManagmentMap",
                label: "پراکندگی بر روی نقشه",
                type: "page",
                route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=road_observations",
                icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
                permissions: ["all"],
            },
            {
                id: "roadObservationsManagmentReport",
                label: "گزارش ها",
                type: "page",
                route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_observations/report/index",
                icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
                permissions: ["all"],
            },
        ],
    },
    {
        id: "winterCampManagment",
        label: "قرارگاه زمستانی",
        type: "menu",
        icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
        hasSubitems: true,
        Subitems: [
            {
                id: "winterCampManagmentBlocking",
                label: "محور های انسدادی",
                type: "page",
                route: process.env.NEXT_PUBLIC_API_URL + "/v2/winter_camp",
                icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
                permissions: ["show-camp", "show-camp-province"],
            },
            {
                id: "winterCampManagmentFirstRing",
                label: "محور های حلقه اول",
                type: "page",
                route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=camp",
                icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
                permissions: ["show-camp", "show-camp-province"],
            },
            {
                id: "winterCampManagmentReport",
                label: "گزارش ها",
                type: "page",
                route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=campNew",
                icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
                permissions: ["show-camp", "show-camp-province"],
            },
        ],
    },
    {
        id: "receiptManagment",
        label: "خسارات وارده بر ابنیه فنی و تاسیسات راه",
        type: "menu",
        icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
        hasSubitems: true,
        Subitems: [
            {
                id: "receiptManagmentOparation",
                label: "عملیات",
                type: "menu",
                icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
                hasSubitems: true,
                Subitems: [
                    {
                        id: "receiptManagmentOparationCartable",
                        label: "کارتابل",
                        type: "page",
                        route: process.env.NEXT_PUBLIC_API_URL + "/v2/receipt",
                        permissions: ["all"],
                    },
                ],
            },
            {
                id: "receiptManagmentReport",
                label: "گزارش ها",
                type: "page",
                route: process.env.NEXT_PUBLIC_API_URL + "/v2/receipt/report",
                icon: <Security sx={{ width: "inherit", height: "inherit" }} />,
                permissions: ["all"],
            },
        ],
    },
];
