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: 'Course', group: 'AdminCourse', component: 'AdminCourse', icon: '/static/icon/attendence.png', items: [ { name: 'AssignTeachers', title: 'Assign Teachers', component: 'AssignTeachers', action: '', }, ] }, { 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: 'courseAttendance', title: 'Course Attendance', component: 'Course Attendance', action: '', }, // { name: 'userAttendence', title: 'User Attendance', component: 'User Attendence', 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: 'Academic', group: 'Academic', component: 'Academic', icon: '/static/icon/school.png', items: [ { name: 'Subject', title: 'Subject', component: 'Subject', action: '', }, { name: 'Syllabus', title: 'Syllabus', component: 'Syllabus', action: '', }, { name: 'Assignment', title: 'Assignment', component: 'Assignment', action: '', }, { name: 'Routine', title: 'Routine', component: 'Routine', 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: 'Change Password', component: 'Change Password', action: '', }, { name: 'Role', title: 'Role', component: 'Role', action: '', }, { name: 'BulkImport', title: 'Bulk Import', component: 'Bulk Import', action: '', }, ] }, { title: 'Payroll', group: 'Payroll', component: 'Payroll', icon: '/static/icon/dollar.png', items: [ { name: 'salaryTemplate', title: 'Salary Template', component: 'Salary Template', action: '', }, { name: 'hourlyTemplate', title: 'Hourly Template', component: 'Hourly Template', action: '', }, { name: 'manageSalary', title: 'Manage Salary', component: 'Manage Salary', action: '', }, // { name: 'makePayment', title: 'Make Payment', component: 'Make Payment', 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: '', }, { name: 'idCard', title: 'Id Card Report', component: 'Id Card Report', action: '', }, { name: 'admitCard', title: 'Admit Card Report', component: 'Admit 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: 'Dashboard', name: 'Dashboard', icon: '/static/icon/dashboard.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: '', } ] }, ]; const accountMenu = [{ title: 'Dashboard', name: 'Dashboard', icon: '/static/icon/dashboard.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: '', } ] }, ]; const schoolMenu = [ // { header: 'Apps' }, { title: 'Dashboard', // group: 'apps', name: 'View School Dashboard', icon: '/static/icon/dashboard.png', }, { title: 'School', // group: 'apps', name: 'School', icon: '/static/icon/school.png', }, { title: 'App Version', name: 'App Version', icon: '/static/icon/phone.png', } ]; const teacherMenu = [{ title: 'Dashboard', name: 'Dashboard', icon: '/static/icon/dashboard.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: 'Academic', group: 'Academic', component: 'Academic', icon: '/static/icon/school.png', items: [ { name: 'Subject', title: 'Subject', component: 'Subject', action: '', }, { name: 'Syllabus', title: 'Syllabus', component: 'Syllabus', action: '', }, { name: 'Assignment', title: 'Assignment', component: 'Assignment', action: '', }, { name: 'Routine', title: 'Routine', component: 'Routine', action: '', }, ] }, { title: 'Course', group: 'Course', component: 'Course', icon: '/static/icon/school.png', items: [ { name: 'Course', title: 'Course', component: 'Course', action: '', }, { name: 'Enroll Students', title: 'Enroll Students', component: 'Enroll Students', action: '', }, { name: 'Course Detail', title: 'Course Detail', component: 'Course Detail', action: '', }, { name: 'Course Discussion', title: 'Course Discussion', component: 'Course Discussion', action: '', }, ] }, { title: 'Annoucement', // group: 'apps', name: 'Annoucement', icon: '/static/icon/student.png', }, { title: 'Meeting Event', // group: 'apps', name: 'Meeting Event', icon: '/static/icon/student.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: 'courseAttendance', title: 'Course Attendance', component: 'Course Attendance', action: '', }, // { name: 'userAttendence', title: 'User Attendance', component: 'User Attendence', action: '', }, ] }, { title: 'Exam', group: 'Exam', component: 'Exam', icon: '/static/icon/exam.png', items: [ { name: 'ExamSchedule', title: 'Exam Schedule', component: 'Exam Schedule', action: '', }, { name: 'ExamAttendence', title: 'Exam Attendence', component: 'Exam Attendence', action: '', } ] }, { title: 'Marks', group: 'Mark', component: 'Mark', icon: '/static/icon/marks.png', items: [ { name: 'Mark', title: 'Mark', component: 'Mark', 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: '', }, { name: 'idCard', title: 'Id Card Report', component: 'Id Card Report', action: '', }, { name: 'admitCard', title: 'Admit Card Report', component: 'Admit Card Report', action: '', } ] }, { title: 'Library', group: 'Library', component: 'Library', icon: '/static/icon/library.png', items: [ { name: 'Books', title: 'Books', component: 'Books', action: '', }, { name: 'E-Books', title: 'E-Books', component: 'E-Books', action: '', } ] }, // { // title: 'Meet', // name: 'Meet', // icon: '/static/icon/meet_icon_navigation.png', // } ]; const parentMenu = [{ title: 'Dashboard', name: 'Dashboard', icon: '/static/icon/dashboard.png', }, { title: "Change Student", name: 'Change Students', Vicon: "face", click: e => { // console.log(e); } }, { title: 'Attendance', group: 'Attendance', component: 'Attendance', icon: '/static/icon/attendence.png', items: [ { name: 'courseAttendance', title: 'View Course Attendance', component: 'View Course Attendance', 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 { adminMenu, schoolMenu, teacherMenu, libraryMenu, accountMenu, parentMenu };