Admin.js 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  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. name: 'Admin.Unit.TranscriptSheetHistory',
  90. path: ':unit_id/transcript_sheet_history',
  91. component: () => import('src/layouts/bareLayout.vue'),
  92. children: [
  93. { name: 'Admin.Unit.TranscriptSheetHistory.Show', path: ':id', component: () => import('src/pages/Admin/TranscriptSheetHistory/Show.vue') },
  94. { name: 'Admin.Unit.TranscriptSheetHistory.Create', path: 'create', component: () => import('src/pages/Admin/TranscriptSheetHistory/Create.vue') }
  95. ]
  96. }
  97. ]
  98. },
  99. {
  100. name: 'Admin.SessionTemplate',
  101. path: 'session-templates',
  102. component: () => import('layouts/bareLayout.vue'),
  103. breadcrumbs: { title: 'طلیعه حکمت' },
  104. children: [
  105. { name: 'Admin.SessionTemplate.Index', path: '', component: () => import('src/pages/Admin/SessionTemplate/index.vue') },
  106. { name: 'Admin.SessionTemplate.Create', path: 'create', component: () => import('src/pages/Admin/SessionTemplate/create.vue') },
  107. { name: 'Admin.SessionTemplate.Show', path: ':id', component: () => import('src/pages/Admin/SessionTemplate/show.vue') }
  108. ]
  109. },
  110. {
  111. path: 'ticket',
  112. name: 'Admin.Ticket',
  113. component: () => import('layouts/bareLayout.vue'),
  114. children: [
  115. {
  116. path: '',
  117. name: 'Admin.Ticket.List',
  118. component: () => import('src/pages/Admin/Ticket/List.vue')
  119. },
  120. {
  121. path: 'educational',
  122. name: 'Admin.Ticket.List.Educational',
  123. component: () => import('src/pages/Admin/Ticket/EducationalList.vue')
  124. },
  125. {
  126. path: 'create',
  127. name: 'Admin.Ticket.Create',
  128. component: () => import('src/pages/Admin/Ticket/Create.vue')
  129. },
  130. {
  131. path: ':id',
  132. name: 'Admin.Ticket.Show',
  133. component: () => import('src/pages/Admin/Ticket/Show.vue')
  134. }
  135. ]
  136. },
  137. {
  138. name: 'Admin.Classroom',
  139. path: 'classrooms',
  140. component: () => import('layouts/bareLayout.vue'),
  141. children: [
  142. { name: 'Admin.Classroom.Index', path: '', component: () => import('src/pages/Admin/Classroom/index.vue') },
  143. { name: 'Admin.Classroom.Create', path: 'create', component: () => import('src/pages/Admin/Classroom/create.vue'), breadcrumbs: { title: 'ساخت دوره آموزشی' } },
  144. { name: 'Admin.Classroom.Show', path: ':id', component: () => import('src/pages/Admin/Classroom/show.vue') },
  145. { name: 'Admin.Classroom.UserClass', path: ':classroom_id/user/:user_id', component: () => import('src/pages/Admin/Classroom/showUserClass.vue') },
  146. { name: 'Admin.Classroom.Session.AttendanceSheetList', path: ':classroom_id/session/:session_id/session_attendance_sheets', component: () => import('pages/Admin/Classroom/SessionActivitySheets/sessionActivitySheets.vue') },
  147. { 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') },
  148. { 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') },
  149. { name: 'Admin.Classroom.Project.Create', path: ':classroom_id/project/create', component: () => import('src/pages/Admin/Classroom/project/create.vue') },
  150. { name: 'Admin.Classroom.Project.Show', path: ':classroom_id/project/:project_id', component: () => import('src/pages/Admin/Classroom/project/show.vue') },
  151. { name: 'Admin.Classroom.Project.UserInfo', path: ':classroom_id/project/:project_id/user/:user_id', component: () => import('src/pages/Admin/Classroom/project/showUserProject.vue') },
  152. { name: 'Admin.Classroom.Project.Members', path: ':classroom_id/project/:project_id/members', component: () => import('src/pages/Admin/Classroom/project/members.vue') },
  153. { 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') },
  154. { name: 'Admin.Classroom.Team.Create', path: ':classroom_id/team/create', component: () => import('src/pages/Admin/Classroom/Team/create.vue') },
  155. { name: 'Admin.Classroom.Team.Show', path: ':classroom_id/team/:team_id', component: () => import('src/pages/Admin/Classroom/Team/show.vue') },
  156. { name: 'Admin.Classroom.Ticket', path: 'ticket', component: () => import('src/pages/Admin/Classroom/Ticket.vue'), breadcrumbs: { title: 'درخواست ها دوره های آموزشی' } },
  157. { name: 'Admin.Classroom.TestSet.Index', path: ':classroom_id/unit/:unit_id/test_set', component: () => import('src/pages/Admin/TestSet/Index.vue') },
  158. { name: 'Admin.Classroom.TestSet.Test.Show', path: ':classroom_id/test_set/:test_set_id/test/:id', component: () => import('src/pages/Admin/Test/Show.vue') },
  159. { name: 'Admin.Classroom.TestSet.Test.Create', path: ':classroom_id/test_set/:test_set_id/test/create', component: () => import('src/pages/Admin/Test/Create.vue') },
  160. { name: 'Admin.Classroom.Test.AnswerBooks.Index', path: ':classroom_id/test/:test_id/answer_books', component: () => import('src/pages/Admin/Classroom/ClassroomAnswerBooks.vue') },
  161. { 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') }
  162. ]
  163. },
  164. {
  165. name: 'Admin.Event',
  166. path: 'events',
  167. component: () => import('layouts/bareLayout.vue'),
  168. breadcrumbs: { title: 'دوره های آموزشی', route: { name: 'Admin.Event.Index' } },
  169. children: [
  170. { name: 'Admin.Event.Index', path: '', component: () => import('src/pages/Admin/Event/index.vue') },
  171. { name: 'Admin.Event.Create', path: 'create', component: () => import('src/pages/Admin/Event/create.vue'), breadcrumbs: { title: 'ساخت دوره آموزشی' } },
  172. { name: 'Admin.Event.Show', path: ':id', component: () => import('src/pages/Admin/Event/show.vue') },
  173. { name: 'Admin.Event.Session.AttendanceSheetList', path: ':classroom_id/session/:session_id/session_attendance_sheets', component: () => import('pages/Admin/Event/SessionActivitySheets/sessionActivitySheets.vue') },
  174. { 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') },
  175. { 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') },
  176. { name: 'Admin.Event.Project.Create', path: ':classroom_id/project/create', component: () => import('src/pages/Admin/Event/project/create.vue'), breadcrumbs: { title: 'ساخت دوره آموزشی' } },
  177. { name: 'Admin.Event.Project.Show', path: ':classroom_id/project/:project_id', component: () => import('src/pages/Admin/Event/project/show.vue') },
  178. { name: 'Admin.Event.Project.Members', path: ':classroom_id/project/:project_id/members', component: () => import('src/pages/Admin/Event/project/members.vue') },
  179. { 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') },
  180. // { name: 'Admin.Event.Project', path: ':id', component: () => import('src/pages/Admin/Event/show.vue') },
  181. { name: 'Admin.Event.Ticket', path: 'ticket', component: () => import('src/pages/Admin/Event/Ticket.vue'), breadcrumbs: { title: 'درخواست ها دوره های آموزشی' } },
  182. { name: 'Admin.Event.TestSet.Index', path: 'test_set', component: () => import('src/pages/Admin/Event/Test/Index.vue') },
  183. { name: 'Admin.Event.TestSet.Create', path: 'test_set/create', component: () => import('src/pages/Admin/Event/Test/Create.vue') },
  184. { name: 'Admin.Event.TestSet.Show', path: 'test_set/:test_set_id', component: () => import('src/pages/Admin/Event/Test/Show.vue') },
  185. { name: 'Admin.Event.TestSet.Questions.Index', path: 'test_set/:test_set_id/questions', component: () => import('src/pages/Admin/Event/Question/Index.vue') },
  186. { name: 'Admin.Event.TestSet.Questions.Create', path: 'test_set/questions/create', component: () => import('src/pages/Admin/Event/Question/Create.vue') },
  187. { name: 'Admin.Event.TestSet.Questions.Show', path: 'test_set/questions/:question_id', component: () => import('src/pages/Admin/Event/Question/Show.vue') },
  188. { 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') }
  189. ]
  190. },
  191. {
  192. name: 'Admin.Classroom.DiscussionCircles',
  193. path: 'discussion-circles-classrooms',
  194. component: () => import('layouts/bareLayout.vue'),
  195. breadcrumbs: { title: 'دوره های آموزشی', route: { name: 'Admin.Classroom.DiscussionCircles.Index' } },
  196. children: [
  197. { name: 'Admin.Classroom.DiscussionCircles.Index', path: '', component: () => import('src/pages/Admin/DiscussionCirclesClassroom/index.vue') },
  198. { name: 'Admin.Classroom.DiscussionCircles.Create', path: 'create', component: () => import('src/pages/Admin/DiscussionCirclesClassroom/create.vue'), breadcrumbs: { title: 'ساخت دوره آموزشی' } },
  199. { name: 'Admin.Classroom.DiscussionCircles.Show', path: ':id', component: () => import('src/pages/Admin/DiscussionCirclesClassroom/show.vue'), breadcrumbs: { title: 'مشاهده اطلاعات دوره آموزشی' } },
  200. { name: 'Admin.Classroom.DiscussionCircles.Ticket', path: 'ticket', component: () => import('src/pages/Admin/DiscussionCirclesClassroom/Ticket.vue'), breadcrumbs: { title: 'درخواست ها دوره های آموزشی' } }
  201. ]
  202. },
  203. {
  204. path: 'content',
  205. name: 'Admin.Content',
  206. component: () => import('layouts/bareLayout.vue'),
  207. children: [
  208. { path: '', name: 'Admin.Content.List', component: () => import('src/pages/Admin/Content/List.vue') },
  209. { path: 'create', name: 'Admin.Content.Create', component: () => import('src/pages/Admin/Content/Create.vue') },
  210. { path: ':id', name: 'Admin.Content.Show', component: () => import('src/pages/Admin/Content/Show.vue') },
  211. { name: 'Admin.Content.Ticket', path: 'ticket', component: () => import('src/pages/Admin/Content/Ticket.vue'), breadcrumbs: { title: 'درخواست ها دوره های آموزشی' } }
  212. ]
  213. },
  214. {
  215. path: 'content-topic',
  216. name: 'Admin.ContentTopic',
  217. component: () => import('layouts/bareLayout.vue'),
  218. children: [
  219. { path: '', name: 'Admin.ContentTopic.List', component: () => import('src/pages/Admin/ContentTopic/List.vue') },
  220. { path: 'create', name: 'Admin.ContentTopic.Create', component: () => import('src/pages/Admin/ContentTopic/Create.vue') },
  221. { path: ':id', name: 'Admin.ContentTopic.Show', component: () => import('src/pages/Admin/ContentTopic/Show.vue') }
  222. ]
  223. },
  224. {
  225. path: 'hadith',
  226. name: 'Admin.Hadith',
  227. component: () => import('layouts/bareLayout.vue'),
  228. children: [
  229. { path: '', name: 'Admin.Hadith.List', component: () => import('src/pages/Admin/Hadith/List.vue') },
  230. { path: 'create', name: 'Admin.Hadith.Create', component: () => import('src/pages/Admin/Hadith/Create.vue') },
  231. { path: ':id', name: 'Admin.Hadith.Show', component: () => import('src/pages/Admin/Hadith/Show.vue') }
  232. ]
  233. },
  234. {
  235. path: 'hashtag',
  236. name: 'Admin.Hashtag',
  237. component: () => import('layouts/bareLayout.vue'),
  238. children: [
  239. { path: '', name: 'Admin.Hashtag.List', component: () => import('src/pages/Admin/Hashtag/List.vue') },
  240. { path: 'create', name: 'Admin.Hashtag.Create', component: () => import('src/pages/Admin/Hashtag/Create.vue') },
  241. { path: ':id', name: 'Admin.Hashtag.Show', component: () => import('src/pages/Admin/Hashtag/Show.vue') }
  242. ]
  243. },
  244. {
  245. path: 'donation',
  246. name: 'Admin.Donation',
  247. component: () => import('layouts/bareLayout.vue'),
  248. children: [
  249. { path: '', name: 'Admin.Donation.List', component: () => import('src/pages/Admin/Donation/List.vue') },
  250. { path: 'create', name: 'Admin.Donation.Create', component: () => import('src/pages/Admin/Donation/Create.vue') },
  251. { path: ':id', name: 'Admin.Donation.Show', component: () => import('src/pages/Admin/Donation/Show.vue') }
  252. ]
  253. },
  254. {
  255. path: 'post',
  256. name: 'Admin.Post',
  257. component: () => import('layouts/bareLayout.vue'),
  258. children: [
  259. { path: '', name: 'Admin.Post.List', component: () => import('src/pages/Admin/Post/List.vue') },
  260. { path: 'create', name: 'Admin.Post.Create', component: () => import('src/pages/Admin/Post/Create.vue') },
  261. { path: ':id', name: 'Admin.Post.Show', component: () => import('src/pages/Admin/Post/Show.vue') }
  262. ]
  263. },
  264. {
  265. path: 'media',
  266. name: 'Admin.Media',
  267. component: () => import('layouts/bareLayout.vue'),
  268. children: [
  269. // { path: '', name: 'Admin.Content.List', component: () => import('src/pages/Admin/Content/List.vue') },
  270. // { path: 'create', name: 'Admin.Content.Create', component: () => import('src/pages/Admin/Content/Create.vue') },
  271. { path: ':id', name: 'Admin.Media.Show', component: () => import('src/pages/Admin/Media/Show.vue') }
  272. // { name: 'Admin.Content.Ticket', path: 'ticket', component: () => import('src/pages/Admin/Classroom/Ticket.vue'), breadcrumbs: { title: 'درخواست ها دوره های آموزشی' } }
  273. ]
  274. },
  275. {
  276. path: 'notice',
  277. name: 'Admin.Notice',
  278. component: () => import('layouts/bareLayout.vue'),
  279. children: [
  280. {
  281. path: '',
  282. name: 'Admin.Notice.List',
  283. component: () => import('src/pages/Admin/Notice/List.vue')
  284. },
  285. {
  286. path: 'create',
  287. name: 'Admin.Notice.Create',
  288. component: () => import('src/pages/Admin/Notice/Create.vue')
  289. },
  290. {
  291. path: ':id',
  292. name: 'Admin.Notice.Show',
  293. component: () => import('src/pages/Admin/Notice/Show.vue')
  294. }
  295. ]
  296. },
  297. {
  298. path: 'content-category',
  299. name: 'Admin.ContentCategory',
  300. component: () => import('layouts/bareLayout.vue'),
  301. children: [
  302. { path: '', name: 'Admin.ContentCategory.List', component: () => import('src/pages/Admin/ContentCategory/List.vue') },
  303. { path: 'create', name: 'Admin.ContentCategory.Create', component: () => import('src/pages/Admin/ContentCategory/Create.vue') },
  304. { path: ':id', name: 'Admin.ContentCategory.Show', component: () => import('src/pages/Admin/ContentCategory/Show.vue') }
  305. ]
  306. },
  307. {
  308. path: 'content-topic-category',
  309. name: 'Admin.ContentTopicCategory',
  310. component: () => import('layouts/bareLayout.vue'),
  311. children: [
  312. { path: '', name: 'Admin.ContentTopicCategory.List', component: () => import('src/pages/Admin/ContentTopicCategory/List.vue') },
  313. { path: 'create', name: 'Admin.ContentTopicCategory.Create', component: () => import('src/pages/Admin/ContentTopicCategory/Create.vue') },
  314. { path: ':id', name: 'Admin.ContentTopicCategory.Show', component: () => import('src/pages/Admin/ContentTopicCategory/Show.vue') }
  315. ]
  316. },
  317. {
  318. path: 'donation-category',
  319. name: 'Admin.DonationCategory',
  320. component: () => import('layouts/bareLayout.vue'),
  321. children: [
  322. { path: '', name: 'Admin.DonationCategory.List', component: () => import('src/pages/Admin/DonationCategory/List.vue') },
  323. { path: 'create', name: 'Admin.DonationCategory.Create', component: () => import('src/pages/Admin/DonationCategory/Create.vue') },
  324. { path: ':id', name: 'Admin.DonationCategory.Show', component: () => import('src/pages/Admin/DonationCategory/Show.vue') }
  325. ]
  326. },
  327. {
  328. path: 'post-category',
  329. name: 'Admin.PostCategory',
  330. component: () => import('layouts/bareLayout.vue'),
  331. children: [
  332. { path: '', name: 'Admin.PostCategory.List', component: () => import('src/pages/Admin/PostCategory/List.vue') },
  333. { path: 'create', name: 'Admin.PostCategory.Create', component: () => import('src/pages/Admin/PostCategory/Create.vue') },
  334. { path: ':id', name: 'Admin.PostCategory.Show', component: () => import('src/pages/Admin/PostCategory/Show.vue') }
  335. ]
  336. },
  337. {
  338. name: 'Admin.Session',
  339. path: 'session',
  340. component: () => import('layouts/bareLayout.vue'),
  341. breadcrumbs: { title: 'طلیعه حکمت' },
  342. children: [
  343. { name: 'Admin.Session.Index', path: '', component: () => import('src/pages/Admin/Session/index.vue') },
  344. { name: 'Admin.Session.Create', path: 'create', component: () => import('src/pages/Admin/Session/create.vue') },
  345. { name: 'Admin.Session.Show', path: ':id', component: () => import('src/pages/Admin/Session/show.vue') },
  346. { name: 'Admin.Session.UserClass', path: ':session_id/user/:user_id', component: () => import('src/pages/Admin/Session/showUserSession.vue') }
  347. ]
  348. },
  349. {
  350. path: 'invoice',
  351. name: 'Admin.Invoice',
  352. component: () => import('layouts/bareLayout.vue'),
  353. children: [
  354. {
  355. path: '',
  356. name: 'Admin.Invoice.List',
  357. component: () => import('src/pages/Admin/Invoice/List.vue')
  358. },
  359. {
  360. path: ':id',
  361. name: 'Admin.Invoice.Show',
  362. component: () => import('src/pages/Admin/Invoice/Show.vue')
  363. },
  364. {
  365. path: 'ticket',
  366. name: 'Admin.Invoice.Ticket',
  367. component: () => import('layouts/bareLayout.vue'),
  368. children: [
  369. {
  370. path: '',
  371. name: 'Admin.Invoice.Ticket.List',
  372. component: () => import('src/pages/Admin/Invoice/Ticket/List.vue')
  373. },
  374. {
  375. path: ':id',
  376. name: 'Admin.Invoice.Ticket.Show',
  377. component: () => import('src/pages/Admin/Invoice/Ticket/Show.vue')
  378. }
  379. ]
  380. }
  381. ]
  382. },
  383. {
  384. path: 'payment',
  385. name: 'Admin.Payment',
  386. component: () => import('layouts/bareLayout.vue'),
  387. children: [
  388. {
  389. path: '',
  390. name: 'Admin.Payment.List',
  391. component: () => import('src/pages/Admin/Payment/List.vue')
  392. },
  393. {
  394. path: ':id',
  395. name: 'Admin.Payment.Show',
  396. component: () => import('src/pages/Admin/Payment/Show.vue')
  397. }
  398. ]
  399. },
  400. {
  401. path: 'store',
  402. name: 'Admin.Store',
  403. component: () => import('layouts/bareLayout.vue'),
  404. children: [
  405. {
  406. path: 'category',
  407. name: 'Admin.Store.Category',
  408. component: () => import('layouts/bareLayout.vue'),
  409. children: [
  410. { path: '', name: 'Admin.Store.Category.List', component: () => import('src/pages/Admin/StoreCategory/List.vue') },
  411. { path: 'create', name: 'Admin.Store.Category.Create', component: () => import('src/pages/Admin/StoreCategory/Create.vue') },
  412. { path: ':id', name: 'Admin.Store.Category.Show', component: () => import('src/pages/Admin/StoreCategory/Show.vue') }
  413. ]
  414. },
  415. {
  416. path: 'package',
  417. name: 'Admin.Store.Package',
  418. component: () => import('layouts/bareLayout.vue'),
  419. children: [
  420. { path: '', name: 'Admin.Store.Package.List', component: () => import('src/pages/Admin/StorePackage/List.vue') },
  421. { path: 'create', name: 'Admin.Store.Package.Create', component: () => import('src/pages/Admin/StorePackage/Create.vue') },
  422. { path: ':id', name: 'Admin.Store.Package.Show', component: () => import('src/pages/Admin/StorePackage/Show.vue') }
  423. ]
  424. },
  425. {
  426. path: 'product',
  427. name: 'Admin.Store.Product',
  428. component: () => import('layouts/bareLayout.vue'),
  429. children: [
  430. { path: '', name: 'Admin.Store.Product.List', component: () => import('src/pages/Admin/StoreProduct/List.vue') },
  431. { path: 'create', name: 'Admin.Store.Product.Create', component: () => import('src/pages/Admin/StoreProduct/Create.vue') },
  432. { path: ':id', name: 'Admin.Store.Product.Show', component: () => import('src/pages/Admin/StoreProduct/Show.vue') }
  433. ]
  434. },
  435. {
  436. path: 'discount',
  437. name: 'Admin.Store.Discount',
  438. component: () => import('layouts/bareLayout.vue'),
  439. children: [
  440. { path: '', name: 'Admin.Store.Discount.List', component: () => import('src/pages/Admin/StoreDiscount/List.vue') },
  441. { path: 'create', name: 'Admin.Store.Discount.Create', component: () => import('src/pages/Admin/StoreDiscount/Create.vue') },
  442. { path: ':id', name: 'Admin.Store.Discount.Show', component: () => import('src/pages/Admin/StoreDiscount/Show.vue') }
  443. ]
  444. },
  445. {
  446. path: 'basket',
  447. name: 'Admin.Store.Basket',
  448. component: () => import('layouts/bareLayout.vue'),
  449. children: [
  450. { path: '', name: 'Admin.Store.Basket.List', component: () => import('src/pages/Admin/StoreBasket/List.vue') },
  451. { path: 'delivery-cost', name: 'Admin.Store.Basket.DeliveryCost', component: () => import('src/pages/Admin/StoreBasket/DeliveryCost.vue') },
  452. { path: 'purchase-regulations', name: 'Admin.Store.Basket.PurchaseRegulations', component: () => import('src/pages/Admin/StoreBasket/PurchaseRegulations.vue') },
  453. { path: ':id', name: 'Admin.Store.Basket.Show', component: () => import('src/pages/Admin/StoreBasket/Show.vue') }
  454. ]
  455. }
  456. ]
  457. },
  458. {
  459. path: 'transaction',
  460. name: 'Admin.Transaction',
  461. component: () => import('layouts/bareLayout.vue'),
  462. children: [
  463. {
  464. path: '',
  465. name: 'Admin.Transaction.List',
  466. component: () => import('src/pages/Admin/Transaction/List.vue')
  467. },
  468. {
  469. path: ':id',
  470. name: 'Admin.Transaction.Show',
  471. component: () => import('src/pages/Admin/Transaction/Show.vue')
  472. }
  473. ]
  474. }
  475. ]
  476. }