menu.js 1.96 KB
const Menu = [
    //  { header: 'Apps' },
    {
        title: 'Dashboard',
        // group: 'apps',
        name: 'Dashboard',
        icon: 'dashboard',
    },
    {
        title: 'Class',
        // group: 'apps',
        name: 'addclass',
        icon: 'local_library',
    },
    {
        title: 'Section',
        // group: 'apps',
        name: 'section',
        icon: 'view_module',
    },
    {
        title: 'Subjects',
        name: 'Subject',
        icon: 'subject',
    },
    {
        title: 'Parents',
        // group: 'apps',
        name: 'parents',
        icon: 'group',
    },
    {
        title: 'Teachers',
        // group: '',
        name: 'teachers',
        icon: 'person',
    },
    {
        title: 'Students',
        // group: 'apps',
        name: 'Students',
        icon: 'school',
    },
    {
        title: 'Notice Board',
        name: 'NoticeBoard',
        icon: 'notifications',
    },
    {
        title: 'News',
        name: 'news',
        icon: 'announcement',
    },
    // {
    //   title: 'Reminder',
    //   name: 'reminder',
    //   icon: 'alarm_add',
    // },
    {
        title: 'Time Table',
        name: 'timeTable',
        icon: 'event_note',
    },
    {
        title: 'Notification',
        name: 'notification',
        icon: 'notifications_active',
    },
    {
        title: 'Social Media',
        name: 'SocialMedia',
        icon: 'cloud_upload',
    },
    {
        title: 'Gallery',
        name: 'Gallery',
        icon: 'photo',
    },
    {
        title: 'Event',
        name: 'Event',
        icon: 'event',
    },
    {
        title: 'Holiday',
        name: 'Holiday',
        icon: 'star',
    }
];


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