Commit cbf69abb68d0ac5755dfaf4d9e9dec876c5bdb19

Authored by Shikha Mishra
1 parent 7fea6db0b6

router of payroll

Showing 2 changed files with 41 additions and 41 deletions   Show diff stats
1 const adminMenu = [ 1 const adminMenu = [
2 // { header: 'Apps' }, 2 // { header: 'Apps' },
3 { 3 {
4 title: 'Dashboard', 4 title: 'Dashboard',
5 // group: 'apps', 5 // group: 'apps',
6 name: 'Dashboard', 6 name: 'Dashboard',
7 icon: '/static/icon/dashboard.png', 7 icon: '/static/icon/dashboard.png',
8 }, 8 },
9 { 9 {
10 title: 'Class', 10 title: 'Class',
11 // group: 'apps', 11 // group: 'apps',
12 name: 'Class', 12 name: 'Class',
13 icon: '/static/icon/class.png', 13 icon: '/static/icon/class.png',
14 }, 14 },
15 { 15 {
16 title: 'Section', 16 title: 'Section',
17 // group: 'apps', 17 // group: 'apps',
18 name: 'Section', 18 name: 'Section',
19 icon: '/static/icon/section.png', 19 icon: '/static/icon/section.png',
20 }, 20 },
21 { 21 {
22 title: 'Subjects', 22 title: 'Subjects',
23 name: 'Subject', 23 name: 'Subject',
24 icon: '/static/icon/subject.png', 24 icon: '/static/icon/subject.png',
25 }, 25 },
26 { 26 {
27 title: 'Parents', 27 title: 'Parents',
28 // group: 'apps', 28 // group: 'apps',
29 name: 'Parents', 29 name: 'Parents',
30 icon: '/static/icon/parents.png', 30 icon: '/static/icon/parents.png',
31 }, 31 },
32 { 32 {
33 title: 'Teachers', 33 title: 'Teachers',
34 // group: '', 34 // group: '',
35 name: 'Teachers', 35 name: 'Teachers',
36 icon: '/static/icon/teacher.png', 36 icon: '/static/icon/teacher.png',
37 }, 37 },
38 { 38 {
39 title: 'Students', 39 title: 'Students',
40 // group: 'apps', 40 // group: 'apps',
41 name: 'Students', 41 name: 'Students',
42 icon: '/static/icon/student.png', 42 icon: '/static/icon/student.png',
43 }, 43 },
44 { 44 {
45 title: 'User', 45 title: 'User',
46 name: 'User', 46 name: 'User',
47 icon: '/static/icon/users.png', 47 icon: '/static/icon/users.png',
48 }, 48 },
49 { 49 {
50 title: 'Attendance', 50 title: 'Attendance',
51 group: 'Attendance', 51 group: 'Attendance',
52 component: 'Attendance', 52 component: 'Attendance',
53 icon: '/static/icon/attendence.png', 53 icon: '/static/icon/attendence.png',
54 items: [ 54 items: [
55 { name: 'StudentAttendence', title: 'Student Attendance', component: 'Student Attendence', action: '', }, 55 { name: 'StudentAttendence', title: 'Student Attendance', component: 'Student Attendence', action: '', },
56 { name: 'TeacherAttendence', title: 'Teacher Attendance', component: 'Teacher Attendence', action: '', }, 56 { name: 'TeacherAttendence', title: 'Teacher Attendance', component: 'Teacher Attendence', action: '', },
57 // { name: 'userAttendence', title: 'User Attendance', component: 'User Attendence', action: '', }, 57 // { name: 'userAttendence', title: 'User Attendance', component: 'User Attendence', action: '', },
58 ] 58 ]
59 }, 59 },
60 { 60 {
61 title: 'Exam', 61 title: 'Exam',
62 group: 'Exam', 62 group: 'Exam',
63 component: 'Exam', 63 component: 'Exam',
64 icon: '/static/icon/exam.png', 64 icon: '/static/icon/exam.png',
65 items: [ 65 items: [
66 { name: 'Exam', title: 'Exam', component: 'Exam', action: '', }, 66 { name: 'Exam', title: 'Exam', component: 'Exam', action: '', },
67 { name: 'ExamSchedule', title: 'Exam Schedule', component: 'Exam Schedule', action: '', }, 67 { name: 'ExamSchedule', title: 'Exam Schedule', component: 'Exam Schedule', action: '', },
68 { name: 'Grade', title: 'Grade', component: 'Grade', action: '', }, 68 { name: 'Grade', title: 'Grade', component: 'Grade', action: '', },
69 // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', }, 69 // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', },
70 ] 70 ]
71 }, 71 },
72 { 72 {
73 title: 'Marks', 73 title: 'Marks',
74 group: 'Mark', 74 group: 'Mark',
75 component: 'Mark', 75 component: 'Mark',
76 icon: '/static/icon/marks.png', 76 icon: '/static/icon/marks.png',
77 items: [ 77 items: [
78 { name: 'Mark', title: 'Mark', component: 'Mark', action: '', }, 78 { name: 'Mark', title: 'Mark', component: 'Mark', action: '', },
79 { name: 'MarkDistribution', title: 'Mark Distribution', component: 'Mark Distribution', action: '', }, 79 { name: 'MarkDistribution', title: 'Mark Distribution', component: 'Mark Distribution', action: '', },
80 { name: 'Promotion', title: 'promotion', component: 'Promotion', action: '', }, 80 { name: 'Promotion', title: 'promotion', component: 'Promotion', action: '', },
81 // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', }, 81 // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', },
82 ] 82 ]
83 }, 83 },
84 { 84 {
85 title: 'Academic', 85 title: 'Academic',
86 group: 'Academic', 86 group: 'Academic',
87 component: 'Academic', 87 component: 'Academic',
88 icon: '/static/icon/school.png', 88 icon: '/static/icon/school.png',
89 items: [ 89 items: [
90 { name: 'Subject', title: 'Subject', component: 'Subject', action: '', }, 90 { name: 'Subject', title: 'Subject', component: 'Subject', action: '', },
91 { name: 'Syllabus', title: 'Syllabus', component: 'Syllabus', action: '', }, 91 { name: 'Syllabus', title: 'Syllabus', component: 'Syllabus', action: '', },
92 { name: 'Assignment', title: 'Assignment', component: 'Assignment', action: '', }, 92 { name: 'Assignment', title: 'Assignment', component: 'Assignment', action: '', },
93 { name: 'Routine', title: 'Routine', component: 'Routine', action: '', }, 93 { name: 'Routine', title: 'Routine', component: 'Routine', action: '', },
94 ] 94 ]
95 }, 95 },
96 { 96 {
97 title: 'Administrator', 97 title: 'Administrator',
98 group: 'Administrator', 98 group: 'Administrator',
99 component: 'Administrator', 99 component: 'Administrator',
100 icon: '/static/icon/adminstrator.png', 100 icon: '/static/icon/adminstrator.png',
101 items: [ 101 items: [
102 { name: 'AcademicYear', title: 'Academic Year', component: 'Academic Year', action: '', }, 102 { name: 'AcademicYear', title: 'Academic Year', component: 'Academic Year', action: '', },
103 // { name: 'systemAdmin', title: 'System Admin', component: 'systemAdmin', action: '', }, 103 // { name: 'systemAdmin', title: 'System Admin', component: 'systemAdmin', action: '', },
104 { name: 'resetPassword', title: 'Change Password', component: 'Change Password', action: '', }, 104 { name: 'resetPassword', title: 'Change Password', component: 'Change Password', action: '', },
105 { name: 'Role', title: 'Role', component: 'Role', action: '', }, 105 { name: 'Role', title: 'Role', component: 'Role', action: '', },
106 { name: 'BulkImport', title: 'Bulk Import', component: 'Bulk Import', action: '', }, 106 { name: 'BulkImport', title: 'Bulk Import', component: 'Bulk Import', action: '', },
107 107
108 ] 108 ]
109 }, 109 },
110 // { 110 {
111 // title: 'Payroll', 111 title: 'Payroll',
112 // group: 'Payroll', 112 group: 'Payroll',
113 // component: 'Payroll', 113 component: 'Payroll',
114 // icon: '/static/icon/dollar.png', 114 icon: '/static/icon/dollar.png',
115 // items: [ 115 items: [
116 // { name: 'salaryTemplate', title: 'Salary Template', component: 'Salary Template', action: '', }, 116 { name: 'salaryTemplate', title: 'Salary Template', component: 'Salary Template', action: '', },
117 // { name: 'hourlyTemplate', title: 'Hourly Template', component: 'Hourly Template', action: '', }, 117 { name: 'hourlyTemplate', title: 'Hourly Template', component: 'Hourly Template', action: '', },
118 // { name: 'manageSalary', title: 'Manage Salary', component: 'Manage Salary', action: '', }, 118 { name: 'manageSalary', title: 'Manage Salary', component: 'Manage Salary', action: '', },
119 // ] 119 ]
120 // }, 120 },
121 { 121 {
122 title: 'Notice Board', 122 title: 'Notice Board',
123 name: 'Notice Board', 123 name: 'Notice Board',
124 icon: '/static/icon/notice board.png', 124 icon: '/static/icon/notice board.png',
125 }, 125 },
126 { 126 {
127 title: 'News', 127 title: 'News',
128 name: 'News', 128 name: 'News',
129 icon: '/static/icon/news.png', 129 icon: '/static/icon/news.png',
130 }, 130 },
131 // { 131 // {
132 // title: 'Reminder', 132 // title: 'Reminder',
133 // name: 'reminder', 133 // name: 'reminder',
134 // icon: 'alarm_add', 134 // icon: 'alarm_add',
135 // }, 135 // },
136 { 136 {
137 title: 'Time Table', 137 title: 'Time Table',
138 name: 'Time Table', 138 name: 'Time Table',
139 icon: '/static/icon/time table.png', 139 icon: '/static/icon/time table.png',
140 }, 140 },
141 { 141 {
142 title: 'Library', 142 title: 'Library',
143 group: 'Library', 143 group: 'Library',
144 component: 'Library', 144 component: 'Library',
145 icon: '/static/icon/library.png', 145 icon: '/static/icon/library.png',
146 items: [ 146 items: [
147 { name: 'LibraryMember', title: ' Library Member', component: 'Library Member', action: '', }, 147 { name: 'LibraryMember', title: ' Library Member', component: 'Library Member', action: '', },
148 { name: 'Books', title: 'Books', component: 'Books', action: '', }, 148 { name: 'Books', title: 'Books', component: 'Books', action: '', },
149 { name: 'Issue', title: ' Issue', component: 'Issue', action: '', }, 149 { name: 'Issue', title: ' Issue', component: 'Issue', action: '', },
150 { name: 'E-Books', title: 'E-Books', component: 'E-Books', action: '', } 150 { name: 'E-Books', title: 'E-Books', component: 'E-Books', action: '', }
151 151
152 ] 152 ]
153 }, 153 },
154 { 154 {
155 title: 'Report', 155 title: 'Report',
156 group: 'Report', 156 group: 'Report',
157 component: 'Report', 157 component: 'Report',
158 icon: '/static/icon/reports.png', 158 icon: '/static/icon/reports.png',
159 items: [ 159 items: [
160 { name: 'studentReport', title: 'Student Report', component: 'Student Report', action: '', }, 160 { name: 'studentReport', title: 'Student Report', component: 'Student Report', action: '', },
161 { name: 'ProgressCardReport', title: 'Progress Card Report', component: 'Progress Card Report', action: '', }, 161 { name: 'ProgressCardReport', title: 'Progress Card Report', component: 'Progress Card Report', action: '', },
162 { name: 'idCard', title: 'Id Card Report', component: 'Id Card Report', action: '', }, 162 { name: 'idCard', title: 'Id Card Report', component: 'Id Card Report', action: '', },
163 { name: 'admitCard', title: 'Admit Card Report', component: 'Admit Card Report', action: '', } 163 { name: 'admitCard', title: 'Admit Card Report', component: 'Admit Card Report', action: '', }
164 ] 164 ]
165 }, 165 },
166 { 166 {
167 title: 'Notification', 167 title: 'Notification',
168 name: 'Notification', 168 name: 'Notification',
169 icon: '/static/icon/notification.png', 169 icon: '/static/icon/notification.png',
170 }, 170 },
171 { 171 {
172 title: 'Social Media', 172 title: 'Social Media',
173 name: 'Social Media', 173 name: 'Social Media',
174 icon: '/static/icon/events.png', 174 icon: '/static/icon/events.png',
175 }, 175 },
176 { 176 {
177 title: 'Gallery', 177 title: 'Gallery',
178 name: 'Gallery', 178 name: 'Gallery',
179 icon: '/static/icon/gallery.png', 179 icon: '/static/icon/gallery.png',
180 }, 180 },
181 { 181 {
182 title: 'Event', 182 title: 'Event',
183 name: 'Event', 183 name: 'Event',
184 icon: '/static/icon/events.png', 184 icon: '/static/icon/events.png',
185 }, 185 },
186 { 186 {
187 title: 'Account', 187 title: 'Account',
188 group: 'Account', 188 group: 'Account',
189 component: 'Account', 189 component: 'Account',
190 icon: '/static/icon/accounts.png', 190 icon: '/static/icon/accounts.png',
191 items: [ 191 items: [
192 { name: 'feeTypes', title: 'Fee Types', component: 'Fee Types', action: '', }, 192 { name: 'feeTypes', title: 'Fee Types', component: 'Fee Types', action: '', },
193 { name: 'Invoice', title: 'Invoice', component: 'Invoice', action: '', }, 193 { name: 'Invoice', title: 'Invoice', component: 'Invoice', action: '', },
194 { name: 'PaymentHistory', title: 'Payment History', component: 'Payment History', action: '', }, 194 { name: 'PaymentHistory', title: 'Payment History', component: 'Payment History', action: '', },
195 { name: 'Expense', title: 'Expense', component: 'Expense', action: '', }, 195 { name: 'Expense', title: 'Expense', component: 'Expense', action: '', },
196 { name: 'Income', title: 'Income', component: 'Income', action: '', }, 196 { name: 'Income', title: 'Income', component: 'Income', action: '', },
197 { name: 'GlobalPayment', title: 'Global Payment', component: 'Global Payment', action: '', } 197 { name: 'GlobalPayment', title: 'Global Payment', component: 'Global Payment', action: '', }
198 ] 198 ]
199 }, 199 },
200 { 200 {
201 title: 'Holiday', 201 title: 'Holiday',
202 name: 'Holiday', 202 name: 'Holiday',
203 icon: '/static/icon/holiday.png', 203 icon: '/static/icon/holiday.png',
204 }, 204 },
205 { 205 {
206 title: 'General Setting', 206 title: 'General Setting',
207 name: 'General Setting', 207 name: 'General Setting',
208 icon: '/static/icon/settings.png', 208 icon: '/static/icon/settings.png',
209 } 209 }
210 ]; 210 ];
211 211
212 const libraryMenu = [{ 212 const libraryMenu = [{
213 title: 'Library', 213 title: 'Library',
214 group: 'Library', 214 group: 'Library',
215 component: 'Library', 215 component: 'Library',
216 icon: '/static/schoolIcons/Library.png', 216 icon: '/static/schoolIcons/Library.png',
217 items: [ 217 items: [
218 { name: 'libraryMember', title: ' Library Member', component: 'libraryMember', action: '', }, 218 { name: 'libraryMember', title: ' Library Member', component: 'libraryMember', action: '', },
219 { name: 'Books', title: 'Books', component: 'Books', action: '', }, 219 { name: 'Books', title: 'Books', component: 'Books', action: '', },
220 { name: 'Issue', title: ' Issue', component: 'Issue', action: '', }, 220 { name: 'Issue', title: ' Issue', component: 'Issue', action: '', },
221 { name: 'eBooks', title: 'E-Books', component: 'eBooks', action: '', } 221 { name: 'eBooks', title: 'E-Books', component: 'eBooks', action: '', }
222 222
223 ] 223 ]
224 }]; 224 }];
225 225
226 const accountMenu = [{ 226 const accountMenu = [{
227 title: 'Account', 227 title: 'Account',
228 group: 'Account', 228 group: 'Account',
229 component: 'Account', 229 component: 'Account',
230 icon: '/static/schoolIcons/Account.png', 230 icon: '/static/schoolIcons/Account.png',
231 items: [ 231 items: [
232 { name: 'feeTypes', title: 'Fee Types', component: 'feeTypes', action: '', }, 232 { name: 'feeTypes', title: 'Fee Types', component: 'feeTypes', action: '', },
233 { name: 'Invoice', title: 'Invoice', component: 'Invoice', action: '', }, 233 { name: 'Invoice', title: 'Invoice', component: 'Invoice', action: '', },
234 { name: 'paymentHistory', title: 'Payment History', component: 'paymentHistory', action: '', }, 234 { name: 'paymentHistory', title: 'Payment History', component: 'paymentHistory', action: '', },
235 { name: 'Expense', title: 'Expense', component: 'Expense', action: '', }, 235 { name: 'Expense', title: 'Expense', component: 'Expense', action: '', },
236 { name: 'Income', title: 'Income', component: 'Income', action: '', }, 236 { name: 'Income', title: 'Income', component: 'Income', action: '', },
237 { name: 'GlobalPayment', title: 'Global Payment', component: 'GlobalPayment', action: '', } 237 { name: 'GlobalPayment', title: 'Global Payment', component: 'GlobalPayment', action: '', }
238 ] 238 ]
239 }]; 239 }];
240 240
241 const schoolMenu = [ 241 const schoolMenu = [
242 // { header: 'Apps' }, 242 // { header: 'Apps' },
243 { 243 {
244 title: 'Dashboard', 244 title: 'Dashboard',
245 // group: 'apps', 245 // group: 'apps',
246 name: 'View School Dashboard', 246 name: 'View School Dashboard',
247 icon: '/static/icon/dashboard.png', 247 icon: '/static/icon/dashboard.png',
248 }, 248 },
249 { 249 {
250 title: 'School', 250 title: 'School',
251 // group: 'apps', 251 // group: 'apps',
252 name: 'School', 252 name: 'School',
253 icon: '/static/schoolIcons/Dashboard.png', 253 icon: '/static/schoolIcons/Dashboard.png',
254 } 254 }
255 ]; 255 ];
256 256
257 const teacherMenu = [ 257 const teacherMenu = [
258 { 258 {
259 title: 'Dashboard', 259 title: 'Dashboard',
260 name: 'School', 260 name: 'School',
261 icon: '/static/icon/dashboard.png', 261 icon: '/static/icon/dashboard.png',
262 }, 262 },
263 { 263 {
264 title: 'Parents', 264 title: 'Parents',
265 // group: 'apps', 265 // group: 'apps',
266 name: 'Parents', 266 name: 'Parents',
267 icon: '/static/icon/parents.png', 267 icon: '/static/icon/parents.png',
268 }, 268 },
269 { 269 {
270 title: 'Teachers', 270 title: 'Teachers',
271 // group: '', 271 // group: '',
272 name: 'Teachers', 272 name: 'Teachers',
273 icon: '/static/icon/teacher.png', 273 icon: '/static/icon/teacher.png',
274 }, 274 },
275 { 275 {
276 title: 'Students', 276 title: 'Students',
277 // group: 'apps', 277 // group: 'apps',
278 name: 'Students', 278 name: 'Students',
279 icon: '/static/icon/student.png', 279 icon: '/static/icon/student.png',
280 }, 280 },
281 { 281 {
282 title: 'Academic', 282 title: 'Academic',
283 group: 'Academic', 283 group: 'Academic',
284 component: 'Academic', 284 component: 'Academic',
285 icon: '/static/icon/school.png', 285 icon: '/static/icon/school.png',
286 items: [ 286 items: [
287 { name: 'Subject', title: 'Subject', component: 'Subject', action: '', }, 287 { name: 'Subject', title: 'Subject', component: 'Subject', action: '', },
288 { name: 'Syllabus', title: 'Syllabus', component: 'Syllabus', action: '', }, 288 { name: 'Syllabus', title: 'Syllabus', component: 'Syllabus', action: '', },
289 { name: 'Assignment', title: 'Assignment', component: 'Assignment', action: '', }, 289 { name: 'Assignment', title: 'Assignment', component: 'Assignment', action: '', },
290 { name: 'Routine', title: 'Routine', component: 'Routine', action: '', }, 290 { name: 'Routine', title: 'Routine', component: 'Routine', action: '', },
291 ] 291 ]
292 }, 292 },
293 { 293 {
294 title: 'Attendance', 294 title: 'Attendance',
295 group: 'Attendance', 295 group: 'Attendance',
296 component: 'Attendance', 296 component: 'Attendance',
297 icon: '/static/icon/attendence.png', 297 icon: '/static/icon/attendence.png',
298 items: [ 298 items: [
299 { name: 'StudentAttendence', title: 'Student Attendance', component: 'Student Attendence', action: '', }, 299 { name: 'StudentAttendence', title: 'Student Attendance', component: 'Student Attendence', action: '', },
300 { name: 'TeacherAttendence', title: 'Teacher Attendance', component: 'Teacher Attendence', action: '', }, 300 { name: 'TeacherAttendence', title: 'Teacher Attendance', component: 'Teacher Attendence', action: '', },
301 // { name: 'userAttendence', title: 'User Attendance', component: 'User Attendence', action: '', }, 301 // { name: 'userAttendence', title: 'User Attendance', component: 'User Attendence', action: '', },
302 ] 302 ]
303 }, 303 },
304 { 304 {
305 title: 'Exam', 305 title: 'Exam',
306 group: 'Exam', 306 group: 'Exam',
307 component: 'Exam', 307 component: 'Exam',
308 icon: '/static/icon/exam.png', 308 icon: '/static/icon/exam.png',
309 items: [ 309 items: [
310 { name: 'ExamSchedule', title: 'Exam Schedule', component: 'Exam Schedule', action: '', }, 310 { name: 'ExamSchedule', title: 'Exam Schedule', component: 'Exam Schedule', action: '', },
311 { name: 'ExamAttendence', title: 'Exam Attendence', component: 'Exam Attendence', action: '', } 311 { name: 'ExamAttendence', title: 'Exam Attendence', component: 'Exam Attendence', action: '', }
312 ] 312 ]
313 }, 313 },
314 { 314 {
315 title: 'Marks', 315 title: 'Marks',
316 group: 'Mark', 316 group: 'Mark',
317 component: 'Mark', 317 component: 'Mark',
318 icon: '/static/icon/marks.png', 318 icon: '/static/icon/marks.png',
319 items: [ 319 items: [
320 { name: 'Mark', title: 'Mark', component: 'Mark', action: '', } 320 { name: 'Mark', title: 'Mark', component: 'Mark', action: '', }
321 ] 321 ]
322 }, 322 },
323 { 323 {
324 title: 'Report', 324 title: 'Report',
325 group: 'Report', 325 group: 'Report',
326 component: 'Report', 326 component: 'Report',
327 icon: '/static/icon/reports.png', 327 icon: '/static/icon/reports.png',
328 items: [ 328 items: [
329 { name: 'studentReport', title: 'Student Report', component: 'Student Report', action: '', }, 329 { name: 'studentReport', title: 'Student Report', component: 'Student Report', action: '', },
330 { name: 'ProgressCardReport', title: 'Progress Card Report', component: 'Progress Card Report', action: '', }, 330 { name: 'ProgressCardReport', title: 'Progress Card Report', component: 'Progress Card Report', action: '', },
331 { name: 'idCard', title: 'Id Card Report', component: 'Id Card Report', action: '', }, 331 { name: 'idCard', title: 'Id Card Report', component: 'Id Card Report', action: '', },
332 { name: 'admitCard', title: 'Admit Card Report', component: 'Admit Card Report', action: '', } 332 { name: 'admitCard', title: 'Admit Card Report', component: 'Admit Card Report', action: '', }
333 ] 333 ]
334 }, 334 },
335 { 335 {
336 title: 'Library', 336 title: 'Library',
337 group: 'Library', 337 group: 'Library',
338 component: 'Library', 338 component: 'Library',
339 icon: '/static/icon/library.png', 339 icon: '/static/icon/library.png',
340 items: [ 340 items: [
341 { name: 'Books', title: 'Books', component: 'Books', action: '', }, 341 { name: 'Books', title: 'Books', component: 'Books', action: '', },
342 { name: 'E-Books', title: 'E-Books', component: 'E-Books', action: '', } 342 { name: 'E-Books', title: 'E-Books', component: 'E-Books', action: '', }
343 343
344 ] 344 ]
345 }, 345 },
346 ]; 346 ];
347 347
348 // reorder menu 348 // reorder menu
349 // Menu.forEach((item) => { 349 // Menu.forEach((item) => {
350 // if (item.items) { 350 // if (item.items) {
351 // item.items.sort((x, y) => { 351 // item.items.sort((x, y) => {
352 // let textA = x.title.toUpperCase(); 352 // let textA = x.title.toUpperCase();
353 // let textB = y.title.toUpperCase(); 353 // let textB = y.title.toUpperCase();
354 // return (textA < textB) ? -1 : (textA > textB) ? 1 : 0; 354 // return (textA < textB) ? -1 : (textA > textB) ? 1 : 0;
355 // }); 355 // });
356 // } 356 // }
357 // }); 357 // });
358 358
359 export default { adminMenu, schoolMenu, teacherMenu, libraryMenu, accountMenu }; 359 export default { adminMenu, schoolMenu, teacherMenu, libraryMenu, accountMenu };
src/router/paths.js
1 export default [{ 1 export default [{
2 path: '*', 2 path: '*',
3 meta: { 3 meta: {
4 public: true, 4 public: true,
5 }, 5 },
6 redirect: { 6 redirect: {
7 path: '/404' 7 path: '/404'
8 } 8 }
9 }, 9 },
10 { 10 {
11 path: '/404', 11 path: '/404',
12 meta: { 12 meta: {
13 public: true, 13 public: true,
14 }, 14 },
15 name: 'NotFound', 15 name: 'NotFound',
16 component: () => 16 component: () =>
17 import ( 17 import (
18 /* webpackChunkName: "routes" */ 18 /* webpackChunkName: "routes" */
19 /* webpackMode: "lazy-once" */ 19 /* webpackMode: "lazy-once" */
20 `@/pages/NotFound/NotFound.vue` 20 `@/pages/NotFound/NotFound.vue`
21 ) 21 )
22 }, 22 },
23 { 23 {
24 path: '*', 24 path: '*',
25 meta: {}, 25 meta: {},
26 name: 'dashboardAdmin', 26 name: 'dashboardAdmin',
27 props: (route) => ({ type: route.query.type }), 27 props: (route) => ({ type: route.query.type }),
28 component: () => 28 component: () =>
29 import ( 29 import (
30 /* webpackChunkName: "routes" */ 30 /* webpackChunkName: "routes" */
31 /* webpackMode: "lazy-once" */ 31 /* webpackMode: "lazy-once" */
32 `@/pages/Dashboard/dashboard.vue` 32 `@/pages/Dashboard/dashboard.vue`
33 ) 33 )
34 }, 34 },
35 { 35 {
36 path: '/500', 36 path: '/500',
37 meta: { 37 meta: {
38 public: true, 38 public: true,
39 }, 39 },
40 name: 'ServerError', 40 name: 'ServerError',
41 component: () => 41 component: () =>
42 import ( 42 import (
43 /* webpackChunkName: "routes" */ 43 /* webpackChunkName: "routes" */
44 /* webpackMode: "lazy-once" */ 44 /* webpackMode: "lazy-once" */
45 `@/pages/NotFound/Error.vue` 45 `@/pages/NotFound/Error.vue`
46 ) 46 )
47 }, 47 },
48 { 48 {
49 path: '/changepassword', 49 path: '/changepassword',
50 meta: {}, 50 meta: {},
51 name: 'changepassword', 51 name: 'changepassword',
52 props: (route) => ({ type: route.query.type }), 52 props: (route) => ({ type: route.query.type }),
53 component: () => 53 component: () =>
54 import ( 54 import (
55 /* webpackChunkName: "routes" */ 55 /* webpackChunkName: "routes" */
56 /* webpackMode: "lazy-once" */ 56 /* webpackMode: "lazy-once" */
57 `@/pages/Authentication/changepassword.vue` 57 `@/pages/Authentication/changepassword.vue`
58 ) 58 )
59 }, 59 },
60 { 60 {
61 path: '/teachers', 61 path: '/teachers',
62 meta: { breadcrumb: false }, 62 meta: { breadcrumb: false },
63 name: 'Teachers', 63 name: 'Teachers',
64 component: () => 64 component: () =>
65 import ( 65 import (
66 /* webpackChunkName: "routes" */ 66 /* webpackChunkName: "routes" */
67 /* webpackMode: "lazy-once" */ 67 /* webpackMode: "lazy-once" */
68 `@/pages/Teachers/teachers.vue` 68 `@/pages/Teachers/teachers.vue`
69 ) 69 )
70 }, 70 },
71 { 71 {
72 path: '/', 72 path: '/',
73 meta: { 73 meta: {
74 public: true, 74 public: true,
75 }, 75 },
76 name: 'Login', 76 name: 'Login',
77 component: () => 77 component: () =>
78 import ( 78 import (
79 /* webpackChunkName: "routes" */ 79 /* webpackChunkName: "routes" */
80 /* webpackMode: "lazy-once" */ 80 /* webpackMode: "lazy-once" */
81 `@/pages/Authentication/Login.vue` 81 `@/pages/Authentication/Login.vue`
82 ) 82 )
83 }, 83 },
84 { 84 {
85 path: '/forgetpassword', 85 path: '/forgetpassword',
86 meta: { 86 meta: {
87 public: true, 87 public: true,
88 }, 88 },
89 name: 'forgetpassword', 89 name: 'forgetpassword',
90 component: () => 90 component: () =>
91 import ( 91 import (
92 /* webpackChunkName: "routes" */ 92 /* webpackChunkName: "routes" */
93 /* webpackMode: "lazy-once" */ 93 /* webpackMode: "lazy-once" */
94 `@/pages/Authentication/forgetpassword.vue` 94 `@/pages/Authentication/forgetpassword.vue`
95 ) 95 )
96 }, 96 },
97 { 97 {
98 path: '/students', 98 path: '/students',
99 meta: {}, 99 meta: {},
100 name: 'Students', 100 name: 'Students',
101 props: (route) => ({ type: route.query.type }), 101 props: (route) => ({ type: route.query.type }),
102 component: () => 102 component: () =>
103 import ( 103 import (
104 /* webpackChunkName: "routes" */ 104 /* webpackChunkName: "routes" */
105 /* webpackMode: "lazy-once" */ 105 /* webpackMode: "lazy-once" */
106 `@/pages/Students/students.vue` 106 `@/pages/Students/students.vue`
107 ) 107 )
108 }, 108 },
109 { 109 {
110 path: '/class', 110 path: '/class',
111 meta: {}, 111 meta: {},
112 name: 'Class', 112 name: 'Class',
113 props: (route) => ({ type: route.query.type }), 113 props: (route) => ({ type: route.query.type }),
114 component: () => 114 component: () =>
115 import ( 115 import (
116 /* webpackChunkName: "routes" */ 116 /* webpackChunkName: "routes" */
117 /* webpackMode: "lazy-once" */ 117 /* webpackMode: "lazy-once" */
118 `@/pages/Class/addclass.vue` 118 `@/pages/Class/addclass.vue`
119 ) 119 )
120 }, 120 },
121 { 121 {
122 path: '/section', 122 path: '/section',
123 meta: {}, 123 meta: {},
124 name: 'Section', 124 name: 'Section',
125 props: (route) => ({ type: route.query.type }), 125 props: (route) => ({ type: route.query.type }),
126 component: () => 126 component: () =>
127 import ( 127 import (
128 /* webpackChunkName: "routes" */ 128 /* webpackChunkName: "routes" */
129 /* webpackMode: "lazy-once" */ 129 /* webpackMode: "lazy-once" */
130 `@/pages/Section/section.vue` 130 `@/pages/Section/section.vue`
131 ) 131 )
132 }, 132 },
133 { 133 {
134 path: '/noticeBoard', 134 path: '/noticeBoard',
135 meta: {}, 135 meta: {},
136 name: 'Notice Board', 136 name: 'Notice Board',
137 props: (route) => ({ type: route.query.type }), 137 props: (route) => ({ type: route.query.type }),
138 component: () => 138 component: () =>
139 import ( 139 import (
140 /* webpackChunkName: "routes" */ 140 /* webpackChunkName: "routes" */
141 /* webpackMode: "lazy-once" */ 141 /* webpackMode: "lazy-once" */
142 `@/pages/NoticeBoard/noticeBoard.vue` 142 `@/pages/NoticeBoard/noticeBoard.vue`
143 ) 143 )
144 }, 144 },
145 { 145 {
146 path: '/news', 146 path: '/news',
147 meta: {}, 147 meta: {},
148 name: 'News', 148 name: 'News',
149 props: (route) => ({ type: route.query.type }), 149 props: (route) => ({ type: route.query.type }),
150 component: () => 150 component: () =>
151 import ( 151 import (
152 /* webpackChunkName: "routes" */ 152 /* webpackChunkName: "routes" */
153 /* webpackMode: "lazy-once" */ 153 /* webpackMode: "lazy-once" */
154 `@/pages/News/news.vue` 154 `@/pages/News/news.vue`
155 ) 155 )
156 }, 156 },
157 // { 157 // {
158 // path: '/reminder', 158 // path: '/reminder',
159 // meta: { }, 159 // meta: { },
160 // name: 'reminder', 160 // name: 'reminder',
161 // props: (route) => ({ type: route.query.type }), 161 // props: (route) => ({ type: route.query.type }),
162 // component: () => import( 162 // component: () => import(
163 // /* webpackChunkName: "routes" */ 163 // /* webpackChunkName: "routes" */
164 // /* webpackMode: "lazy-once" */ 164 // /* webpackMode: "lazy-once" */
165 // `@/pages/Reminder/reminder.vue` 165 // `@/pages/Reminder/reminder.vue`
166 // ) 166 // )
167 // }, 167 // },
168 { 168 {
169 path: '/timeTable', 169 path: '/timeTable',
170 meta: {}, 170 meta: {},
171 name: 'Time Table', 171 name: 'Time Table',
172 props: (route) => ({ type: route.query.type }), 172 props: (route) => ({ type: route.query.type }),
173 component: () => 173 component: () =>
174 import ( 174 import (
175 /* webpackChunkName: "routes" */ 175 /* webpackChunkName: "routes" */
176 /* webpackMode: "lazy-once" */ 176 /* webpackMode: "lazy-once" */
177 `@/pages/TimeTable/timeTable.vue` 177 `@/pages/TimeTable/timeTable.vue`
178 ) 178 )
179 }, 179 },
180 { 180 {
181 path: '/notification', 181 path: '/notification',
182 meta: {}, 182 meta: {},
183 name: 'Notification', 183 name: 'Notification',
184 props: (route) => ({ type: route.query.type }), 184 props: (route) => ({ type: route.query.type }),
185 component: () => 185 component: () =>
186 import ( 186 import (
187 /* webpackChunkName: "routes" */ 187 /* webpackChunkName: "routes" */
188 /* webpackMode: "lazy-once" */ 188 /* webpackMode: "lazy-once" */
189 `@/pages/Notification/notification.vue` 189 `@/pages/Notification/notification.vue`
190 ) 190 )
191 }, 191 },
192 { 192 {
193 path: '/parents', 193 path: '/parents',
194 meta: {}, 194 meta: {},
195 name: 'Parents', 195 name: 'Parents',
196 props: (route) => ({ type: route.query.type }), 196 props: (route) => ({ type: route.query.type }),
197 component: () => 197 component: () =>
198 import ( 198 import (
199 /* webpackChunkName: "routes" */ 199 /* webpackChunkName: "routes" */
200 /* webpackMode: "lazy-once" */ 200 /* webpackMode: "lazy-once" */
201 `@/pages/Parent/parents.vue` 201 `@/pages/Parent/parents.vue`
202 ) 202 )
203 }, 203 },
204 { 204 {
205 path: '/subject', 205 path: '/subject',
206 meta: {}, 206 meta: {},
207 name: 'Subject', 207 name: 'Subject',
208 props: (route) => ({ type: route.query.type }), 208 props: (route) => ({ type: route.query.type }),
209 component: () => 209 component: () =>
210 import ( 210 import (
211 /* webpackChunkName: "routes" */ 211 /* webpackChunkName: "routes" */
212 /* webpackMode: "lazy-once" */ 212 /* webpackMode: "lazy-once" */
213 `@/pages/Subjects/subjects.vue` 213 `@/pages/Subjects/subjects.vue`
214 ) 214 )
215 }, 215 },
216 { 216 {
217 path: '/dashboard', 217 path: '/dashboard',
218 meta: {}, 218 meta: {},
219 name: 'Dashboard', 219 name: 'Dashboard',
220 props: (route) => ({ type: route.query.type }), 220 props: (route) => ({ type: route.query.type }),
221 component: () => 221 component: () =>
222 import ( 222 import (
223 /* webpackChunkName: "routes" */ 223 /* webpackChunkName: "routes" */
224 /* webpackMode: "lazy-once" */ 224 /* webpackMode: "lazy-once" */
225 `@/pages/Dashboard/dashboard.vue` 225 `@/pages/Dashboard/dashboard.vue`
226 ) 226 )
227 }, 227 },
228 { 228 {
229 path: '/socialMedia', 229 path: '/socialMedia',
230 meta: {}, 230 meta: {},
231 name: 'Social Media', 231 name: 'Social Media',
232 props: (route) => ({ type: route.query.type }), 232 props: (route) => ({ type: route.query.type }),
233 component: () => 233 component: () =>
234 import ( 234 import (
235 /* webpackChunkName: "routes" */ 235 /* webpackChunkName: "routes" */
236 /* webpackMode: "lazy-once" */ 236 /* webpackMode: "lazy-once" */
237 `@/pages/socialMedia/socialMedia.vue` 237 `@/pages/socialMedia/socialMedia.vue`
238 ) 238 )
239 }, 239 },
240 { 240 {
241 path: '/gallery', 241 path: '/gallery',
242 meta: {}, 242 meta: {},
243 name: 'Gallery', 243 name: 'Gallery',
244 props: (route) => ({ type: route.query.type }), 244 props: (route) => ({ type: route.query.type }),
245 component: () => 245 component: () =>
246 import ( 246 import (
247 /* webpackChunkName: "routes" */ 247 /* webpackChunkName: "routes" */
248 /* webpackMode: "lazy-once" */ 248 /* webpackMode: "lazy-once" */
249 `@/pages/Gallery/gallery.vue` 249 `@/pages/Gallery/gallery.vue`
250 ) 250 )
251 }, 251 },
252 { 252 {
253 path: '/event', 253 path: '/event',
254 meta: {}, 254 meta: {},
255 name: 'Event', 255 name: 'Event',
256 props: (route) => ({ type: route.query.type }), 256 props: (route) => ({ type: route.query.type }),
257 component: () => 257 component: () =>
258 import ( 258 import (
259 /* webpackChunkName: "routes" */ 259 /* webpackChunkName: "routes" */
260 /* webpackMode: "lazy-once" */ 260 /* webpackMode: "lazy-once" */
261 `@/pages/Event/event.vue` 261 `@/pages/Event/event.vue`
262 ) 262 )
263 }, 263 },
264 { 264 {
265 path: '/holiday', 265 path: '/holiday',
266 meta: {}, 266 meta: {},
267 name: 'Holiday', 267 name: 'Holiday',
268 props: (route) => ({ type: route.query.type }), 268 props: (route) => ({ type: route.query.type }),
269 component: () => 269 component: () =>
270 import ( 270 import (
271 /* webpackChunkName: "routes" */ 271 /* webpackChunkName: "routes" */
272 /* webpackMode: "lazy-once" */ 272 /* webpackMode: "lazy-once" */
273 `@/pages/Holiday/holiday.vue` 273 `@/pages/Holiday/holiday.vue`
274 ) 274 )
275 }, 275 },
276 { 276 {
277 path: '/user', 277 path: '/user',
278 meta: {}, 278 meta: {},
279 name: 'User', 279 name: 'User',
280 props: (route) => ({ type: route.query.type }), 280 props: (route) => ({ type: route.query.type }),
281 component: () => 281 component: () =>
282 import ( 282 import (
283 /* webpackChunkName: "routes" */ 283 /* webpackChunkName: "routes" */
284 /* webpackMode: "lazy-once" */ 284 /* webpackMode: "lazy-once" */
285 `@/pages/User/user.vue` 285 `@/pages/User/user.vue`
286 ) 286 )
287 }, 287 },
288 { 288 {
289 path: '/AttendenceStudent', 289 path: '/AttendenceStudent',
290 meta: {}, 290 meta: {},
291 name: 'Student Attendence', 291 name: 'Student Attendence',
292 props: (route) => ({ type: route.query.type }), 292 props: (route) => ({ type: route.query.type }),
293 component: () => 293 component: () =>
294 import ( 294 import (
295 /* webpackChunkName: "routes" */ 295 /* webpackChunkName: "routes" */
296 /* webpackMode: "lazy-once" */ 296 /* webpackMode: "lazy-once" */
297 `@/pages/Attendence/studentAttendence.vue` 297 `@/pages/Attendence/studentAttendence.vue`
298 ) 298 )
299 }, 299 },
300 { 300 {
301 path: '/AttendenceTeacher', 301 path: '/AttendenceTeacher',
302 meta: {}, 302 meta: {},
303 name: 'Teacher Attendence', 303 name: 'Teacher Attendence',
304 props: (route) => ({ type: route.query.type }), 304 props: (route) => ({ type: route.query.type }),
305 component: () => 305 component: () =>
306 import ( 306 import (
307 /* webpackChunkName: "routes" */ 307 /* webpackChunkName: "routes" */
308 /* webpackMode: "lazy-once" */ 308 /* webpackMode: "lazy-once" */
309 `@/pages/Attendence/teacherAttendence.vue` 309 `@/pages/Attendence/teacherAttendence.vue`
310 ) 310 )
311 }, 311 },
312 // { 312 {
313 // path: '/salaryTemplate', 313 path: '/salaryTemplate',
314 // meta: {}, 314 meta: {},
315 // name: 'Salary Template', 315 name: 'Salary Template',
316 // props: (route) => ({ type: route.query.type }), 316 props: (route) => ({ type: route.query.type }),
317 // component: () => 317 component: () =>
318 // import ( 318 import (
319 // `@/pages/Payroll/salaryTemplate.vue` 319 `@/pages/Payroll/salaryTemplate.vue`
320 // ) 320 )
321 // }, 321 },
322 // { 322 {
323 // path: '/hourlyTemplate', 323 path: '/hourlyTemplate',
324 // meta: {}, 324 meta: {},
325 // name: 'Hourly Template', 325 name: 'Hourly Template',
326 // props: (route) => ({ type: route.query.type }), 326 props: (route) => ({ type: route.query.type }),
327 // component: () => 327 component: () =>
328 // import ( 328 import (
329 // `@/pages/Payroll/hourlyTemplate.vue` 329 `@/pages/Payroll/hourlyTemplate.vue`
330 // ) 330 )
331 // }, 331 },
332 // { 332 {
333 // path: '/manageSalary', 333 path: '/manageSalary',
334 // meta: {}, 334 meta: {},
335 // name: 'Manage Salary', 335 name: 'Manage Salary',
336 // props: (route) => ({ type: route.query.type }), 336 props: (route) => ({ type: route.query.type }),
337 // component: () => 337 component: () =>
338 // import ( 338 import (
339 // `@/pages/Payroll/manageSalary.vue` 339 `@/pages/Payroll/manageSalary.vue`
340 // ) 340 )
341 // }, 341 },
342 { 342 {
343 path: '/AttendenceUser', 343 path: '/AttendenceUser',
344 meta: {}, 344 meta: {},
345 name: 'User Attendence', 345 name: 'User Attendence',
346 props: (route) => ({ type: route.query.type }), 346 props: (route) => ({ type: route.query.type }),
347 component: () => 347 component: () =>
348 import ( 348 import (
349 /* webpackChunkName: "routes" */ 349 /* webpackChunkName: "routes" */
350 /* webpackMode: "lazy-once" */ 350 /* webpackMode: "lazy-once" */
351 `@/pages/Attendence/userAttendence.vue` 351 `@/pages/Attendence/userAttendence.vue`
352 ) 352 )
353 }, 353 },
354 { 354 {
355 path: '/feeTypes', 355 path: '/feeTypes',
356 meta: {}, 356 meta: {},
357 name: 'Fee Types', 357 name: 'Fee Types',
358 props: (route) => ({ type: route.query.type }), 358 props: (route) => ({ type: route.query.type }),
359 component: () => 359 component: () =>
360 import ( 360 import (
361 /* webpackChunkName: "routes" */ 361 /* webpackChunkName: "routes" */
362 /* webpackMode: "lazy-once" */ 362 /* webpackMode: "lazy-once" */
363 `@/pages/Account/feeTypes.vue` 363 `@/pages/Account/feeTypes.vue`
364 ) 364 )
365 }, 365 },
366 { 366 {
367 path: '/invoice', 367 path: '/invoice',
368 meta: {}, 368 meta: {},
369 name: 'Invoice', 369 name: 'Invoice',
370 props: (route) => ({ type: route.query.type }), 370 props: (route) => ({ type: route.query.type }),
371 component: () => 371 component: () =>
372 import ( 372 import (
373 /* webpackChunkName: "routes" */ 373 /* webpackChunkName: "routes" */
374 /* webpackMode: "lazy-once" */ 374 /* webpackMode: "lazy-once" */
375 `@/pages/Account/invoice.vue` 375 `@/pages/Account/invoice.vue`
376 ) 376 )
377 }, 377 },
378 { 378 {
379 path: '/paymentHistory', 379 path: '/paymentHistory',
380 meta: {}, 380 meta: {},
381 name: 'Payment History', 381 name: 'Payment History',
382 props: (route) => ({ type: route.query.type }), 382 props: (route) => ({ type: route.query.type }),
383 component: () => 383 component: () =>
384 import ( 384 import (
385 /* webpackChunkName: "routes" */ 385 /* webpackChunkName: "routes" */
386 /* webpackMode: "lazy-once" */ 386 /* webpackMode: "lazy-once" */
387 `@/pages/Account/paymentHistory.vue` 387 `@/pages/Account/paymentHistory.vue`
388 ) 388 )
389 }, 389 },
390 { 390 {
391 path: '/expense', 391 path: '/expense',
392 meta: {}, 392 meta: {},
393 name: 'Expense', 393 name: 'Expense',
394 props: (route) => ({ type: route.query.type }), 394 props: (route) => ({ type: route.query.type }),
395 component: () => 395 component: () =>
396 import ( 396 import (
397 /* webpackChunkName: "routes" */ 397 /* webpackChunkName: "routes" */
398 /* webpackMode: "lazy-once" */ 398 /* webpackMode: "lazy-once" */
399 `@/pages/Account/expense.vue` 399 `@/pages/Account/expense.vue`
400 ) 400 )
401 }, 401 },
402 { 402 {
403 path: '/income', 403 path: '/income',
404 meta: {}, 404 meta: {},
405 name: 'Income', 405 name: 'Income',
406 props: (route) => ({ type: route.query.type }), 406 props: (route) => ({ type: route.query.type }),
407 component: () => 407 component: () =>
408 import ( 408 import (
409 /* webpackChunkName: "routes" */ 409 /* webpackChunkName: "routes" */
410 /* webpackMode: "lazy-once" */ 410 /* webpackMode: "lazy-once" */
411 `@/pages/Account/income.vue` 411 `@/pages/Account/income.vue`
412 ) 412 )
413 }, 413 },
414 { 414 {
415 path: '/libraryMember', 415 path: '/libraryMember',
416 meta: {}, 416 meta: {},
417 name: 'Library Member', 417 name: 'Library Member',
418 props: (route) => ({ type: route.query.type }), 418 props: (route) => ({ type: route.query.type }),
419 component: () => 419 component: () =>
420 import ( 420 import (
421 /* webpackChunkName: "routes" */ 421 /* webpackChunkName: "routes" */
422 /* webpackMode: "lazy-once" */ 422 /* webpackMode: "lazy-once" */
423 `@/pages/Library/member.vue` 423 `@/pages/Library/member.vue`
424 ) 424 )
425 }, 425 },
426 { 426 {
427 path: '/books', 427 path: '/books',
428 meta: {}, 428 meta: {},
429 name: 'Books', 429 name: 'Books',
430 props: (route) => ({ type: route.query.type }), 430 props: (route) => ({ type: route.query.type }),
431 component: () => 431 component: () =>
432 import ( 432 import (
433 /* webpackChunkName: "routes" */ 433 /* webpackChunkName: "routes" */
434 /* webpackMode: "lazy-once" */ 434 /* webpackMode: "lazy-once" */
435 `@/pages/Library/books.vue` 435 `@/pages/Library/books.vue`
436 ) 436 )
437 }, 437 },
438 { 438 {
439 path: '/issue', 439 path: '/issue',
440 meta: {}, 440 meta: {},
441 name: 'Issue', 441 name: 'Issue',
442 props: (route) => ({ type: route.query.type }), 442 props: (route) => ({ type: route.query.type }),
443 component: () => 443 component: () =>
444 import ( 444 import (
445 /* webpackChunkName: "routes" */ 445 /* webpackChunkName: "routes" */
446 /* webpackMode: "lazy-once" */ 446 /* webpackMode: "lazy-once" */
447 `@/pages/Library/issue.vue` 447 `@/pages/Library/issue.vue`
448 ) 448 )
449 }, 449 },
450 { 450 {
451 path: '/e-books', 451 path: '/e-books',
452 meta: {}, 452 meta: {},
453 name: 'E-Books', 453 name: 'E-Books',
454 props: (route) => ({ type: route.query.type }), 454 props: (route) => ({ type: route.query.type }),
455 component: () => 455 component: () =>
456 import ( 456 import (
457 /* webpackChunkName: "routes" */ 457 /* webpackChunkName: "routes" */
458 /* webpackMode: "lazy-once" */ 458 /* webpackMode: "lazy-once" */
459 `@/pages/Library/eBook.vue` 459 `@/pages/Library/eBook.vue`
460 ) 460 )
461 }, 461 },
462 { 462 {
463 path: '/invoiceId/:invoiceid', 463 path: '/invoiceId/:invoiceid',
464 meta: {}, 464 meta: {},
465 name: 'Edit Invoice', 465 name: 'Edit Invoice',
466 // props: (route) => ({ type: route.query.type }), 466 // props: (route) => ({ type: route.query.type }),
467 component: () => 467 component: () =>
468 import ( 468 import (
469 /* webpackChunkName: "routes" */ 469 /* webpackChunkName: "routes" */
470 /* webpackMode: "lazy-once" */ 470 /* webpackMode: "lazy-once" */
471 `@/pages/Account/editInvoice.vue` 471 `@/pages/Account/editInvoice.vue`
472 ) 472 )
473 }, 473 },
474 { 474 {
475 path: '/StudentsAttendence/:id', 475 path: '/StudentsAttendence/:id',
476 meta: {}, 476 meta: {},
477 name: 'View Students Attendence', 477 name: 'View Students Attendence',
478 props: (route) => ({ type: route.query.type }), 478 props: (route) => ({ type: route.query.type }),
479 component: () => 479 component: () =>
480 import ( 480 import (
481 /* webpackChunkName: "routes" */ 481 /* webpackChunkName: "routes" */
482 /* webpackMode: "lazy-once" */ 482 /* webpackMode: "lazy-once" */
483 `@/pages/Attendence/viewStudentsAttendence.vue` 483 `@/pages/Attendence/viewStudentsAttendence.vue`
484 ) 484 )
485 }, 485 },
486 { 486 {
487 path: '/TeacherAttendence/:teacherId', 487 path: '/TeacherAttendence/:teacherId',
488 meta: {}, 488 meta: {},
489 name: 'View Teacher Attendence', 489 name: 'View Teacher Attendence',
490 props: (route) => ({ type: route.query.type }), 490 props: (route) => ({ type: route.query.type }),
491 component: () => 491 component: () =>
492 import ( 492 import (
493 /* webpackChunkName: "routes" */ 493 /* webpackChunkName: "routes" */
494 /* webpackMode: "lazy-once" */ 494 /* webpackMode: "lazy-once" */
495 `@/pages/Attendence/viewTeacherAttendence.vue` 495 `@/pages/Attendence/viewTeacherAttendence.vue`
496 ) 496 )
497 }, 497 },
498 { 498 {
499 path: '/viewInvoice/:viewInvoiceId', 499 path: '/viewInvoice/:viewInvoiceId',
500 meta: {}, 500 meta: {},
501 name: 'View Invoice', 501 name: 'View Invoice',
502 props: (route) => ({ type: route.query.type }), 502 props: (route) => ({ type: route.query.type }),
503 component: () => 503 component: () =>
504 import ( 504 import (
505 /* webpackChunkName: "routes" */ 505 /* webpackChunkName: "routes" */
506 /* webpackMode: "lazy-once" */ 506 /* webpackMode: "lazy-once" */
507 `@/pages/Account/viewInvoice.vue` 507 `@/pages/Account/viewInvoice.vue`
508 ) 508 )
509 }, 509 },
510 { 510 {
511 path: '/globalPayment', 511 path: '/globalPayment',
512 meta: {}, 512 meta: {},
513 name: 'Global Payment', 513 name: 'Global Payment',
514 props: (route) => ({ type: route.query.type }), 514 props: (route) => ({ type: route.query.type }),
515 component: () => 515 component: () =>
516 import ( 516 import (
517 /* webpackChunkName: "routes" */ 517 /* webpackChunkName: "routes" */
518 /* webpackMode: "lazy-once" */ 518 /* webpackMode: "lazy-once" */
519 `@/pages/Account/globalPayment.vue` 519 `@/pages/Account/globalPayment.vue`
520 ) 520 )
521 }, 521 },
522 { 522 {
523 path: '/exam', 523 path: '/exam',
524 meta: {}, 524 meta: {},
525 name: 'Exam', 525 name: 'Exam',
526 props: (route) => ({ type: route.query.type }), 526 props: (route) => ({ type: route.query.type }),
527 component: () => 527 component: () =>
528 import ( 528 import (
529 /* webpackChunkName: "routes" */ 529 /* webpackChunkName: "routes" */
530 /* webpackMode: "lazy-once" */ 530 /* webpackMode: "lazy-once" */
531 `@/pages/Exam/exam.vue` 531 `@/pages/Exam/exam.vue`
532 ) 532 )
533 }, 533 },
534 { 534 {
535 path: '/grade', 535 path: '/grade',
536 meta: {}, 536 meta: {},
537 name: 'Grade', 537 name: 'Grade',
538 props: (route) => ({ type: route.query.type }), 538 props: (route) => ({ type: route.query.type }),
539 component: () => 539 component: () =>
540 import ( 540 import (
541 /* webpackChunkName: "routes" */ 541 /* webpackChunkName: "routes" */
542 /* webpackMode: "lazy-once" */ 542 /* webpackMode: "lazy-once" */
543 `@/pages/Exam/grade.vue` 543 `@/pages/Exam/grade.vue`
544 ) 544 )
545 }, 545 },
546 { 546 {
547 path: '/examSchedule', 547 path: '/examSchedule',
548 meta: {}, 548 meta: {},
549 name: 'Exam Schedule', 549 name: 'Exam Schedule',
550 props: (route) => ({ type: route.query.type }), 550 props: (route) => ({ type: route.query.type }),
551 component: () => 551 component: () =>
552 import ( 552 import (
553 /* webpackChunkName: "routes" */ 553 /* webpackChunkName: "routes" */
554 /* webpackMode: "lazy-once" */ 554 /* webpackMode: "lazy-once" */
555 `@/pages/Exam/examSchedule.vue` 555 `@/pages/Exam/examSchedule.vue`
556 ) 556 )
557 }, 557 },
558 { 558 {
559 path: '/examAttendence', 559 path: '/examAttendence',
560 meta: {}, 560 meta: {},
561 name: 'Exam Attendence', 561 name: 'Exam Attendence',
562 props: (route) => ({ type: route.query.type }), 562 props: (route) => ({ type: route.query.type }),
563 component: () => 563 component: () =>
564 import ( 564 import (
565 /* webpackChunkName: "routes" */ 565 /* webpackChunkName: "routes" */
566 /* webpackMode: "lazy-once" */ 566 /* webpackMode: "lazy-once" */
567 `@/pages/Exam/examAttendence.vue` 567 `@/pages/Exam/examAttendence.vue`
568 ) 568 )
569 }, 569 },
570 { 570 {
571 path: '/mark', 571 path: '/mark',
572 meta: {}, 572 meta: {},
573 name: 'Mark', 573 name: 'Mark',
574 props: (route) => ({ type: route.query.type }), 574 props: (route) => ({ type: route.query.type }),
575 component: () => 575 component: () =>
576 import ( 576 import (
577 /* webpackChunkName: "routes" */ 577 /* webpackChunkName: "routes" */
578 /* webpackMode: "lazy-once" */ 578 /* webpackMode: "lazy-once" */
579 `@/pages/Mark/mark.vue` 579 `@/pages/Mark/mark.vue`
580 ) 580 )
581 }, 581 },
582 { 582 {
583 path: '/viewMark/:markId', 583 path: '/viewMark/:markId',
584 meta: {}, 584 meta: {},
585 name: 'view Mark', 585 name: 'view Mark',
586 props: (route) => ({ type: route.query.type }), 586 props: (route) => ({ type: route.query.type }),
587 component: () => 587 component: () =>
588 import ( 588 import (
589 /* webpackChunkName: "routes" */ 589 /* webpackChunkName: "routes" */
590 /* webpackMode: "lazy-once" */ 590 /* webpackMode: "lazy-once" */
591 `@/pages/Mark/viewMark.vue` 591 `@/pages/Mark/viewMark.vue`
592 ) 592 )
593 }, 593 },
594 { 594 {
595 path: '/markDistribution', 595 path: '/markDistribution',
596 meta: {}, 596 meta: {},
597 name: 'Mark Distribution', 597 name: 'Mark Distribution',
598 props: (route) => ({ type: route.query.type }), 598 props: (route) => ({ type: route.query.type }),
599 component: () => 599 component: () =>
600 import ( 600 import (
601 /* webpackChunkName: "routes" */ 601 /* webpackChunkName: "routes" */
602 /* webpackMode: "lazy-once" */ 602 /* webpackMode: "lazy-once" */
603 `@/pages/Mark/markDistribution.vue` 603 `@/pages/Mark/markDistribution.vue`
604 ) 604 )
605 }, 605 },
606 { 606 {
607 path: '/promotion', 607 path: '/promotion',
608 meta: {}, 608 meta: {},
609 name: 'Promotion', 609 name: 'Promotion',
610 props: (route) => ({ type: route.query.type }), 610 props: (route) => ({ type: route.query.type }),
611 component: () => 611 component: () =>
612 import ( 612 import (
613 /* webpackChunkName: "routes" */ 613 /* webpackChunkName: "routes" */
614 /* webpackMode: "lazy-once" */ 614 /* webpackMode: "lazy-once" */
615 `@/pages/Mark/promotion.vue` 615 `@/pages/Mark/promotion.vue`
616 ) 616 )
617 }, 617 },
618 { 618 {
619 path: '/academicYear', 619 path: '/academicYear',
620 meta: {}, 620 meta: {},
621 name: 'Academic Year', 621 name: 'Academic Year',
622 props: (route) => ({ type: route.query.type }), 622 props: (route) => ({ type: route.query.type }),
623 component: () => 623 component: () =>
624 import ( 624 import (
625 /* webpackChunkName: "routes" */ 625 /* webpackChunkName: "routes" */
626 /* webpackMode: "lazy-once" */ 626 /* webpackMode: "lazy-once" */
627 `@/pages/Administrator/academicYear.vue` 627 `@/pages/Administrator/academicYear.vue`
628 ) 628 )
629 }, 629 },
630 { 630 {
631 path: '/systemAdmin', 631 path: '/systemAdmin',
632 meta: {}, 632 meta: {},
633 name: 'System Admin', 633 name: 'System Admin',
634 props: (route) => ({ type: route.query.type }), 634 props: (route) => ({ type: route.query.type }),
635 component: () => 635 component: () =>
636 import ( 636 import (
637 /* webpackChunkName: "routes" */ 637 /* webpackChunkName: "routes" */
638 /* webpackMode: "lazy-once" */ 638 /* webpackMode: "lazy-once" */
639 `@/pages/Administrator/systemAdmin.vue` 639 `@/pages/Administrator/systemAdmin.vue`
640 ) 640 )
641 }, 641 },
642 { 642 {
643 path: '/resetPassword', 643 path: '/resetPassword',
644 meta: {}, 644 meta: {},
645 name: 'Change Password', 645 name: 'Change Password',
646 props: (route) => ({ type: route.query.type }), 646 props: (route) => ({ type: route.query.type }),
647 component: () => 647 component: () =>
648 import ( 648 import (
649 /* webpackChunkName: "routes" */ 649 /* webpackChunkName: "routes" */
650 /* webpackMode: "lazy-once" */ 650 /* webpackMode: "lazy-once" */
651 `@/pages/Administrator/resetPassword.vue` 651 `@/pages/Administrator/resetPassword.vue`
652 ) 652 )
653 }, 653 },
654 { 654 {
655 path: '/role', 655 path: '/role',
656 meta: {}, 656 meta: {},
657 name: 'Role', 657 name: 'Role',
658 props: (route) => ({ type: route.query.type }), 658 props: (route) => ({ type: route.query.type }),
659 component: () => 659 component: () =>
660 import ( 660 import (
661 /* webpackChunkName: "routes" */ 661 /* webpackChunkName: "routes" */
662 /* webpackMode: "lazy-once" */ 662 /* webpackMode: "lazy-once" */
663 `@/pages/Administrator/role.vue` 663 `@/pages/Administrator/role.vue`
664 ) 664 )
665 }, 665 },
666 { 666 {
667 path: '/bulkImport', 667 path: '/bulkImport',
668 meta: {}, 668 meta: {},
669 name: 'Bulk Import', 669 name: 'Bulk Import',
670 props: (route) => ({ type: route.query.type }), 670 props: (route) => ({ type: route.query.type }),
671 component: () => 671 component: () =>
672 import ( 672 import (
673 /* webpackChunkName: "routes" */ 673 /* webpackChunkName: "routes" */
674 /* webpackMode: "lazy-once" */ 674 /* webpackMode: "lazy-once" */
675 `@/pages/Administrator/bulkImport.vue` 675 `@/pages/Administrator/bulkImport.vue`
676 ) 676 )
677 }, 677 },
678 { 678 {
679 path: '/studentReport', 679 path: '/studentReport',
680 meta: {}, 680 meta: {},
681 name: 'Student Report', 681 name: 'Student Report',
682 props: (route) => ({ type: route.query.type }), 682 props: (route) => ({ type: route.query.type }),
683 component: () => 683 component: () =>
684 import ( 684 import (
685 /* webpackChunkName: "routes" */ 685 /* webpackChunkName: "routes" */
686 /* webpackMode: "lazy-once" */ 686 /* webpackMode: "lazy-once" */
687 `@/pages/Report/studentReport.vue` 687 `@/pages/Report/studentReport.vue`
688 ) 688 )
689 }, 689 },
690 { 690 {
691 path: '/progressCardReport', 691 path: '/progressCardReport',
692 meta: {}, 692 meta: {},
693 name: 'Progress Card Report', 693 name: 'Progress Card Report',
694 props: (route) => ({ type: route.query.type }), 694 props: (route) => ({ type: route.query.type }),
695 component: () => 695 component: () =>
696 import ( 696 import (
697 /* webpackChunkName: "routes" */ 697 /* webpackChunkName: "routes" */
698 /* webpackMode: "lazy-once" */ 698 /* webpackMode: "lazy-once" */
699 `@/pages/Report/progressCardReport.vue` 699 `@/pages/Report/progressCardReport.vue`
700 ) 700 )
701 }, 701 },
702 { 702 {
703 path: '/idCard', 703 path: '/idCard',
704 meta: {}, 704 meta: {},
705 name: 'Id Card Report', 705 name: 'Id Card Report',
706 props: (route) => ({ type: route.query.type }), 706 props: (route) => ({ type: route.query.type }),
707 component: () => 707 component: () =>
708 import ( 708 import (
709 `@/pages/Report/idCard.vue` 709 `@/pages/Report/idCard.vue`
710 ) 710 )
711 }, 711 },
712 { 712 {
713 path: '/admitCard', 713 path: '/admitCard',
714 meta: {}, 714 meta: {},
715 name: 'Admit Card Report', 715 name: 'Admit Card Report',
716 props: (route) => ({ type: route.query.type }), 716 props: (route) => ({ type: route.query.type }),
717 component: () => 717 component: () =>
718 import ( 718 import (
719 `@/pages/Report/admitCard.vue` 719 `@/pages/Report/admitCard.vue`
720 ) 720 )
721 }, 721 },
722 { 722 {
723 path: '/generalSetting', 723 path: '/generalSetting',
724 meta: {}, 724 meta: {},
725 name: 'General Setting', 725 name: 'General Setting',
726 props: (route) => ({ type: route.query.type }), 726 props: (route) => ({ type: route.query.type }),
727 component: () => 727 component: () =>
728 import ( 728 import (
729 /* webpackChunkName: "routes" */ 729 /* webpackChunkName: "routes" */
730 /* webpackMode: "lazy-once" */ 730 /* webpackMode: "lazy-once" */
731 `@/pages/generalSetting/generalSetting.vue` 731 `@/pages/generalSetting/generalSetting.vue`
732 ) 732 )
733 }, 733 },
734 { 734 {
735 path: '/assignment', 735 path: '/assignment',
736 meta: {}, 736 meta: {},
737 name: 'Assignment', 737 name: 'Assignment',
738 props: (route) => ({ type: route.query.type }), 738 props: (route) => ({ type: route.query.type }),
739 component: () => 739 component: () =>
740 import ( 740 import (
741 `@/pages/Academic/assignment.vue` 741 `@/pages/Academic/assignment.vue`
742 ) 742 )
743 }, 743 },
744 { 744 {
745 path: '/routine', 745 path: '/routine',
746 meta: {}, 746 meta: {},
747 name: 'Routine', 747 name: 'Routine',
748 props: (route) => ({ type: route.query.type }), 748 props: (route) => ({ type: route.query.type }),
749 component: () => 749 component: () =>
750 import ( 750 import (
751 `@/pages/Academic/routine.vue` 751 `@/pages/Academic/routine.vue`
752 ) 752 )
753 }, 753 },
754 { 754 {
755 path: '/subject', 755 path: '/subject',
756 meta: {}, 756 meta: {},
757 name: 'Subject', 757 name: 'Subject',
758 props: (route) => ({ type: route.query.type }), 758 props: (route) => ({ type: route.query.type }),
759 component: () => 759 component: () =>
760 import ( 760 import (
761 `@/pages/Academic/subject.vue` 761 `@/pages/Academic/subject.vue`
762 ) 762 )
763 }, 763 },
764 { 764 {
765 path: '/syllabus', 765 path: '/syllabus',
766 meta: {}, 766 meta: {},
767 name: 'Syllabus', 767 name: 'Syllabus',
768 props: (route) => ({ type: route.query.type }), 768 props: (route) => ({ type: route.query.type }),
769 component: () => 769 component: () =>
770 import ( 770 import (
771 `@/pages/Academic/syllabus.vue` 771 `@/pages/Academic/syllabus.vue`
772 ) 772 )
773 }, 773 },
774 774
775 //////SCHOOL 775 //////SCHOOL
776 776
777 { 777 {
778 path: '/school', 778 path: '/school',
779 meta: {}, 779 meta: {},
780 name: 'School', 780 name: 'School',
781 props: (route) => ({ type: route.query.type }), 781 props: (route) => ({ type: route.query.type }),
782 component: () => 782 component: () =>
783 import ( 783 import (
784 /* webpackChunkName: "routes" */ 784 /* webpackChunkName: "routes" */
785 /* webpackMode: "lazy-once" */ 785 /* webpackMode: "lazy-once" */
786 `@/pages/School/school.vue` 786 `@/pages/School/school.vue`
787 ) 787 )
788 }, 788 },
789 { 789 {
790 path: '/schooldashboard', 790 path: '/schooldashboard',
791 meta: {}, 791 meta: {},
792 name: 'View School Dashboard', 792 name: 'View School Dashboard',
793 props: (route) => ({ type: route.query.type }), 793 props: (route) => ({ type: route.query.type }),
794 component: () => 794 component: () =>
795 import ( 795 import (
796 /* webpackChunkName: "routes" */ 796 /* webpackChunkName: "routes" */
797 /* webpackMode: "lazy-once" */ 797 /* webpackMode: "lazy-once" */
798 `@/pages/School/viewSchoolDashboard.vue` 798 `@/pages/School/viewSchoolDashboard.vue`
799 ) 799 )
800 } 800 }
801 ]; 801 ];