menu.js 7.83 KB
const adminMenu = [
    //  { header: 'Apps' },
    {
        title: 'Dashboard',
        // group: 'apps',
        name: 'Dashboard',
        icon: '/static/icon/dashboard icons-04.png',
    },
    {
        title: 'Class',
        // group: 'apps',
        name: 'Class',
        icon: '/static/icon/dashboard icons-03.png',
    },
    {
        title: 'Section',
        // group: 'apps',
        name: 'Section',
        icon: '/static/icon/dashboard icons-05.png',
    },
    {
        title: 'Subjects',
        name: 'Subject',
        icon: '/static/icon/dashboard icons-02.png',
    },
    {
        title: 'Parents',
        // group: 'apps',
        name: 'Parents',
        icon: '/static/icon/dashboard icons-07.png',
    },
    {
        title: 'Teachers',
        // group: '',
        name: 'Teachers',
        icon: '/static/icon/dashboard icons-08.png',
    },
    {
        title: 'Students',
        // group: 'apps',
        name: 'Students',
        icon: '/static/icon/dashboard icons-09.png',
    },
    {
        title: 'User',
        name: 'User',
        icon: '/static/icon/dashboard icons-06.png',
    },
    {
        title: 'Attendance',
        group: 'Attendance',
        component: 'Attendance',
        icon: '/static/icon/dashboard icons-19.png',
        items: [
            { name: 'StudentAttendence', title: 'Student Attendance', component: 'StudentAttendence', action: '', },
            { name: 'TeacherAttendence', title: 'Teacher Attendance', component: 'TeacherAttendence', action: '', }
            // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', },
        ]
    },
    {
        title: 'Exam',
        group: 'Exam',
        component: 'Exam',
        icon: '/static/icon/dashboard icons-21.png',
        items: [
            { name: 'Exam', title: 'Exam', component: 'Exam', action: '', },
            { name: 'ExamSchedule', title: 'Exam Schedule', component: 'ExamSchedule', action: '', },
            { name: 'Grade', title: 'Grade', component: 'Grade', action: '', },
            // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', },
        ]
    },
    {
        title: 'Mark',
        group: 'Mark',
        component: 'Mark',
        icon: '/static/icon/dashboard icons-23.png',
        items: [
            { name: 'Mark', title: 'Mark', component: 'Mark', action: '', },
            { name: 'MarkDistribution', title: 'Mark Distribution', component: 'MarkDistribution', action: '', },
            { name: 'Promotion', title: 'promotion', component: 'Promotion', action: '', },
            // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', },
        ]
    },
    {
        title: 'Administrator',
        group: 'Administrator',
        component: 'Administrator',
        icon: '/static/icon/dashboard icons-25.png',
        items: [
            { name: 'AcademicYear', title: 'Academic Year', component: 'AcademicYear', action: '', },
            // { name: 'systemAdmin', title: 'System Admin', component: 'systemAdmin', action: '', },
            { name: 'resetPassword', title: 'Reset Password', component: 'resetPassword', action: '', },
            { name: 'Role', title: 'Role', component: 'Role', action: '', },
            { name: 'BulkImport', title: 'Bulk Import', component: 'BulkImport', action: '', },

        ]
    },
    {
        title: 'Notice Board',
        name: 'NoticeBoard',
        icon: '/static/icon/dashboard icons-27.png',
    },
    {
        title: 'News',
        name: 'News',
        icon: '/static/icon/dashboard icons-41.png',
    },
    // {
    //   title: 'Reminder',
    //   name: 'reminder',
    //   icon: 'alarm_add',
    // },
    {
        title: 'Time Table',
        name: 'TimeTable',
        icon: '/static/icon/dashboard icons-23.png',
    },
    {
        title: 'Library',
        group: 'Library',
        component: 'Library',
        icon: '/static/icon/dashboard icons-29.png',
        items: [
            { name: 'LibraryMember', title: ' Library Member', component: 'LibraryMember', action: '', },
            { name: 'Books', title: 'Books', component: 'Books', action: '', },
            { name: 'Issue', title: ' Issue', component: 'Issue', action: '', },
            { name: 'E-Books', title: 'E-Books', component: 'E-Books', action: '', }

        ]
    },
    {
        title: 'Report',
        group: 'Report',
        component: 'Report',
        icon: '/static/icon/dashboard icons-31.png',
        items: [
            { name: 'studentReport', title: 'Student Report', component: 'studentReport', action: '', },
            { name: 'ProgressCardReport', title: 'Progress Card Report', component: 'ProgressCardReport', action: '', }
        ]
    },
    {
        title: 'Notification',
        name: 'Notification',
        icon: '/static/icon/dashboard icons-33.png',
    },
    {
        title: 'Social Media',
        name: 'SocialMedia',
        icon: '/static/icon/dashboard icons-35.png',
    },
    {
        title: 'Gallery',
        name: 'Gallery',
        icon: '/static/icon/dashboard icons-37.png',
    },
    {
        title: 'Event',
        name: 'Event',
        icon: '/static/icon/dashboard icons-39.png',
    },
    {
        title: 'Account',
        group: 'Account',
        component: 'Account',
        icon: '/static/icon/dashboard icons-43.png',
        items: [
            { name: 'feeTypes', title: 'Fee Types', component: 'feeTypes', action: '', },
            { name: 'Invoice', title: 'Invoice', component: 'Invoice', action: '', },
            { name: 'PaymentHistory', title: 'Payment History', component: 'PaymentHistory', action: '', },
            { name: 'Expense', title: 'Expense', component: 'Expense', action: '', },
            { name: 'Income', title: 'Income', component: 'Income', action: '', },
            { name: 'GlobalPayment', title: 'Global Payment', component: 'GlobalPayment', action: '', }
        ]
    },
    {
        title: 'Holiday',
        name: 'Holiday',
        icon: '/static/icon/dashboard icons-41.png',
    },
    {
        title: 'General Setting',
        name: 'GeneralSetting',
        icon: '/static/icon/dashboard icons-45.png',
    }
];

const libraryMenu = [{
    title: 'Library',
    group: 'Library',
    component: 'Library',
    icon: '/static/schoolIcons/Library.png',
    items: [
        { name: 'libraryMember', title: ' Library Member', component: 'libraryMember', action: '', },
        { name: 'Books', title: 'Books', component: 'Books', action: '', },
        { name: 'Issue', title: ' Issue', component: 'Issue', action: '', },
        { name: 'eBooks', title: 'E-Books', component: 'eBooks', action: '', }

    ]
}];

const accountMenu = [{
    title: 'Account',
    group: 'Account',
    component: 'Account',
    icon: '/static/schoolIcons/Account.png',
    items: [
        { name: 'feeTypes', title: 'Fee Types', component: 'feeTypes', action: '', },
        { name: 'Invoice', title: 'Invoice', component: 'Invoice', action: '', },
        { name: 'paymentHistory', title: 'Payment History', component: 'paymentHistory', action: '', },
        { name: 'Expense', title: 'Expense', component: 'Expense', action: '', },
        { name: 'Income', title: 'Income', component: 'Income', action: '', },
        { name: 'GlobalPayment', title: 'Global Payment', component: 'GlobalPayment', action: '', }
    ]
}];

const schoolMenu = [
    //  { header: 'Apps' },
    {
        title: 'School',
        // group: 'apps',
        path: '/school',
        icon: '/static/schoolIcons/Dashboard.png',
    }
];

// reorder menu
// Menu.forEach((item) => {
// if (item.items) {
//     item.items.sort((x, y) => {
//         let textA = x.title.toUpperCase();
//         let textB = y.title.toUpperCase();
//         return (textA < textB) ? -1 : (textA > textB) ? 1 : 0;
//     });
// }
// });

export default { adminMenu, schoolMenu, libraryMenu, accountMenu };