routes.js 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783
  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') },
  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. path: 'transactions',
  417. name: 'UserPanel.Payment.TransactionList',
  418. component: () => import('src/pages/User/Payment/TransactionList.vue')
  419. },
  420. {
  421. name: 'UserPanel.Payment.Show',
  422. path: ':id',
  423. component: () => import('src/pages/User/Payment/Show.vue'),
  424. meta: {
  425. breadcrumbs: {
  426. visible: true,
  427. loading: false,
  428. path: [
  429. {
  430. label: 'کیف پول الکترونیک',
  431. to: { name: 'UserPanel.Wallet' }
  432. },
  433. {
  434. label: 'جزییات پرداخت'
  435. }
  436. ]
  437. }
  438. }
  439. }
  440. ]
  441. }
  442. ]
  443. },
  444. {
  445. path: 'admin',
  446. name: 'Admin',
  447. layoutConfig: {
  448. layoutView: 'hHh LpR lfr',
  449. layoutHeaderType: 'admin',
  450. layoutHeaderBordered: true,
  451. layoutLeftDrawer: true,
  452. layoutLeftDrawerVisible: true,
  453. layoutLeftSideBarType: 'admin',
  454. layoutLeftDrawerBordered: true,
  455. layoutLeftDrawerWidth: 240,
  456. layoutFooterType: 'panel',
  457. layoutFooter: true
  458. },
  459. meta: { middlewares: [Authenticated, canSeeAdminPanel] },
  460. component: () => import('src/layouts/AdminLayout.vue'),
  461. children: [
  462. {
  463. name: 'Admin.Settings',
  464. path: 'settings',
  465. component: () => import('src/pages/Admin/Settings.vue'),
  466. breadcrumbs: { title: 'تنظیمات' }
  467. },
  468. {
  469. name: 'Admin.User',
  470. path: 'users',
  471. component: () => import('layouts/bareLayout.vue'),
  472. breadcrumbs: { title: 'کاربران' },
  473. children: [
  474. { name: 'Admin.User.Index', path: '', component: () => import('src/pages/Admin/User/index.vue') },
  475. { name: 'Admin.User.Show', path: ':id', component: () => import('src/pages/Admin/User/show.vue'), breadcrumbs: { title: 'اطلاعات کاربری' } },
  476. { name: 'Admin.User.ClassroomInfo', path: ':id/classroom/:classroom_id', component: () => import('src/pages/Admin/User/UserClassroomInfo.vue'), breadcrumbs: { title: 'اطلاعات کاربری' } }
  477. ]
  478. },
  479. {
  480. name: 'Admin.Category',
  481. path: 'categories',
  482. component: () => import('layouts/bareLayout.vue'),
  483. breadcrumbs: { title: 'دسته بندی ها' },
  484. children: [
  485. { name: 'Admin.Category.Index', path: '', component: () => import('src/pages/Admin/Category/index.vue') },
  486. { name: 'Admin.Category.Create', path: 'create', component: () => import('src/pages/Admin/Category/create.vue') },
  487. { name: 'Admin.Category.Show', path: ':id', component: () => import('src/pages/Admin/Category/show.vue') }
  488. ]
  489. },
  490. {
  491. name: 'Admin.Category.DiscussionCircles',
  492. path: 'discussion-circles-categories',
  493. component: () => import('layouts/bareLayout.vue'),
  494. breadcrumbs: { title: 'دسته بندی ها' },
  495. children: [
  496. { name: 'Admin.Category.DiscussionCircles.Index', path: '', component: () => import('src/pages/Admin/DiscussionCirclesCategory/index.vue') },
  497. { name: 'Admin.Category.DiscussionCircles.Create', path: 'create', component: () => import('src/pages/Admin/DiscussionCirclesCategory/create.vue') },
  498. { name: 'Admin.Category.DiscussionCircles.Show', path: ':id', component: () => import('src/pages/Admin/DiscussionCirclesCategory/show.vue') }
  499. ]
  500. },
  501. {
  502. name: 'Admin.Unit',
  503. path: 'units',
  504. component: () => import('src/layouts/bareLayout.vue'),
  505. breadcrumbs: { title: 'طلیعه حکمت' },
  506. children: [
  507. // { name: 'Admin.Category.Index', path: '', component: () => import('src/pages/Admin/Category/index.vue') },
  508. // { name: 'Admin.Category.Create', path: 'create', component: () => import('src/pages/Admin/Category/create.vue') },
  509. { name: 'Admin.Unit.Show', path: ':id', component: () => import('src/pages/Admin/Unit/show.vue'), breadcrumbs: { title: 'درس' } }
  510. ]
  511. },
  512. {
  513. name: 'Admin.SessionTemplate',
  514. path: 'session-templates',
  515. component: () => import('layouts/bareLayout.vue'),
  516. breadcrumbs: { title: 'طلیعه حکمت' },
  517. children: [
  518. { name: 'Admin.SessionTemplate.Index', path: '', component: () => import('src/pages/Admin/SessionTemplate/index.vue') },
  519. { name: 'Admin.SessionTemplate.Create', path: 'create', component: () => import('src/pages/Admin/SessionTemplate/create.vue') },
  520. { name: 'Admin.SessionTemplate.Show', path: ':id', component: () => import('src/pages/Admin/SessionTemplate/show.vue') }
  521. ]
  522. },
  523. {
  524. path: 'ticket',
  525. name: 'Admin.Ticket',
  526. component: () => import('layouts/bareLayout.vue'),
  527. children: [
  528. {
  529. path: '',
  530. name: 'Admin.Ticket.List',
  531. component: () => import('src/pages/Admin/Ticket/List.vue')
  532. },
  533. {
  534. path: 'educational',
  535. name: 'Admin.Ticket.List.Educational',
  536. component: () => import('src/pages/Admin/Ticket/EducationalList.vue')
  537. },
  538. {
  539. path: 'create',
  540. name: 'Admin.Ticket.Create',
  541. component: () => import('src/pages/Admin/Ticket/Create.vue')
  542. },
  543. {
  544. path: ':id',
  545. name: 'Admin.Ticket.Show',
  546. component: () => import('src/pages/Admin/Ticket/Show.vue')
  547. }
  548. ]
  549. },
  550. {
  551. name: 'Admin.Classroom',
  552. path: 'classrooms',
  553. component: () => import('layouts/bareLayout.vue'),
  554. children: [
  555. { name: 'Admin.Classroom.Index', path: '', component: () => import('src/pages/Admin/Classroom/index.vue') },
  556. { name: 'Admin.Classroom.Create', path: 'create', component: () => import('src/pages/Admin/Classroom/create.vue'), breadcrumbs: { title: 'ساخت دوره آموزشی' } },
  557. { name: 'Admin.Classroom.Show', path: ':id', component: () => import('src/pages/Admin/Classroom/show.vue') },
  558. { name: 'Admin.Classroom.Session.AttendanceSheetList', path: ':classroom_id/session/:session_id/session_attendance_sheets', component: () => import('pages/Admin/Classroom/SessionActivitySheets/sessionActivitySheets.vue') },
  559. { 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') },
  560. { 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') },
  561. { name: 'Admin.Classroom.Project.Create', path: ':classroom_id/project/create', component: () => import('src/pages/Admin/Classroom/project/create.vue') },
  562. { name: 'Admin.Classroom.Project.Show', path: ':classroom_id/project/:project_id', component: () => import('src/pages/Admin/Classroom/project/show.vue') },
  563. { name: 'Admin.Classroom.Project.Members', path: ':classroom_id/project/:project_id/members', component: () => import('src/pages/Admin/Classroom/project/members.vue') },
  564. { 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') },
  565. { name: 'Admin.Classroom.Team.Create', path: ':classroom_id/team/create', component: () => import('src/pages/Admin/Classroom/Team/create.vue') },
  566. { name: 'Admin.Classroom.Team.Show', path: ':classroom_id/team/:team_id', component: () => import('src/pages/Admin/Classroom/Team/show.vue') },
  567. { name: 'Admin.Classroom.Ticket', path: 'ticket', component: () => import('src/pages/Admin/Classroom/Ticket.vue'), breadcrumbs: { title: 'درخواست ها دوره های آموزشی' } }
  568. ]
  569. },
  570. {
  571. name: 'Admin.Leader',
  572. path: 'leader',
  573. component: () => import('layouts/bareLayout.vue'),
  574. children: [
  575. { name: 'Admin.Leader.Teams.Index', path: 'teams', component: () => import('pages/Admin/Leader/MyTeams.vue') },
  576. { name: 'Admin.Leader.Teams.Show', path: 'teams/:team_id', component: () => import('pages/Admin/Leader/ShowTeam.vue') }
  577. ]
  578. },
  579. {
  580. name: 'Admin.Classroom.DiscussionCircles',
  581. path: 'discussion-circles-classrooms',
  582. component: () => import('layouts/bareLayout.vue'),
  583. breadcrumbs: { title: 'دوره های آموزشی', route: { name: 'Admin.Classroom.DiscussionCircles.Index' } },
  584. children: [
  585. { name: 'Admin.Classroom.DiscussionCircles.Index', path: '', component: () => import('src/pages/Admin/DiscussionCirclesClassroom/index.vue') },
  586. { name: 'Admin.Classroom.DiscussionCircles.Create', path: 'create', component: () => import('src/pages/Admin/DiscussionCirclesClassroom/create.vue'), breadcrumbs: { title: 'ساخت دوره آموزشی' } },
  587. { name: 'Admin.Classroom.DiscussionCircles.Show', path: ':id', component: () => import('src/pages/Admin/DiscussionCirclesClassroom/show.vue'), breadcrumbs: { title: 'مشاهده اطلاعات دوره آموزشی' } },
  588. { name: 'Admin.Classroom.DiscussionCircles.Ticket', path: 'ticket', component: () => import('src/pages/Admin/DiscussionCirclesClassroom/Ticket.vue'), breadcrumbs: { title: 'درخواست ها دوره های آموزشی' } }
  589. ]
  590. },
  591. {
  592. path: 'content',
  593. name: 'Admin.Content',
  594. component: () => import('layouts/bareLayout.vue'),
  595. children: [
  596. { path: '', name: 'Admin.Content.List', component: () => import('src/pages/Admin/Content/List.vue') },
  597. { path: 'create', name: 'Admin.Content.Create', component: () => import('src/pages/Admin/Content/Create.vue') },
  598. { path: ':id', name: 'Admin.Content.Show', component: () => import('src/pages/Admin/Content/Show.vue') },
  599. { name: 'Admin.Content.Ticket', path: 'ticket', component: () => import('src/pages/Admin/Content/Ticket.vue'), breadcrumbs: { title: 'درخواست ها دوره های آموزشی' } }
  600. ]
  601. },
  602. {
  603. path: 'post',
  604. name: 'Admin.Post',
  605. component: () => import('layouts/bareLayout.vue'),
  606. children: [
  607. { path: '', name: 'Admin.Post.List', component: () => import('src/pages/Admin/Post/List.vue') },
  608. { path: 'create', name: 'Admin.Post.Create', component: () => import('src/pages/Admin/Post/Create.vue') },
  609. { path: ':id', name: 'Admin.Post.Show', component: () => import('src/pages/Admin/Post/Show.vue') }
  610. ]
  611. },
  612. {
  613. path: 'media',
  614. name: 'Admin.Media',
  615. component: () => import('layouts/bareLayout.vue'),
  616. children: [
  617. // { path: '', name: 'Admin.Content.List', component: () => import('src/pages/Admin/Content/List.vue') },
  618. // { path: 'create', name: 'Admin.Content.Create', component: () => import('src/pages/Admin/Content/Create.vue') },
  619. { path: ':id', name: 'Admin.Media.Show', component: () => import('src/pages/Admin/Media/Show.vue') }
  620. // { name: 'Admin.Content.Ticket', path: 'ticket', component: () => import('src/pages/Admin/Classroom/Ticket.vue'), breadcrumbs: { title: 'درخواست ها دوره های آموزشی' } }
  621. ]
  622. },
  623. {
  624. path: 'content-category',
  625. name: 'Admin.ContentCategory',
  626. component: () => import('layouts/bareLayout.vue'),
  627. children: [
  628. { path: '', name: 'Admin.ContentCategory.List', component: () => import('src/pages/Admin/ContentCategory/List.vue') },
  629. { path: 'create', name: 'Admin.ContentCategory.Create', component: () => import('src/pages/Admin/ContentCategory/Create.vue') },
  630. { path: ':id', name: 'Admin.ContentCategory.Show', component: () => import('src/pages/Admin/ContentCategory/Show.vue') }
  631. ]
  632. },
  633. {
  634. path: 'post-category',
  635. name: 'Admin.PostCategory',
  636. component: () => import('layouts/bareLayout.vue'),
  637. children: [
  638. { path: '', name: 'Admin.PostCategory.List', component: () => import('src/pages/Admin/PostCategory/List.vue') },
  639. { path: 'create', name: 'Admin.PostCategory.Create', component: () => import('src/pages/Admin/PostCategory/Create.vue') },
  640. { path: ':id', name: 'Admin.PostCategory.Show', component: () => import('src/pages/Admin/PostCategory/Show.vue') }
  641. ]
  642. },
  643. {
  644. name: 'Admin.Session',
  645. path: 'session',
  646. component: () => import('layouts/bareLayout.vue'),
  647. breadcrumbs: { title: 'طلیعه حکمت' },
  648. children: [
  649. { name: 'Admin.Session.Index', path: '', component: () => import('src/pages/Admin/Session/index.vue') },
  650. { name: 'Admin.Session.Create', path: 'create', component: () => import('src/pages/Admin/Session/create.vue') },
  651. { name: 'Admin.Session.Show', path: ':id', component: () => import('src/pages/Admin/Session/show.vue') }
  652. ]
  653. },
  654. {
  655. path: 'invoice',
  656. name: 'Admin.Invoice',
  657. component: () => import('layouts/bareLayout.vue'),
  658. children: [
  659. {
  660. path: '',
  661. name: 'Admin.Invoice.List',
  662. component: () => import('src/pages/Admin/Invoice/List.vue')
  663. },
  664. {
  665. path: ':id',
  666. name: 'Admin.Invoice.Show',
  667. component: () => import('src/pages/Admin/Invoice/Show.vue')
  668. },
  669. {
  670. path: 'ticket',
  671. name: 'Admin.Invoice.Ticket',
  672. component: () => import('layouts/bareLayout.vue'),
  673. children: [
  674. {
  675. path: '',
  676. name: 'Admin.Invoice.Ticket.List',
  677. component: () => import('src/pages/Admin/Invoice/Ticket/List.vue')
  678. },
  679. {
  680. path: ':id',
  681. name: 'Admin.Invoice.Ticket.Show',
  682. component: () => import('src/pages/Admin/Invoice/Ticket/Show.vue')
  683. }
  684. ]
  685. }
  686. ]
  687. },
  688. {
  689. path: 'payment',
  690. name: 'Admin.Payment',
  691. component: () => import('layouts/bareLayout.vue'),
  692. children: [
  693. {
  694. path: '',
  695. name: 'Admin.Payment.List',
  696. component: () => import('src/pages/Admin/Payment/List.vue')
  697. },
  698. {
  699. path: ':id',
  700. name: 'Admin.Payment.Show',
  701. component: () => import('src/pages/Admin/Payment/Show.vue')
  702. }
  703. ]
  704. },
  705. {
  706. path: 'transaction',
  707. name: 'Admin.Transaction',
  708. component: () => import('layouts/bareLayout.vue'),
  709. children: [
  710. {
  711. path: '',
  712. name: 'Admin.Transaction.List',
  713. component: () => import('src/pages/Admin/Transaction/List.vue')
  714. },
  715. {
  716. path: ':id',
  717. name: 'Admin.Transaction.Show',
  718. component: () => import('src/pages/Admin/Transaction/Show.vue')
  719. }
  720. ]
  721. }
  722. ]
  723. },
  724. {
  725. path: 'document',
  726. name: 'Document',
  727. component: () => import('layouts/bareLayout.vue'),
  728. children: [
  729. {
  730. path: 'component',
  731. name: 'component',
  732. component: () => import('src/pages/Document/component.vue'),
  733. breadcrumbs: { title: 'component' },
  734. meta: {
  735. middlewares: [Authenticated]
  736. }
  737. },
  738. {
  739. path: 'theme',
  740. name: 'Document.Theme',
  741. component: () => import('layouts/bareLayout.vue'),
  742. breadcrumbs: { title: 'Theme' },
  743. children: [
  744. {
  745. path: 'controls',
  746. name: 'Document.Theme.Controls',
  747. component: () => import('src/pages/Document/Theme/Controls.vue'),
  748. breadcrumbs: { title: 'Controls' }
  749. }
  750. ]
  751. },
  752. {
  753. path: 'debug',
  754. name: 'Document.Debug',
  755. component: () => import('src/pages/Document/debug.vue')
  756. },
  757. {
  758. path: 'icon-sax',
  759. name: 'Document.IconSax',
  760. component: () => import('src/pages/Document/IconSax.vue')
  761. },
  762. {
  763. path: '/form-generator',
  764. name: 'formGenerator',
  765. component: () => import('src/pages/Document/formGenerator.vue')
  766. }
  767. ]
  768. }
  769. ]
  770. }
  771. // must status 404
  772. // Always leave this as last one,
  773. // but you can also remove it
  774. // {
  775. // path: '/404/:catchAll(.*)*',
  776. // name: 'NotFound',
  777. // component:
  778. // () => import('src/pages/Error404.vue')
  779. // }
  780. ]
  781. export default routes