routes.js 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765
  1. import { /* notLogedIn, */Authenticated, canSeeAdminPanel, canSeeUserProfilePanel, HasOverdueInstalment } from './middleware/middleware.js'
  2. const routes = [
  3. {
  4. path: '',
  5. layoutConfig: {
  6. layoutView: 'lHh Lpr fff',
  7. layoutHeader: true,
  8. layoutHeaderType: 'main',
  9. layoutHeaderVisible: true,
  10. layoutHeaderReveal: false,
  11. layoutHeaderElevated: false,
  12. layoutHeaderBordered: false,
  13. layoutLeftDrawer: true,
  14. layoutLeftSideBarType: 'main',
  15. layoutLeftDrawerVisible: false,
  16. layoutLeftDrawerOverlay: false,
  17. layoutLeftDrawerElevated: false,
  18. layoutLeftDrawerBordered: false,
  19. layoutLeftDrawerWidth: 325,
  20. layoutLeftDrawerBehavior: 'default',
  21. layoutRightDrawer: false,
  22. layoutFooter: true,
  23. showHamburgerBtn: true,
  24. layoutFooterVisible: true,
  25. layoutFooterType: 'main',
  26. layoutHeaderCustomClass: '',
  27. layoutBreadcrumbsElements: [],
  28. layoutBreadcrumbs: {
  29. separator: 'home'
  30. },
  31. layoutLeftDrawerCustomClass: 'main-layout-left-drawer',
  32. layoutPageContainerCustomClass: 'main-layout-container'
  33. },
  34. component: () => import('layouts/MainLayout.vue'),
  35. meta: {
  36. hasDynamicSetting: true
  37. },
  38. children: [
  39. {
  40. path: '/auth',
  41. name: 'Auth',
  42. layoutConfig: {
  43. layoutHeaderVisible: false,
  44. layoutHeader: false,
  45. layoutLeftDrawer: false,
  46. layoutFooter: false,
  47. layoutFooterVisible: false
  48. },
  49. component: () => import('layouts/bareLayout.vue'),
  50. children: [
  51. {
  52. path: '/login/admin',
  53. name: 'AdminLogin',
  54. // meta: {
  55. // middlewares: [notLogedIn]
  56. // },
  57. component: () => import('src/pages/Auth/Login.vue')
  58. },
  59. {
  60. path: '/login',
  61. name: 'Login',
  62. // meta: {
  63. // middlewares: [notLogedIn]
  64. // },
  65. component: () => import('src/pages/Auth/Login.vue')
  66. }
  67. ]
  68. },
  69. {
  70. path: '',
  71. name: 'Public',
  72. component: () => import('layouts/bareLayout.vue'),
  73. meta: { middlewares: [canSeeUserProfilePanel] },
  74. children: [
  75. {
  76. name: 'Public.Home',
  77. path: '',
  78. layoutConfig: {
  79. layoutView: 'lhh Lpr fff'
  80. },
  81. meta: {
  82. hasDynamicSetting: true
  83. },
  84. component: () => import('src/pages/Public/index.vue')
  85. },
  86. {
  87. path: 'post',
  88. name: 'Public.Post',
  89. component: () => import('layouts/bareLayout.vue'),
  90. children: [
  91. { path: '', name: 'Public.Post.List', component: () => import('src/pages/Public/Post/List.vue') },
  92. { path: 'news', name: 'Public.Post.List.News', component: () => import('src/pages/Public/Post/News.vue') },
  93. { path: 'guide', name: 'Public.Post.List.Guide', component: () => import('src/pages/Public/Post/Guide.vue') },
  94. { path: ':id', name: 'Public.Post.Show', component: () => import('src/pages/Public/Post/Show.vue') }
  95. ]
  96. },
  97. { path: 'post_category/:category_id', name: 'Public.PostCategory.Show', component: () => import('src/pages/Public/Post/ChildCategoryPostList.vue') },
  98. {
  99. name: 'Public.AllClassrooms',
  100. path: 'all-classrooms',
  101. meta: {
  102. hasDynamicSetting: true
  103. },
  104. component: () => import('src/pages/Public/classrooms.vue')
  105. },
  106. {
  107. name: 'Public.ShowClassroomInfo',
  108. path: 'classroom/:id',
  109. meta: {
  110. hasDynamicSetting: true
  111. },
  112. component: () => import('src/pages/Public/ShowClassroomInfo.vue')
  113. },
  114. {
  115. name: 'Public.FAQ',
  116. path: 'faq',
  117. meta: {
  118. hasDynamicSetting: true
  119. },
  120. component: () => import('src/pages/Public/FAQ.vue')
  121. },
  122. {
  123. name: 'Public.Rules',
  124. path: 'rules',
  125. meta: {
  126. hasDynamicSetting: true
  127. },
  128. component: () => import('src/pages/Public/Rules.vue')
  129. },
  130. {
  131. name: 'Public.AboutUs',
  132. path: 'about-us',
  133. meta: {
  134. hasDynamicSetting: true
  135. },
  136. component: () => import('src/pages/Public/AboutUs.vue')
  137. },
  138. {
  139. name: 'Public.ContactUs',
  140. path: 'contact-us',
  141. meta: {
  142. hasDynamicSetting: true
  143. },
  144. component: () => import('src/pages/Public/ContactUs.vue')
  145. }
  146. ]
  147. },
  148. {
  149. path: 'panel',
  150. name: 'UserPanel',
  151. layoutConfig: {
  152. layoutView: 'hHh LpR lfr',
  153. layoutHeaderType: 'user-panel',
  154. layoutHeaderBordered: true,
  155. layoutLeftDrawer: true,
  156. layoutLeftDrawerVisible: true,
  157. layoutLeftSideBarType: 'user-panel',
  158. layoutLeftDrawerBordered: true,
  159. layoutLeftDrawerWidth: 240,
  160. layoutFooterType: 'panel',
  161. layoutFooter: true
  162. },
  163. meta: { middlewares: [Authenticated, canSeeUserProfilePanel] },
  164. component: () => import('src/layouts/UserPanelLayout.vue'),
  165. children: [
  166. {
  167. name: 'UserPanel.ShopCompleteInfo',
  168. path: 'shop/completeInfo',
  169. layoutConfig: {
  170. layoutView: 'hHh LpR fff',
  171. layoutHeaderType: 'main',
  172. layoutHeaderBordered: true,
  173. layoutLeftDrawer: false,
  174. layoutLeftDrawerVisible: false,
  175. layoutFooter: true
  176. },
  177. component: () => import('src/pages/User/Shop/completeInfo.vue')
  178. },
  179. {
  180. name: 'UserPanel.ShopPaymentFromWallet',
  181. path: 'shop/payment-from-wallet',
  182. layoutConfig: {
  183. layoutView: 'hHh LpR fff',
  184. layoutHeaderType: 'main',
  185. layoutHeaderBordered: true,
  186. layoutLeftDrawer: false,
  187. layoutLeftDrawerVisible: false,
  188. layoutFooter: true
  189. },
  190. meta: { middlewares: [Authenticated] },
  191. component: () => import('src/pages/User/Shop/paymentFromWallet.vue')
  192. },
  193. {
  194. name: 'UserPanel.PaymentResult',
  195. path: 'shop/payment-result',
  196. meta: { middlewares: [Authenticated] },
  197. component: () => import('src/pages/User/Shop/paymentResult.vue')
  198. },
  199. {
  200. path: 'profile',
  201. name: 'UserPanel.Profile',
  202. component: () => import('src/layouts/bareLayout.vue'),
  203. meta: { middlewares: [Authenticated] },
  204. children: [
  205. {
  206. name: 'UserPanel.Profile.OverdueInstalments',
  207. path: 'overdue-instalments',
  208. component: () => import('src/pages/User/Profile/OverdueInstalment.vue')
  209. },
  210. {
  211. name: 'UserPanel.Profile.AllClassrooms',
  212. path: 'all-classrooms',
  213. component: () => import('src/pages/User/Profile/classrooms.vue'),
  214. meta: {
  215. breadcrumbs: {
  216. visible: true,
  217. loading: false,
  218. path: [
  219. {
  220. label: 'دوره های من',
  221. to: { name: 'UserPanel.Profile.AllClassrooms' }
  222. }
  223. ]
  224. },
  225. middlewares: [HasOverdueInstalment]
  226. }
  227. },
  228. {
  229. name: 'UserPanel.Profile.AllDiscussionCirclesClassrooms',
  230. path: 'all-discussion-circles-classrooms',
  231. component: () => import('src/pages/User/Profile/DiscussionCirclesClassrooms.vue'),
  232. meta: {
  233. breadcrumbs: {
  234. visible: true,
  235. loading: false,
  236. path: [
  237. {
  238. label: 'حلقه های مباحثاتی من',
  239. to: { name: 'UserPanel.Profile.AllDiscussionCirclesClassrooms' }
  240. }
  241. ]
  242. },
  243. middlewares: [HasOverdueInstalment]
  244. }
  245. },
  246. {
  247. name: 'UserPanel.Profile.ClassroomInfo',
  248. path: 'classroom/:id',
  249. component: () => import('src/pages/User/Profile/classroomInfo.vue'),
  250. meta: {
  251. middlewares: [HasOverdueInstalment]
  252. }
  253. },
  254. { name: 'UserPanel.Profile.Classroom.Project.Show', path: 'classroom/:classroom_id/project/:project_id', component: () => import('src/pages/User/Profile/projectInfo.vue'), breadcrumbs: { title: 'مشاهده اطلاعات دوره آموزشی' } },
  255. {
  256. name: 'UserPanel.Profile.SessionInfo',
  257. path: 'session/:id',
  258. component: () => import('src/pages/User/Profile/sessionInfo.vue'),
  259. meta: {
  260. middlewares: [HasOverdueInstalment]
  261. }
  262. },
  263. {
  264. name: 'UserPanel.Profile.UserInfo',
  265. path: 'user-info',
  266. component: () => import('src/pages/User/Profile/profile.vue')
  267. }
  268. ]
  269. },
  270. {
  271. path: 'invoice',
  272. name: 'UserPanel.Invoice',
  273. component: () => import('layouts/bareLayout.vue'),
  274. children: [
  275. {
  276. path: '',
  277. name: 'UserPanel.Invoice.List',
  278. meta: {
  279. breadcrumbs: {
  280. visible: true,
  281. loading: false,
  282. path: [
  283. {
  284. label: 'بخش مالی'
  285. },
  286. {
  287. label: 'صورتحساب ها',
  288. to: { name: 'UserPanel.Invoice.List' }
  289. }
  290. ]
  291. }
  292. },
  293. component: () => import('src/pages/User/Invoice/List.vue')
  294. },
  295. {
  296. path: 'thankyou',
  297. name: 'UserPanel.Invoice.Thankyou',
  298. component: () => import('src/pages/User/Invoice/Thankyou.vue')
  299. },
  300. {
  301. path: ':id',
  302. name: 'UserPanel.Invoice.Show',
  303. meta: {
  304. breadcrumbs: {
  305. visible: true,
  306. loading: false,
  307. path: [
  308. {
  309. label: 'بخش مالی'
  310. },
  311. {
  312. label: 'صورتحساب ها',
  313. to: { name: 'UserPanel.Invoice.List' }
  314. },
  315. {
  316. label: 'جزییات صورتحساب'
  317. }
  318. ]
  319. }
  320. },
  321. component: () => import('src/pages/User/Invoice/Show.vue')
  322. },
  323. {
  324. path: 'ticket',
  325. name: 'UserPanel.Invoice.Ticket',
  326. component: () => import('layouts/bareLayout.vue'),
  327. children: [
  328. {
  329. path: '',
  330. name: 'UserPanel.Invoice.Ticket.List',
  331. component: () => import('src/pages/User/Invoice/Ticket/List.vue')
  332. },
  333. {
  334. path: ':id',
  335. name: 'UserPanel.Invoice.Ticket.Show',
  336. component: () => import('src/pages/User/Invoice/Ticket/Show.vue')
  337. },
  338. {
  339. path: 'create',
  340. name: 'UserPanel.Invoice.Ticket.Create',
  341. component: () => import('src/pages/User/Invoice/Ticket/Create.vue')
  342. }
  343. ]
  344. }
  345. ]
  346. },
  347. {
  348. path: 'ticket',
  349. name: 'UserPanel.Ticket',
  350. component: () => import('layouts/bareLayout.vue'),
  351. children: [
  352. {
  353. path: '',
  354. name: 'UserPanel.Ticket.List',
  355. component: () => import('src/pages/User/Ticket/List.vue')
  356. },
  357. {
  358. path: ':id',
  359. name: 'UserPanel.Ticket.Show',
  360. meta: {
  361. breadcrumbs: {
  362. visible: true,
  363. loading: false,
  364. path: [
  365. {
  366. label: 'درخواست ها',
  367. to: { name: 'UserPanel.Ticket.List' }
  368. },
  369. {
  370. label: 'جزییات درخواست'
  371. }
  372. ]
  373. }
  374. },
  375. component: () => import('src/pages/User/Ticket/Show.vue')
  376. },
  377. {
  378. path: 'create',
  379. name: 'UserPanel.Ticket.Create',
  380. meta: { middlewares: [Authenticated] },
  381. component: () => import('src/pages/User/Ticket/Create.vue')
  382. }
  383. ]
  384. },
  385. {
  386. path: 'wallet',
  387. name: 'UserPanel.Wallet',
  388. component: () => import('src/pages/User/Wallet/Show.vue'),
  389. meta: {
  390. breadcrumbs: {
  391. visible: true,
  392. loading: false,
  393. path: [
  394. {
  395. label: 'بخش مالی'
  396. },
  397. {
  398. label: 'کیف پول الکترونیک',
  399. to: { name: 'UserPanel.Wallet' }
  400. }
  401. ]
  402. }
  403. }
  404. },
  405. {
  406. path: 'payment',
  407. name: 'UserPanel.Payment',
  408. component: () => import('src/layouts/bareLayout.vue'),
  409. children: [
  410. {
  411. path: '',
  412. name: 'UserPanel.Payment.List',
  413. component: () => import('src/pages/User/Payment/List.vue')
  414. },
  415. {
  416. name: 'UserPanel.Payment.Show',
  417. path: ':id',
  418. component: () => import('src/pages/User/Payment/Show.vue'),
  419. meta: {
  420. breadcrumbs: {
  421. visible: true,
  422. loading: false,
  423. path: [
  424. {
  425. label: 'کیف پول الکترونیک',
  426. to: { name: 'UserPanel.Wallet' }
  427. },
  428. {
  429. label: 'جزییات پرداخت'
  430. }
  431. ]
  432. }
  433. }
  434. }
  435. ]
  436. }
  437. ]
  438. },
  439. {
  440. path: 'admin',
  441. name: 'Admin',
  442. layoutConfig: {
  443. layoutView: 'hHh LpR lfr',
  444. layoutHeaderType: 'admin',
  445. layoutHeaderBordered: true,
  446. layoutLeftDrawer: true,
  447. layoutLeftDrawerVisible: true,
  448. layoutLeftSideBarType: 'admin',
  449. layoutLeftDrawerBordered: true,
  450. layoutLeftDrawerWidth: 240,
  451. layoutFooterType: 'panel',
  452. layoutFooter: true
  453. },
  454. meta: { middlewares: [Authenticated, canSeeAdminPanel] },
  455. component: () => import('src/layouts/AdminLayout.vue'),
  456. children: [
  457. {
  458. name: 'Admin.Settings',
  459. path: 'settings',
  460. component: () => import('src/pages/Admin/Settings.vue'),
  461. breadcrumbs: { title: 'تنظیمات' }
  462. },
  463. {
  464. name: 'Admin.User',
  465. path: 'users',
  466. component: () => import('layouts/bareLayout.vue'),
  467. breadcrumbs: { title: 'کاربران' },
  468. children: [
  469. { name: 'Admin.User.Index', path: '', component: () => import('src/pages/Admin/User/index.vue') },
  470. { name: 'Admin.User.Show', path: ':id', component: () => import('src/pages/Admin/User/show.vue'), breadcrumbs: { title: 'اطلاعات کاربری' } },
  471. { name: 'Admin.User.ClassroomInfo', path: ':id/classroom/:classroom_id', component: () => import('src/pages/Admin/User/UserClassroomInfo.vue'), breadcrumbs: { title: 'اطلاعات کاربری' } }
  472. ]
  473. },
  474. {
  475. name: 'Admin.Category',
  476. path: 'categories',
  477. component: () => import('layouts/bareLayout.vue'),
  478. breadcrumbs: { title: 'دسته بندی ها' },
  479. children: [
  480. { name: 'Admin.Category.Index', path: '', component: () => import('src/pages/Admin/Category/index.vue') },
  481. { name: 'Admin.Category.Create', path: 'create', component: () => import('src/pages/Admin/Category/create.vue') },
  482. { name: 'Admin.Category.Show', path: ':id', component: () => import('src/pages/Admin/Category/show.vue') }
  483. ]
  484. },
  485. {
  486. name: 'Admin.Category.DiscussionCircles',
  487. path: 'discussion-circles-categories',
  488. component: () => import('layouts/bareLayout.vue'),
  489. breadcrumbs: { title: 'دسته بندی ها' },
  490. children: [
  491. { name: 'Admin.Category.DiscussionCircles.Index', path: '', component: () => import('src/pages/Admin/DiscussionCirclesCategory/index.vue') },
  492. { name: 'Admin.Category.DiscussionCircles.Create', path: 'create', component: () => import('src/pages/Admin/DiscussionCirclesCategory/create.vue') },
  493. { name: 'Admin.Category.DiscussionCircles.Show', path: ':id', component: () => import('src/pages/Admin/DiscussionCirclesCategory/show.vue') }
  494. ]
  495. },
  496. {
  497. name: 'Admin.Unit',
  498. path: 'units',
  499. component: () => import('src/layouts/bareLayout.vue'),
  500. breadcrumbs: { title: 'طلیعه حکمت' },
  501. children: [
  502. // { name: 'Admin.Category.Index', path: '', component: () => import('src/pages/Admin/Category/index.vue') },
  503. // { name: 'Admin.Category.Create', path: 'create', component: () => import('src/pages/Admin/Category/create.vue') },
  504. { name: 'Admin.Unit.Show', path: ':id', component: () => import('src/pages/Admin/Unit/show.vue'), breadcrumbs: { title: 'درس' } }
  505. ]
  506. },
  507. {
  508. name: 'Admin.SessionTemplate',
  509. path: 'session-templates',
  510. component: () => import('layouts/bareLayout.vue'),
  511. breadcrumbs: { title: 'طلیعه حکمت' },
  512. children: [
  513. { name: 'Admin.SessionTemplate.Index', path: '', component: () => import('src/pages/Admin/SessionTemplate/index.vue') },
  514. { name: 'Admin.SessionTemplate.Create', path: 'create', component: () => import('src/pages/Admin/SessionTemplate/create.vue') },
  515. { name: 'Admin.SessionTemplate.Show', path: ':id', component: () => import('src/pages/Admin/SessionTemplate/show.vue') }
  516. ]
  517. },
  518. {
  519. path: 'ticket',
  520. name: 'Admin.Ticket',
  521. component: () => import('layouts/bareLayout.vue'),
  522. children: [
  523. {
  524. path: '',
  525. name: 'Admin.Ticket.List',
  526. component: () => import('src/pages/Admin/Ticket/List.vue')
  527. },
  528. {
  529. path: 'educational',
  530. name: 'Admin.Ticket.List.Educational',
  531. component: () => import('src/pages/Admin/Ticket/EducationalList.vue')
  532. },
  533. {
  534. path: 'create',
  535. name: 'Admin.Ticket.Create',
  536. component: () => import('src/pages/Admin/Ticket/Create.vue')
  537. },
  538. {
  539. path: ':id',
  540. name: 'Admin.Ticket.Show',
  541. component: () => import('src/pages/Admin/Ticket/Show.vue')
  542. }
  543. ]
  544. },
  545. {
  546. name: 'Admin.Classroom',
  547. path: 'classrooms',
  548. component: () => import('layouts/bareLayout.vue'),
  549. breadcrumbs: { title: 'دوره های آموزشی', route: { name: 'Admin.Classroom.Index' } },
  550. children: [
  551. { name: 'Admin.Classroom.Index', path: '', component: () => import('src/pages/Admin/Classroom/index.vue') },
  552. { name: 'Admin.Classroom.Create', path: 'create', component: () => import('src/pages/Admin/Classroom/create.vue'), breadcrumbs: { title: 'ساخت دوره آموزشی' } },
  553. { name: 'Admin.Classroom.Show', path: ':id', component: () => import('src/pages/Admin/Classroom/show.vue'), breadcrumbs: { title: 'مشاهده اطلاعات دوره آموزشی' } },
  554. // { name: 'Admin.Classroom.Project.Create', path: ':id/project/create', component: () => import('src/pages/Admin/Classroom/project/create.vue'), breadcrumbs: { title: 'ساخت دوره آموزشی' } },
  555. { name: 'Admin.Classroom.Project.Show', path: ':id/project/:project_id', component: () => import('src/pages/Admin/Classroom/project/show.vue'), breadcrumbs: { title: 'مشاهده اطلاعات دوره آموزشی' } },
  556. { name: 'Admin.Classroom.Project.Members', path: ':id/project/:project_id/members', component: () => import('src/pages/Admin/Classroom/project/members.vue'), breadcrumbs: { title: 'مشاهده اطلاعات دوره آموزشی' } },
  557. { name: 'Admin.Classroom.Project', path: ':id', component: () => import('src/pages/Admin/Classroom/show.vue'), breadcrumbs: { title: 'مشاهده اطلاعات دوره آموزشی' } },
  558. { name: 'Admin.Classroom.Ticket', path: 'ticket', component: () => import('src/pages/Admin/Classroom/Ticket.vue'), breadcrumbs: { title: 'درخواست ها دوره های آموزشی' } }
  559. ]
  560. },
  561. {
  562. name: 'Admin.Classroom.DiscussionCircles',
  563. path: 'discussion-circles-classrooms',
  564. component: () => import('layouts/bareLayout.vue'),
  565. breadcrumbs: { title: 'دوره های آموزشی', route: { name: 'Admin.Classroom.DiscussionCircles.Index' } },
  566. children: [
  567. { name: 'Admin.Classroom.DiscussionCircles.Index', path: '', component: () => import('src/pages/Admin/DiscussionCirclesClassroom/index.vue') },
  568. { name: 'Admin.Classroom.DiscussionCircles.Create', path: 'create', component: () => import('src/pages/Admin/DiscussionCirclesClassroom/create.vue'), breadcrumbs: { title: 'ساخت دوره آموزشی' } },
  569. { name: 'Admin.Classroom.DiscussionCircles.Show', path: ':id', component: () => import('src/pages/Admin/DiscussionCirclesClassroom/show.vue'), breadcrumbs: { title: 'مشاهده اطلاعات دوره آموزشی' } },
  570. { name: 'Admin.Classroom.DiscussionCircles.Ticket', path: 'ticket', component: () => import('src/pages/Admin/DiscussionCirclesClassroom/Ticket.vue'), breadcrumbs: { title: 'درخواست ها دوره های آموزشی' } }
  571. ]
  572. },
  573. {
  574. path: 'content',
  575. name: 'Admin.Content',
  576. component: () => import('layouts/bareLayout.vue'),
  577. children: [
  578. { path: '', name: 'Admin.Content.List', component: () => import('src/pages/Admin/Content/List.vue') },
  579. { path: 'create', name: 'Admin.Content.Create', component: () => import('src/pages/Admin/Content/Create.vue') },
  580. { path: ':id', name: 'Admin.Content.Show', component: () => import('src/pages/Admin/Content/Show.vue') },
  581. { name: 'Admin.Content.Ticket', path: 'ticket', component: () => import('src/pages/Admin/Content/Ticket.vue'), breadcrumbs: { title: 'درخواست ها دوره های آموزشی' } }
  582. ]
  583. },
  584. {
  585. path: 'post',
  586. name: 'Admin.Post',
  587. component: () => import('layouts/bareLayout.vue'),
  588. children: [
  589. { path: '', name: 'Admin.Post.List', component: () => import('src/pages/Admin/Post/List.vue') },
  590. { path: 'create', name: 'Admin.Post.Create', component: () => import('src/pages/Admin/Post/Create.vue') },
  591. { path: ':id', name: 'Admin.Post.Show', component: () => import('src/pages/Admin/Post/Show.vue') }
  592. ]
  593. },
  594. {
  595. path: 'media',
  596. name: 'Admin.Media',
  597. component: () => import('layouts/bareLayout.vue'),
  598. children: [
  599. // { path: '', name: 'Admin.Content.List', component: () => import('src/pages/Admin/Content/List.vue') },
  600. // { path: 'create', name: 'Admin.Content.Create', component: () => import('src/pages/Admin/Content/Create.vue') },
  601. { path: ':id', name: 'Admin.Media.Show', component: () => import('src/pages/Admin/Media/Show.vue') }
  602. // { name: 'Admin.Content.Ticket', path: 'ticket', component: () => import('src/pages/Admin/Classroom/Ticket.vue'), breadcrumbs: { title: 'درخواست ها دوره های آموزشی' } }
  603. ]
  604. },
  605. {
  606. path: 'content-category',
  607. name: 'Admin.ContentCategory',
  608. component: () => import('layouts/bareLayout.vue'),
  609. children: [
  610. { path: '', name: 'Admin.ContentCategory.List', component: () => import('src/pages/Admin/ContentCategory/List.vue') },
  611. { path: 'create', name: 'Admin.ContentCategory.Create', component: () => import('src/pages/Admin/ContentCategory/Create.vue') },
  612. { path: ':id', name: 'Admin.ContentCategory.Show', component: () => import('src/pages/Admin/ContentCategory/Show.vue') }
  613. ]
  614. },
  615. {
  616. path: 'post-category',
  617. name: 'Admin.PostCategory',
  618. component: () => import('layouts/bareLayout.vue'),
  619. children: [
  620. { path: '', name: 'Admin.PostCategory.List', component: () => import('src/pages/Admin/PostCategory/List.vue') },
  621. { path: 'create', name: 'Admin.PostCategory.Create', component: () => import('src/pages/Admin/PostCategory/Create.vue') },
  622. { path: ':id', name: 'Admin.PostCategory.Show', component: () => import('src/pages/Admin/PostCategory/Show.vue') }
  623. ]
  624. },
  625. {
  626. name: 'Admin.Session',
  627. path: 'session',
  628. component: () => import('layouts/bareLayout.vue'),
  629. breadcrumbs: { title: 'طلیعه حکمت' },
  630. children: [
  631. { name: 'Admin.Session.Index', path: '', component: () => import('src/pages/Admin/Session/index.vue') },
  632. { name: 'Admin.Session.Create', path: 'create', component: () => import('src/pages/Admin/Session/create.vue') },
  633. { name: 'Admin.Session.Show', path: ':id', component: () => import('src/pages/Admin/Session/show.vue') }
  634. ]
  635. },
  636. {
  637. path: 'invoice',
  638. name: 'Admin.Invoice',
  639. component: () => import('layouts/bareLayout.vue'),
  640. children: [
  641. {
  642. path: '',
  643. name: 'Admin.Invoice.List',
  644. component: () => import('src/pages/Admin/Invoice/List.vue')
  645. },
  646. {
  647. path: ':id',
  648. name: 'Admin.Invoice.Show',
  649. component: () => import('src/pages/Admin/Invoice/Show.vue')
  650. },
  651. {
  652. path: 'ticket',
  653. name: 'Admin.Invoice.Ticket',
  654. component: () => import('layouts/bareLayout.vue'),
  655. children: [
  656. {
  657. path: '',
  658. name: 'Admin.Invoice.Ticket.List',
  659. component: () => import('src/pages/Admin/Invoice/Ticket/List.vue')
  660. },
  661. {
  662. path: ':id',
  663. name: 'Admin.Invoice.Ticket.Show',
  664. component: () => import('src/pages/Admin/Invoice/Ticket/Show.vue')
  665. }
  666. ]
  667. }
  668. ]
  669. },
  670. {
  671. path: 'payment',
  672. name: 'Admin.Payment',
  673. component: () => import('layouts/bareLayout.vue'),
  674. children: [
  675. {
  676. path: '',
  677. name: 'Admin.Payment.List',
  678. component: () => import('src/pages/Admin/Payment/List.vue')
  679. },
  680. {
  681. path: ':id',
  682. name: 'Admin.Payment.Show',
  683. component: () => import('src/pages/Admin/Payment/Show.vue')
  684. }
  685. ]
  686. },
  687. {
  688. path: 'transaction',
  689. name: 'Admin.Transaction',
  690. component: () => import('layouts/bareLayout.vue'),
  691. children: [
  692. {
  693. path: '',
  694. name: 'Admin.Transaction.List',
  695. component: () => import('src/pages/Admin/Transaction/List.vue')
  696. },
  697. {
  698. path: ':id',
  699. name: 'Admin.Transaction.Show',
  700. component: () => import('src/pages/Admin/Transaction/Show.vue')
  701. }
  702. ]
  703. }
  704. ]
  705. },
  706. {
  707. path: 'document',
  708. name: 'Document',
  709. component: () => import('layouts/bareLayout.vue'),
  710. children: [
  711. {
  712. path: 'component',
  713. name: 'component',
  714. component: () => import('src/pages/Document/component.vue'),
  715. breadcrumbs: { title: 'component' },
  716. meta: {
  717. middlewares: [Authenticated]
  718. }
  719. },
  720. {
  721. path: 'theme',
  722. name: 'Document.Theme',
  723. component: () => import('layouts/bareLayout.vue'),
  724. breadcrumbs: { title: 'Theme' },
  725. children: [
  726. {
  727. path: 'controls',
  728. name: 'Document.Theme.Controls',
  729. component: () => import('src/pages/Document/Theme/Controls.vue'),
  730. breadcrumbs: { title: 'Controls' }
  731. }
  732. ]
  733. },
  734. {
  735. path: 'debug',
  736. name: 'Document.Debug',
  737. component: () => import('src/pages/Document/debug.vue')
  738. },
  739. {
  740. path: 'icon-sax',
  741. name: 'Document.IconSax',
  742. component: () => import('src/pages/Document/IconSax.vue')
  743. },
  744. {
  745. path: '/form-generator',
  746. name: 'formGenerator',
  747. component: () => import('src/pages/Document/formGenerator.vue')
  748. }
  749. ]
  750. }
  751. ]
  752. }
  753. // must status 404
  754. // Always leave this as last one,
  755. // but you can also remove it
  756. // {
  757. // path: '/404/:catchAll(.*)*',
  758. // name: 'NotFound',
  759. // component:
  760. // () => import('src/pages/Error404.vue')
  761. // }
  762. ]
  763. export default routes