menu.js 4.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: '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: '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;