menu.js 6.07 KB
const Menu = [
    //  { header: 'Apps' },
    {
        title: 'Dashboard',
        // group: 'apps',
        path: '/dashboard',
        icon: '/static/schoolIcons/Dashboard.png',
    },
    {
        title: 'Class',
        // group: 'apps',
        path: '/addclass',
        icon: '/static/schoolIcons/Class.png',
    },
    {
        title: 'Section',
        // group: 'apps',
        path: '/section',
        icon: '/static/schoolIcons/Section.png',
    },
    {
        title: 'Subjects',
        path: '/subject',
        icon: '/static/schoolIcons/Subjects.png',
    },
    {
        title: 'Parents',
        // group: 'apps',
        path: '/parents',
        icon: '/static/schoolIcons/Parents.png',
    },
    {
        title: 'Teachers',
        // group: '',
        path: 'teachers',
        icon: '/static/schoolIcons/Teachers.png',
    },
    {
        title: 'Students',
        // group: 'apps',
        path: '/Students',
        icon: '/static/schoolIcons/Students.png',
    },
    {
        title: 'User',
        path: '/User',
        icon: '/static/schoolIcons/User.png',
    },
    {
        title: 'Attendance',
        group: 'Attendance',
        component: 'Attendance',
        icon: '/static/schoolIcons/Attendance.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/schoolIcons/exam.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/schoolIcons/marks.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/schoolIcons/administrator.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: '', },
        ]
    },
    {
        title: 'Notice Board',
        path: '/NoticeBoard',
        icon: '/static/schoolIcons/Notice_board.png',
    },
    {
        title: 'News',
        path: '/news',
        icon: '/static/schoolIcons/News.png',
    },
    // {
    //   title: 'Reminder',
    //   name: 'reminder',
    //   icon: 'alarm_add',
    // },
    {
        title: 'Time Table',
        path: '/timeTable',
        icon: '/static/schoolIcons/Time_table.png',
    },
    {
        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: '', }

        ]
    },
    {
        title: 'Report',
        group: 'Report',
        component: 'Report',
        icon: '/static/schoolIcons/reports.png',
        items: [
            { name: 'studentReport', title: 'Student Report', component: 'studentReport', action: '', },
            { name: 'progressCardReport', title: 'Progress Card Report', component: 'progressCardReport', action: '', }
        ]
    },
    {
        title: 'Notification',
        path: '/notification',
        icon: '/static/schoolIcons/Notification.png',
    },
    {
        title: 'Social Media',
        path: '/SocialMedia',
        icon: '/static/schoolIcons/Social_Media.png',
    },
    {
        title: 'Gallery',
        path: '/Gallery',
        icon: '/static/schoolIcons/Gallery.png',
    },
    {
        title: 'Event',
        path: '/Event',
        icon: '/static/schoolIcons/Events.png',
    },
    {
        title: 'Holiday',
        path: '/Holiday',
        icon: '/static/schoolIcons/Holidays.png',
    },
    {
        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: '', },
        ]
    }
];


// 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 Menu;