const adminMenu = [ // { header: 'Apps' }, { title: 'Dashboard', // group: 'apps', name: 'Dashboard', icon: '/static/icon/dashboard.png', }, { title: 'Class', // group: 'apps', name: 'Class', icon: '/static/icon/class.png', }, { title: 'Section', // group: 'apps', name: 'Section', icon: '/static/icon/section.png', }, { title: 'Subjects', name: 'Subject', icon: '/static/icon/subject.png', }, { title: 'Parents', // group: 'apps', name: 'Parents', icon: '/static/icon/parents.png', }, { title: 'Teachers', // group: '', name: 'Teachers', icon: '/static/icon/teacher.png', }, { title: 'Students', // group: 'apps', name: 'Students', icon: '/static/icon/student.png', }, { title: 'User', name: 'User', icon: '/static/icon/users.png', }, { title: 'Attendance', group: 'Attendance', component: 'Attendance', icon: '/static/icon/attendence.png', items: [ { name: 'StudentAttendence', title: 'Student Attendance', component: 'Student Attendence', action: '', }, { name: 'TeacherAttendence', title: 'Teacher Attendance', component: 'Teacher Attendence', action: '', } // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', }, ] }, { title: 'Exam', group: 'Exam', component: 'Exam', icon: '/static/icon/exam.png', items: [ { name: 'Exam', title: 'Exam', component: 'Exam', action: '', }, { name: 'ExamSchedule', title: 'Exam Schedule', component: 'Exam Schedule', action: '', }, { name: 'Grade', title: 'Grade', component: 'Grade', action: '', }, // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', }, ] }, { title: 'Marks', group: 'Mark', component: 'Mark', icon: '/static/icon/marks.png', items: [ { name: 'Mark', title: 'Mark', component: 'Mark', action: '', }, { name: 'MarkDistribution', title: 'Mark Distribution', component: 'Mark Distribution', 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/adminstrator.png', items: [ { name: 'AcademicYear', title: 'Academic Year', component: 'Academic Year', action: '', }, // { name: 'systemAdmin', title: 'System Admin', component: 'systemAdmin', action: '', }, { name: 'resetPassword', title: 'Reset Password', component: 'Reset Password', action: '', }, { name: 'Role', title: 'Role', component: 'Role', action: '', }, { name: 'BulkImport', title: 'Bulk Import', component: 'Bulk Import', action: '', }, ] }, { title: 'Notice Board', name: 'Notice Board', icon: '/static/icon/notice board.png', }, { title: 'News', name: 'News', icon: '/static/icon/news.png', }, // { // title: 'Reminder', // name: 'reminder', // icon: 'alarm_add', // }, { title: 'Time Table', name: 'Time Table', icon: '/static/icon/time table.png', }, { title: 'Library', group: 'Library', component: 'Library', icon: '/static/icon/library.png', items: [ { name: 'LibraryMember', title: ' Library Member', component: 'Library Member', 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/reports.png', items: [ { name: 'studentReport', title: 'Student Report', component: 'Student Report', action: '', }, { name: 'ProgressCardReport', title: 'Progress Card Report', component: 'Progress Card Report', action: '', } ] }, { title: 'Notification', name: 'Notification', icon: '/static/icon/notification.png', }, { title: 'Social Media', name: 'Social Media', icon: '/static/icon/events.png', }, { title: 'Gallery', name: 'Gallery', icon: '/static/icon/gallery.png', }, { title: 'Event', name: 'Event', icon: '/static/icon/events.png', }, { title: 'Account', group: 'Account', component: 'Account', icon: '/static/icon/accounts.png', items: [ { name: 'feeTypes', title: 'Fee Types', component: 'Fee Types', action: '', }, { name: 'Invoice', title: 'Invoice', component: 'Invoice', action: '', }, { name: 'PaymentHistory', title: 'Payment History', component: 'Payment History', action: '', }, { name: 'Expense', title: 'Expense', component: 'Expense', action: '', }, { name: 'Income', title: 'Income', component: 'Income', action: '', }, { name: 'GlobalPayment', title: 'Global Payment', component: 'Global Payment', action: '', } ] }, { title: 'Holiday', name: 'Holiday', icon: '/static/icon/holiday.png', }, { title: 'General Setting', name: 'General Setting', icon: '/static/icon/settings.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: 'Dashboard', // group: 'apps', name: 'Dashboard', icon: '/static/icon/dashboard.png', }, { title: 'School', // group: 'apps', name: '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 };