Admin.js 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461
  1. import { Authenticated, canSeeAdminPanel } from 'src/router/middleware/middleware'
  2. export default {
  3. path: 'admin',
  4. name: 'Admin',
  5. layoutConfig: {
  6. layoutView: 'hHh LpR lfr',
  7. layoutHeaderType: 'admin',
  8. layoutHeaderBordered: true,
  9. layoutLeftDrawer: true,
  10. layoutLeftDrawerVisible: true,
  11. layoutLeftSideBarType: 'admin',
  12. layoutLeftDrawerBordered: true,
  13. layoutLeftDrawerWidth: 240,
  14. layoutFooterType: 'panel',
  15. layoutFooter: true
  16. },
  17. meta: { middlewares: [Authenticated, canSeeAdminPanel] },
  18. component: () => import('src/layouts/AdminLayout.vue'),
  19. children: [
  20. {
  21. name: 'Admin.Settings',
  22. path: 'settings',
  23. component: () => import('src/pages/Admin/Settings.vue'),
  24. breadcrumbs: { title: 'تنظیمات' }
  25. },
  26. {
  27. name: 'Admin.User',
  28. path: 'users',
  29. component: () => import('layouts/bareLayout.vue'),
  30. breadcrumbs: { title: 'کاربران' },
  31. children: [
  32. { name: 'Admin.User.Index', path: '', component: () => import('src/pages/Admin/User/index.vue') },
  33. { name: 'Admin.User.Show', path: ':id', component: () => import('src/pages/Admin/User/show.vue'), breadcrumbs: { title: 'اطلاعات کاربری' } },
  34. { name: 'Admin.User.ClassroomInfo', path: ':id/classroom/:classroom_id', component: () => import('src/pages/Admin/User/UserClassroomInfo.vue'), breadcrumbs: { title: 'اطلاعات کاربری' } }
  35. ]
  36. },
  37. {
  38. name: 'Admin.Category',
  39. path: 'categories',
  40. component: () => import('layouts/bareLayout.vue'),
  41. breadcrumbs: { title: 'دسته بندی ها' },
  42. children: [
  43. { name: 'Admin.Category.Index', path: '', component: () => import('src/pages/Admin/Category/index.vue') },
  44. { name: 'Admin.Category.Create', path: 'create', component: () => import('src/pages/Admin/Category/create.vue') },
  45. { name: 'Admin.Category.Show', path: ':id', component: () => import('src/pages/Admin/Category/show.vue') }
  46. ]
  47. },
  48. {
  49. name: 'Admin.Category.DiscussionCircles',
  50. path: 'discussion-circles-categories',
  51. component: () => import('layouts/bareLayout.vue'),
  52. breadcrumbs: { title: 'دسته بندی ها' },
  53. children: [
  54. { name: 'Admin.Category.DiscussionCircles.Index', path: '', component: () => import('src/pages/Admin/DiscussionCirclesCategory/index.vue') },
  55. { name: 'Admin.Category.DiscussionCircles.Create', path: 'create', component: () => import('src/pages/Admin/DiscussionCirclesCategory/create.vue') },
  56. { name: 'Admin.Category.DiscussionCircles.Show', path: ':id', component: () => import('src/pages/Admin/DiscussionCirclesCategory/show.vue') }
  57. ]
  58. },
  59. {
  60. name: 'Admin.Unit',
  61. path: 'units',
  62. component: () => import('src/layouts/bareLayout.vue'),
  63. breadcrumbs: { title: 'طلیعه حکمت' },
  64. children: [
  65. // { name: 'Admin.Category.Index', path: '', component: () => import('src/pages/Admin/Category/index.vue') },
  66. // { name: 'Admin.Category.Create', path: 'create', component: () => import('src/pages/Admin/Category/create.vue') },
  67. { name: 'Admin.Unit.Show', path: ':id', component: () => import('src/pages/Admin/Unit/show.vue') },
  68. {
  69. name: 'Admin.Unit.Questions',
  70. path: ':unit_id/session_template/:session_template_id/questions',
  71. component: () => import('src/layouts/bareLayout.vue'),
  72. children: [
  73. { name: 'Admin.Unit.Questions.Index', path: '', component: () => import('src/pages/Admin/Unit/QuestionsList.vue') },
  74. { name: 'Admin.Unit.Questions.Create', path: 'create', component: () => import('src/pages/Admin/Unit/QuestionsCreate.vue') }
  75. // { name: 'Admin.Unit.Questions.Show', path: ':id', component: () => import('src/pages/Admin/Unit/QuestionsShow.vue') }
  76. ]
  77. },
  78. { name: 'Admin.Unit.Questions.Show', path: ':unit_id/questions/:id', component: () => import('src/pages/Admin/Unit/QuestionsShow.vue') },
  79. {
  80. name: 'Admin.Unit.TestSet',
  81. path: ':unit_id/test_set',
  82. component: () => import('src/layouts/bareLayout.vue'),
  83. children: [
  84. { name: 'Admin.Unit.TestSet.Show', path: ':id', component: () => import('src/pages/Admin/TestSet/Show.vue') },
  85. { name: 'Admin.Unit.TestSet.Create', path: 'create', component: () => import('src/pages/Admin/TestSet/Create.vue') }
  86. ]
  87. }
  88. ]
  89. },
  90. {
  91. name: 'Admin.SessionTemplate',
  92. path: 'session-templates',
  93. component: () => import('layouts/bareLayout.vue'),
  94. breadcrumbs: { title: 'طلیعه حکمت' },
  95. children: [
  96. { name: 'Admin.SessionTemplate.Index', path: '', component: () => import('src/pages/Admin/SessionTemplate/index.vue') },
  97. { name: 'Admin.SessionTemplate.Create', path: 'create', component: () => import('src/pages/Admin/SessionTemplate/create.vue') },
  98. { name: 'Admin.SessionTemplate.Show', path: ':id', component: () => import('src/pages/Admin/SessionTemplate/show.vue') }
  99. ]
  100. },
  101. {
  102. path: 'ticket',
  103. name: 'Admin.Ticket',
  104. component: () => import('layouts/bareLayout.vue'),
  105. children: [
  106. {
  107. path: '',
  108. name: 'Admin.Ticket.List',
  109. component: () => import('src/pages/Admin/Ticket/List.vue')
  110. },
  111. {
  112. path: 'educational',
  113. name: 'Admin.Ticket.List.Educational',
  114. component: () => import('src/pages/Admin/Ticket/EducationalList.vue')
  115. },
  116. {
  117. path: 'create',
  118. name: 'Admin.Ticket.Create',
  119. component: () => import('src/pages/Admin/Ticket/Create.vue')
  120. },
  121. {
  122. path: ':id',
  123. name: 'Admin.Ticket.Show',
  124. component: () => import('src/pages/Admin/Ticket/Show.vue')
  125. }
  126. ]
  127. },
  128. {
  129. name: 'Admin.Classroom',
  130. path: 'classrooms',
  131. component: () => import('layouts/bareLayout.vue'),
  132. children: [
  133. { name: 'Admin.Classroom.Index', path: '', component: () => import('src/pages/Admin/Classroom/index.vue') },
  134. { name: 'Admin.Classroom.Create', path: 'create', component: () => import('src/pages/Admin/Classroom/create.vue'), breadcrumbs: { title: 'ساخت دوره آموزشی' } },
  135. { name: 'Admin.Classroom.Show', path: ':id', component: () => import('src/pages/Admin/Classroom/show.vue') },
  136. { name: 'Admin.Classroom.UserClass', path: ':classroom_id/user/:user_id', component: () => import('src/pages/Admin/Classroom/showUserClass.vue') },
  137. { name: 'Admin.Classroom.Session.AttendanceSheetList', path: ':classroom_id/session/:session_id/session_attendance_sheets', component: () => import('pages/Admin/Classroom/SessionActivitySheets/sessionActivitySheets.vue') },
  138. { name: 'Admin.Classroom.Session.AttendanceSheet.Assignment', path: ':classroom_id/session/:session_id/session_attendance_sheet/:session_attendance_sheet_id/assignment', component: () => import('pages/Admin/Classroom/SessionActivitySheets/Assignment.vue') },
  139. { name: 'Admin.Classroom.Session.AttendanceSheet.Attendance', path: ':classroom_id/session/:session_id/session_attendance_sheet/:session_attendance_sheet_id/attendance', component: () => import('pages/Admin/Classroom/SessionActivitySheets/Attendance.vue') },
  140. { name: 'Admin.Classroom.Project.Create', path: ':classroom_id/project/create', component: () => import('src/pages/Admin/Classroom/project/create.vue') },
  141. { name: 'Admin.Classroom.Project.Show', path: ':classroom_id/project/:project_id', component: () => import('src/pages/Admin/Classroom/project/show.vue') },
  142. { name: 'Admin.Classroom.Project.UserInfo', path: ':classroom_id/project/:project_id/user/:user_id', component: () => import('src/pages/Admin/Classroom/project/showUserProject.vue') },
  143. { name: 'Admin.Classroom.Project.Members', path: ':classroom_id/project/:project_id/members', component: () => import('src/pages/Admin/Classroom/project/members.vue') },
  144. { name: 'Admin.Classroom.projectAttendanceSheets.Show', path: ':classroom_id/project/:project_id/projectAttendanceSheet/:project_attendance_sheets_id', component: () => import('src/pages/Admin/Classroom/ProjectAttendanceSheet/show.vue') },
  145. { name: 'Admin.Classroom.Team.Create', path: ':classroom_id/team/create', component: () => import('src/pages/Admin/Classroom/Team/create.vue') },
  146. { name: 'Admin.Classroom.Team.Show', path: ':classroom_id/team/:team_id', component: () => import('src/pages/Admin/Classroom/Team/show.vue') },
  147. { name: 'Admin.Classroom.Ticket', path: 'ticket', component: () => import('src/pages/Admin/Classroom/Ticket.vue'), breadcrumbs: { title: 'درخواست ها دوره های آموزشی' } },
  148. { name: 'Admin.Classroom.TestSet.Index', path: ':classroom_id/unit/:unit_id/test_set', component: () => import('src/pages/Admin/TestSet/Index.vue') },
  149. { name: 'Admin.Classroom.TestSet.Test.Show', path: ':classroom_id/test_set/:test_set_id/test/:id', component: () => import('src/pages/Admin/Test/Show.vue') },
  150. { name: 'Admin.Classroom.TestSet.Test.Create', path: ':classroom_id/test_set/:test_set_id/test/create', component: () => import('src/pages/Admin/Test/Create.vue') },
  151. { name: 'Admin.Classroom.Test.AnswerBooks.Index', path: ':classroom_id/test/:test_id/answer_books', component: () => import('src/pages/Admin/Classroom/ClassroomAnswerBooks.vue') },
  152. { name: 'Admin.Classroom.Test.AnswerBooks.ShowGrade', path: ':classroom_id/test/:test_id/answer_books/:answer_book_id/show_grades', component: () => import('src/pages/Admin/Classroom/ClassroomAnswerBookShowGrade.vue') }
  153. ]
  154. },
  155. {
  156. name: 'Admin.Event',
  157. path: 'events',
  158. component: () => import('layouts/bareLayout.vue'),
  159. breadcrumbs: { title: 'دوره های آموزشی', route: { name: 'Admin.Event.Index' } },
  160. children: [
  161. { name: 'Admin.Event.Index', path: '', component: () => import('src/pages/Admin/Event/index.vue') },
  162. { name: 'Admin.Event.Create', path: 'create', component: () => import('src/pages/Admin/Event/create.vue'), breadcrumbs: { title: 'ساخت دوره آموزشی' } },
  163. { name: 'Admin.Event.Show', path: ':id', component: () => import('src/pages/Admin/Event/show.vue') },
  164. { name: 'Admin.Event.Session.AttendanceSheetList', path: ':classroom_id/session/:session_id/session_attendance_sheets', component: () => import('pages/Admin/Event/SessionActivitySheets/sessionActivitySheets.vue') },
  165. { name: 'Admin.Event.Session.AttendanceSheet.Assignment', path: ':classroom_id/session/:session_id/session_attendance_sheet/:session_attendance_sheet_id/assignment', component: () => import('pages/Admin/Event/SessionActivitySheets/Assignment.vue') },
  166. { name: 'Admin.Event.Session.AttendanceSheet.Attendance', path: ':classroom_id/session/:session_id/session_attendance_sheet/:session_attendance_sheet_id/attendance', component: () => import('pages/Admin/Event/SessionActivitySheets/Attendance.vue') },
  167. { name: 'Admin.Event.Project.Create', path: ':classroom_id/project/create', component: () => import('src/pages/Admin/Event/project/create.vue'), breadcrumbs: { title: 'ساخت دوره آموزشی' } },
  168. { name: 'Admin.Event.Project.Show', path: ':classroom_id/project/:project_id', component: () => import('src/pages/Admin/Event/project/show.vue') },
  169. { name: 'Admin.Event.Project.Members', path: ':classroom_id/project/:project_id/members', component: () => import('src/pages/Admin/Event/project/members.vue') },
  170. { name: 'Admin.Event.projectAttendanceSheets.Show', path: ':classroom_id/project/:project_id/projectAttendanceSheet/:project_attendance_sheets_id', component: () => import('src/pages/Admin/Event/ProjectAttendanceSheet/show.vue') },
  171. // { name: 'Admin.Event.Project', path: ':id', component: () => import('src/pages/Admin/Event/show.vue') },
  172. { name: 'Admin.Event.Ticket', path: 'ticket', component: () => import('src/pages/Admin/Event/Ticket.vue'), breadcrumbs: { title: 'درخواست ها دوره های آموزشی' } },
  173. { name: 'Admin.Event.TestSet.Index', path: 'test_set', component: () => import('src/pages/Admin/Event/Test/Index.vue') },
  174. { name: 'Admin.Event.TestSet.Create', path: 'test_set/create', component: () => import('src/pages/Admin/Event/Test/Create.vue') },
  175. { name: 'Admin.Event.TestSet.Show', path: 'test_set/:test_set_id', component: () => import('src/pages/Admin/Event/Test/Show.vue') },
  176. { name: 'Admin.Event.TestSet.Questions.Index', path: 'test_set/:test_set_id/questions', component: () => import('src/pages/Admin/Event/Question/Index.vue') },
  177. { name: 'Admin.Event.TestSet.Questions.Create', path: 'test_set/questions/create', component: () => import('src/pages/Admin/Event/Question/Create.vue') },
  178. { name: 'Admin.Event.TestSet.Questions.Show', path: 'test_set/questions/:question_id', component: () => import('src/pages/Admin/Event/Question/Show.vue') },
  179. { name: 'Admin.Event.TestSet.Test.Create', path: ':event_id/test_set/:test_set_id/test/create', component: () => import('src/pages/Admin/Event/Question/Show.vue') }
  180. ]
  181. },
  182. {
  183. name: 'Admin.Classroom.DiscussionCircles',
  184. path: 'discussion-circles-classrooms',
  185. component: () => import('layouts/bareLayout.vue'),
  186. breadcrumbs: { title: 'دوره های آموزشی', route: { name: 'Admin.Classroom.DiscussionCircles.Index' } },
  187. children: [
  188. { name: 'Admin.Classroom.DiscussionCircles.Index', path: '', component: () => import('src/pages/Admin/DiscussionCirclesClassroom/index.vue') },
  189. { name: 'Admin.Classroom.DiscussionCircles.Create', path: 'create', component: () => import('src/pages/Admin/DiscussionCirclesClassroom/create.vue'), breadcrumbs: { title: 'ساخت دوره آموزشی' } },
  190. { name: 'Admin.Classroom.DiscussionCircles.Show', path: ':id', component: () => import('src/pages/Admin/DiscussionCirclesClassroom/show.vue'), breadcrumbs: { title: 'مشاهده اطلاعات دوره آموزشی' } },
  191. { name: 'Admin.Classroom.DiscussionCircles.Ticket', path: 'ticket', component: () => import('src/pages/Admin/DiscussionCirclesClassroom/Ticket.vue'), breadcrumbs: { title: 'درخواست ها دوره های آموزشی' } }
  192. ]
  193. },
  194. {
  195. path: 'content',
  196. name: 'Admin.Content',
  197. component: () => import('layouts/bareLayout.vue'),
  198. children: [
  199. { path: '', name: 'Admin.Content.List', component: () => import('src/pages/Admin/Content/List.vue') },
  200. { path: 'create', name: 'Admin.Content.Create', component: () => import('src/pages/Admin/Content/Create.vue') },
  201. { path: ':id', name: 'Admin.Content.Show', component: () => import('src/pages/Admin/Content/Show.vue') },
  202. { name: 'Admin.Content.Ticket', path: 'ticket', component: () => import('src/pages/Admin/Content/Ticket.vue'), breadcrumbs: { title: 'درخواست ها دوره های آموزشی' } }
  203. ]
  204. },
  205. {
  206. path: 'content-topic',
  207. name: 'Admin.ContentTopic',
  208. component: () => import('layouts/bareLayout.vue'),
  209. children: [
  210. { path: '', name: 'Admin.ContentTopic.List', component: () => import('src/pages/Admin/ContentTopic/List.vue') },
  211. { path: 'create', name: 'Admin.ContentTopic.Create', component: () => import('src/pages/Admin/ContentTopic/Create.vue') },
  212. { path: ':id', name: 'Admin.ContentTopic.Show', component: () => import('src/pages/Admin/ContentTopic/Show.vue') }
  213. ]
  214. },
  215. {
  216. path: 'hadith',
  217. name: 'Admin.Hadith',
  218. component: () => import('layouts/bareLayout.vue'),
  219. children: [
  220. { path: '', name: 'Admin.Hadith.List', component: () => import('src/pages/Admin/Hadith/List.vue') },
  221. { path: 'create', name: 'Admin.Hadith.Create', component: () => import('src/pages/Admin/Hadith/Create.vue') },
  222. { path: ':id', name: 'Admin.Hadith.Show', component: () => import('src/pages/Admin/Hadith/Show.vue') }
  223. ]
  224. },
  225. {
  226. path: 'donation',
  227. name: 'Admin.Donation',
  228. component: () => import('layouts/bareLayout.vue'),
  229. children: [
  230. { path: '', name: 'Admin.Donation.List', component: () => import('src/pages/Admin/Donation/List.vue') },
  231. { path: 'create', name: 'Admin.Donation.Create', component: () => import('src/pages/Admin/Donation/Create.vue') },
  232. { path: ':id', name: 'Admin.Donation.Show', component: () => import('src/pages/Admin/Donation/Show.vue') }
  233. ]
  234. },
  235. {
  236. path: 'post',
  237. name: 'Admin.Post',
  238. component: () => import('layouts/bareLayout.vue'),
  239. children: [
  240. { path: '', name: 'Admin.Post.List', component: () => import('src/pages/Admin/Post/List.vue') },
  241. { path: 'create', name: 'Admin.Post.Create', component: () => import('src/pages/Admin/Post/Create.vue') },
  242. { path: ':id', name: 'Admin.Post.Show', component: () => import('src/pages/Admin/Post/Show.vue') }
  243. ]
  244. },
  245. {
  246. path: 'media',
  247. name: 'Admin.Media',
  248. component: () => import('layouts/bareLayout.vue'),
  249. children: [
  250. // { path: '', name: 'Admin.Content.List', component: () => import('src/pages/Admin/Content/List.vue') },
  251. // { path: 'create', name: 'Admin.Content.Create', component: () => import('src/pages/Admin/Content/Create.vue') },
  252. { path: ':id', name: 'Admin.Media.Show', component: () => import('src/pages/Admin/Media/Show.vue') }
  253. // { name: 'Admin.Content.Ticket', path: 'ticket', component: () => import('src/pages/Admin/Classroom/Ticket.vue'), breadcrumbs: { title: 'درخواست ها دوره های آموزشی' } }
  254. ]
  255. },
  256. {
  257. path: 'notice',
  258. name: 'Admin.Notice',
  259. component: () => import('layouts/bareLayout.vue'),
  260. children: [
  261. {
  262. path: '',
  263. name: 'Admin.Notice.List',
  264. component: () => import('src/pages/Admin/Notice/List.vue')
  265. },
  266. {
  267. path: 'create',
  268. name: 'Admin.Notice.Create',
  269. component: () => import('src/pages/Admin/Notice/Create.vue')
  270. },
  271. {
  272. path: ':id',
  273. name: 'Admin.Notice.Show',
  274. component: () => import('src/pages/Admin/Notice/Show.vue')
  275. }
  276. ]
  277. },
  278. {
  279. path: 'content-category',
  280. name: 'Admin.ContentCategory',
  281. component: () => import('layouts/bareLayout.vue'),
  282. children: [
  283. { path: '', name: 'Admin.ContentCategory.List', component: () => import('src/pages/Admin/ContentCategory/List.vue') },
  284. { path: 'create', name: 'Admin.ContentCategory.Create', component: () => import('src/pages/Admin/ContentCategory/Create.vue') },
  285. { path: ':id', name: 'Admin.ContentCategory.Show', component: () => import('src/pages/Admin/ContentCategory/Show.vue') }
  286. ]
  287. },
  288. {
  289. path: 'content-topic-category',
  290. name: 'Admin.ContentTopicCategory',
  291. component: () => import('layouts/bareLayout.vue'),
  292. children: [
  293. { path: '', name: 'Admin.ContentTopicCategory.List', component: () => import('src/pages/Admin/ContentTopicCategory/List.vue') },
  294. { path: 'create', name: 'Admin.ContentTopicCategory.Create', component: () => import('src/pages/Admin/ContentTopicCategory/Create.vue') },
  295. { path: ':id', name: 'Admin.ContentTopicCategory.Show', component: () => import('src/pages/Admin/ContentTopicCategory/Show.vue') }
  296. ]
  297. },
  298. {
  299. path: 'donation-category',
  300. name: 'Admin.DonationCategory',
  301. component: () => import('layouts/bareLayout.vue'),
  302. children: [
  303. { path: '', name: 'Admin.DonationCategory.List', component: () => import('src/pages/Admin/DonationCategory/List.vue') },
  304. { path: 'create', name: 'Admin.DonationCategory.Create', component: () => import('src/pages/Admin/DonationCategory/Create.vue') },
  305. { path: ':id', name: 'Admin.DonationCategory.Show', component: () => import('src/pages/Admin/DonationCategory/Show.vue') }
  306. ]
  307. },
  308. {
  309. path: 'post-category',
  310. name: 'Admin.PostCategory',
  311. component: () => import('layouts/bareLayout.vue'),
  312. children: [
  313. { path: '', name: 'Admin.PostCategory.List', component: () => import('src/pages/Admin/PostCategory/List.vue') },
  314. { path: 'create', name: 'Admin.PostCategory.Create', component: () => import('src/pages/Admin/PostCategory/Create.vue') },
  315. { path: ':id', name: 'Admin.PostCategory.Show', component: () => import('src/pages/Admin/PostCategory/Show.vue') }
  316. ]
  317. },
  318. {
  319. name: 'Admin.Session',
  320. path: 'session',
  321. component: () => import('layouts/bareLayout.vue'),
  322. breadcrumbs: { title: 'طلیعه حکمت' },
  323. children: [
  324. { name: 'Admin.Session.Index', path: '', component: () => import('src/pages/Admin/Session/index.vue') },
  325. { name: 'Admin.Session.Create', path: 'create', component: () => import('src/pages/Admin/Session/create.vue') },
  326. { name: 'Admin.Session.Show', path: ':id', component: () => import('src/pages/Admin/Session/show.vue') },
  327. { name: 'Admin.Session.UserClass', path: ':session_id/user/:user_id', component: () => import('src/pages/Admin/Session/showUserSession.vue') }
  328. ]
  329. },
  330. {
  331. path: 'invoice',
  332. name: 'Admin.Invoice',
  333. component: () => import('layouts/bareLayout.vue'),
  334. children: [
  335. {
  336. path: '',
  337. name: 'Admin.Invoice.List',
  338. component: () => import('src/pages/Admin/Invoice/List.vue')
  339. },
  340. {
  341. path: ':id',
  342. name: 'Admin.Invoice.Show',
  343. component: () => import('src/pages/Admin/Invoice/Show.vue')
  344. },
  345. {
  346. path: 'ticket',
  347. name: 'Admin.Invoice.Ticket',
  348. component: () => import('layouts/bareLayout.vue'),
  349. children: [
  350. {
  351. path: '',
  352. name: 'Admin.Invoice.Ticket.List',
  353. component: () => import('src/pages/Admin/Invoice/Ticket/List.vue')
  354. },
  355. {
  356. path: ':id',
  357. name: 'Admin.Invoice.Ticket.Show',
  358. component: () => import('src/pages/Admin/Invoice/Ticket/Show.vue')
  359. }
  360. ]
  361. }
  362. ]
  363. },
  364. {
  365. path: 'payment',
  366. name: 'Admin.Payment',
  367. component: () => import('layouts/bareLayout.vue'),
  368. children: [
  369. {
  370. path: '',
  371. name: 'Admin.Payment.List',
  372. component: () => import('src/pages/Admin/Payment/List.vue')
  373. },
  374. {
  375. path: ':id',
  376. name: 'Admin.Payment.Show',
  377. component: () => import('src/pages/Admin/Payment/Show.vue')
  378. }
  379. ]
  380. },
  381. {
  382. path: 'store',
  383. name: 'Admin.Store',
  384. component: () => import('layouts/bareLayout.vue'),
  385. children: [
  386. {
  387. path: 'category',
  388. name: 'Admin.Store.Category',
  389. component: () => import('layouts/bareLayout.vue'),
  390. children: [
  391. { path: '', name: 'Admin.Store.Category.List', component: () => import('src/pages/Admin/StoreCategory/List.vue') },
  392. { path: 'create', name: 'Admin.Store.Category.Create', component: () => import('src/pages/Admin/StoreCategory/Create.vue') },
  393. { path: ':id', name: 'Admin.Store.Category.Show', component: () => import('src/pages/Admin/StoreCategory/Show.vue') }
  394. ]
  395. },
  396. {
  397. path: 'package',
  398. name: 'Admin.Store.Package',
  399. component: () => import('layouts/bareLayout.vue'),
  400. children: [
  401. { path: '', name: 'Admin.Store.Package.List', component: () => import('src/pages/Admin/StorePackage/List.vue') },
  402. { path: 'create', name: 'Admin.Store.Package.Create', component: () => import('src/pages/Admin/StorePackage/Create.vue') },
  403. { path: ':id', name: 'Admin.Store.Package.Show', component: () => import('src/pages/Admin/StorePackage/Show.vue') }
  404. ]
  405. },
  406. {
  407. path: 'product',
  408. name: 'Admin.Store.Product',
  409. component: () => import('layouts/bareLayout.vue'),
  410. children: [
  411. { path: '', name: 'Admin.Store.Product.List', component: () => import('src/pages/Admin/StoreProduct/List.vue') },
  412. { path: 'create', name: 'Admin.Store.Product.Create', component: () => import('src/pages/Admin/StoreProduct/Create.vue') },
  413. { path: ':id', name: 'Admin.Store.Product.Show', component: () => import('src/pages/Admin/StoreProduct/Show.vue') }
  414. ]
  415. },
  416. {
  417. path: 'discount',
  418. name: 'Admin.Store.Discount',
  419. component: () => import('layouts/bareLayout.vue'),
  420. children: [
  421. { path: '', name: 'Admin.Store.Discount.List', component: () => import('src/pages/Admin/StoreDiscount/List.vue') },
  422. { path: 'create', name: 'Admin.Store.Discount.Create', component: () => import('src/pages/Admin/StoreDiscount/Create.vue') },
  423. { path: ':id', name: 'Admin.Store.Discount.Show', component: () => import('src/pages/Admin/StoreDiscount/Show.vue') }
  424. ]
  425. },
  426. {
  427. path: 'basket',
  428. name: 'Admin.Store.Basket',
  429. component: () => import('layouts/bareLayout.vue'),
  430. children: [
  431. { path: '', name: 'Admin.Store.Basket.List', component: () => import('src/pages/Admin/StoreBasket/List.vue') },
  432. { path: ':id', name: 'Admin.Store.Basket.Show', component: () => import('src/pages/Admin/StoreBasket/Show.vue') }
  433. ]
  434. }
  435. ]
  436. },
  437. {
  438. path: 'transaction',
  439. name: 'Admin.Transaction',
  440. component: () => import('layouts/bareLayout.vue'),
  441. children: [
  442. {
  443. path: '',
  444. name: 'Admin.Transaction.List',
  445. component: () => import('src/pages/Admin/Transaction/List.vue')
  446. },
  447. {
  448. path: ':id',
  449. name: 'Admin.Transaction.Show',
  450. component: () => import('src/pages/Admin/Transaction/Show.vue')
  451. }
  452. ]
  453. }
  454. ]
  455. }