add admin management

This commit is contained in:
AmirHossein Mahmoodi
2025-04-06 14:48:03 +03:30
parent 0c37f3459c
commit a7efd9648c

View File

@@ -454,14 +454,6 @@ export const pageMenu = [
}, },
], ],
}, },
{
id: "damageItems",
label: "آیتم خسارات",
type: "page",
route: "/dashboard/damage-items",
icon: <GppMaybeIcon sx={{ width: "inherit", height: "inherit" }} />,
permissions: ["manage-damage"],
},
{ {
id: "damagesManagmentReport", id: "damagesManagmentReport",
label: "گزارش ها", label: "گزارش ها",
@@ -489,27 +481,44 @@ export const pageMenu = [
permissions: ["azmayesh-type-management"], permissions: ["azmayesh-type-management"],
}, },
{ {
id: "permissionItem", id: "adminManagement",
label: "سطح دسترسی ها", label: "مدیریت سامانه",
type: "page", type: "menu",
route: "/dashboard/permissions", icon: <AdminPanelSettingsIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <LockPersonIcon sx={{ width: "inherit", height: "inherit" }} />, hasSubitems: true,
permissions: ["manage-permissions"], Subitems: [
}, {
{ id: "permissionItem",
id: "userActivities", label: "سطح دسترسی ها",
label: "انواع فعالیت کاربران", type: "page",
type: "page", route: "/dashboard/permissions",
route: "/dashboard/user-activities", icon: <LockPersonIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <AssignmentLateIcon sx={{ width: "inherit", height: "inherit" }} />, permissions: ["manage-permissions"],
permissions: ["manage-log-list"], },
}, {
{ id: "userActivities",
id: "CarDetails", label: "انواع فعالیت کاربران",
label: "اطلاعات خودرو", type: "page",
type: "page", route: "/dashboard/user-activities",
route: "/dashboard/car-details", icon: <AssignmentLateIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <DriveEtaIcon sx={{ width: "inherit", height: "inherit" }} />, permissions: ["manage-log-list"],
permissions: [""], },
}, {
id: "damageItems",
label: "آیتم خسارات وارده بر ابنیه فنی",
type: "page",
route: "/dashboard/damage-items",
icon: <GppMaybeIcon sx={{ width: "inherit", height: "inherit" }} />,
permissions: ["manage-damage"],
},
{
id: "CarDetails",
label: "اطلاعات خودرو",
type: "page",
route: "/dashboard/car-details",
icon: <DriveEtaIcon sx={{ width: "inherit", height: "inherit" }} />,
permissions: [""],
},
]
}
]; ];