| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378 |
- import { Authenticated, canSeeUserProfilePanel, HasOverdueInstalment } from 'src/router/middleware/middleware'
- export default {
- path: 'panel',
- name: 'UserPanel',
- layoutConfig: {
- layoutView: 'hHh LpR lfr',
- layoutHeaderType: 'user-panel',
- layoutHeaderBordered: true,
- layoutLeftDrawer: true,
- layoutLeftDrawerVisible: true,
- layoutLeftSideBarType: 'user-panel',
- layoutLeftDrawerBordered: true,
- layoutLeftDrawerWidth: 240,
- layoutFooterType: 'panel',
- layoutFooter: true
- },
- meta: { middlewares: [Authenticated, canSeeUserProfilePanel] },
- component: () => import('src/layouts/UserPanelLayout.vue'),
- children: [
- {
- name: 'UserPanel.ShopCompleteInfo',
- path: 'shop/completeInfo',
- layoutConfig: {
- layoutView: 'hHh LpR fff',
- layoutHeaderType: 'main',
- layoutHeaderBordered: true,
- layoutLeftDrawer: false,
- layoutLeftDrawerVisible: false,
- layoutFooter: true
- },
- component: () => import('src/pages/User/Shop/completeInfo.vue')
- },
- {
- name: 'UserPanel.ShopPaymentFromWallet',
- path: 'shop/payment-from-wallet',
- layoutConfig: {
- layoutView: 'hHh LpR fff',
- layoutHeaderType: 'main',
- layoutHeaderBordered: true,
- layoutLeftDrawer: false,
- layoutLeftDrawerVisible: false,
- layoutFooter: true
- },
- meta: { middlewares: [Authenticated] },
- component: () => import('src/pages/User/Shop/paymentFromWallet.vue')
- },
- {
- name: 'UserPanel.PaymentResult',
- path: 'shop/payment-result',
- meta: { middlewares: [Authenticated] },
- component: () => import('src/pages/User/Shop/paymentResult.vue')
- },
- {
- path: 'profile',
- name: 'UserPanel.Profile',
- component: () => import('src/layouts/bareLayout.vue'),
- meta: { middlewares: [Authenticated] },
- children: [
- {
- name: 'UserPanel.Profile.OverdueInstalments',
- path: 'overdue-instalments',
- component: () => import('src/pages/User/Profile/OverdueInstalment.vue')
- },
- {
- name: 'UserPanel.Profile.AllDiscussionCirclesClassrooms',
- path: 'all-discussion-circles-classrooms',
- component: () => import('src/pages/User/Profile/DiscussionCirclesClassrooms.vue'),
- meta: {
- breadcrumbs: {
- visible: true,
- loading: false,
- path: [
- {
- label: 'حلقه های مباحثاتی من',
- to: { name: 'UserPanel.Profile.AllDiscussionCirclesClassrooms' }
- }
- ]
- },
- middlewares: [HasOverdueInstalment]
- }
- },
- {
- name: 'UserPanel.Profile.AllClassrooms',
- path: 'all-classrooms',
- component: () => import('src/pages/User/Profile/classrooms.vue'),
- meta: {
- breadcrumbs: {
- visible: true,
- loading: false,
- path: [
- {
- label: 'دوره های من',
- to: { name: 'UserPanel.Profile.AllClassrooms' }
- }
- ]
- },
- middlewares: [HasOverdueInstalment]
- }
- },
- {
- name: 'UserPanel.Profile.ClassroomInfo',
- path: 'classroom/:id',
- component: () => import('src/pages/User/Profile/classroomInfo.vue'),
- meta: {
- middlewares: [HasOverdueInstalment]
- }
- },
- {
- name: 'UserPanel.Profile.Test',
- path: 'test/:id',
- component: () => import('src/pages/User/Profile/test.vue'),
- meta: {
- middlewares: [HasOverdueInstalment]
- }
- },
- {
- name: 'UserPanel.Profile.AllEvents',
- path: 'all-events',
- component: () => import('src/pages/User/Profile/Events.vue'),
- meta: {
- breadcrumbs: {
- visible: true,
- loading: false,
- path: [
- {
- label: 'رویدادهای من',
- to: { name: 'UserPanel.Profile.AllEvents' }
- }
- ]
- },
- middlewares: [HasOverdueInstalment]
- }
- },
- {
- name: 'UserPanel.Profile.EventInfo',
- path: 'event/:id',
- component: () => import('src/pages/User/Profile/EventInfo.vue'),
- meta: {
- middlewares: [HasOverdueInstalment]
- }
- },
- { name: 'UserPanel.Profile.Classroom.Project.Show', path: 'classroom/:classroom_id/project/:project_id', component: () => import('src/pages/User/Profile/projectInfo.vue') },
- {
- name: 'UserPanel.Profile.SessionInfo',
- path: 'session/:id',
- component: () => import('src/pages/User/Profile/sessionInfo.vue'),
- meta: {
- middlewares: [HasOverdueInstalment]
- }
- },
- {
- name: 'UserPanel.Profile.UserInfo',
- path: 'user-info',
- component: () => import('src/pages/User/Profile/profile.vue')
- },
- {
- name: 'UserPanel.Leader',
- path: 'leader',
- component: () => import('layouts/bareLayout.vue'),
- children: [
- { name: 'UserPanel.Leader.Teams.Index', path: 'teams', component: () => import('pages/Admin/Leader/MyTeams.vue') },
- { name: 'UserPanel.Leader.Teams.Show', path: 'teams/:team_id', component: () => import('pages/Admin/Leader/ShowTeam.vue') }
- ]
- },
- {
- name: 'UserPanel.Test',
- path: 'test/:test_id',
- component: () => import('layouts/bareLayout.vue'),
- children: [
- { name: 'UserPanel.Test.AnswerBook.Confirmation', path: 'answer_book/:answer_book_id/confirmation', component: () => import('src/pages/User/Test/Confirmation.vue') },
- { name: 'UserPanel.Test.AnswerBook.Participate.AllQuestions', path: 'answer_book/:answer_book_id/participate/all_questions', component: () => import('src/pages/User/Test/ParticipateAllQuestions.vue') },
- { name: 'UserPanel.Test.AnswerBook.Participate.SingleQuestion', path: 'answer_book/:answer_book_id/participate/question/:question_number', component: () => import('src/pages/User/Test/ParticipateSingleQuestion.vue') },
- { name: 'UserPanel.Test.AnswerBook.Show', path: 'answer_book/:answer_book_id/show', component: () => import('src/pages/User/Test/Show.vue') },
- { name: 'UserPanel.Test.AnswerBook.SendObjection', path: 'answer_book/:answer_book_id/sendObjection', component: () => import('src/pages/User/Test/SendObjection.vue') }
- ]
- },
- {
- name: 'UserPanel.Classroom.MyAsGraderClassroom',
- path: 'my_as_a_grader_classrooms',
- component: () => import('src/layouts/bareLayout.vue'),
- children: [
- { name: 'UserPanel.Classroom.MyAsGraderClassroom.Index', path: '', component: () => import('src/pages/Admin/Classroom/MyAsGraderClassrooms.vue') },
- { name: 'UserPanel.Classroom.MyAsGraderClassroom.AnswerBooks', path: ':classroom_id/answer_books', component: () => import('src/pages/Admin/Classroom/ClassroomAnswerBooksForGrader.vue') },
- { name: 'UserPanel.Classroom.MyAsGraderClassroom.AnswerBooks.ShowGrade', path: ':classroom_id/answer_books/:answer_book_id/show_grades', component: () => import('src/pages/Admin/Classroom/ClassroomAnswerBookShowGradeForGrader.vue') },
- { name: 'UserPanel.Classroom.MyAsGraderClassroom.AnswerBooks.SubmitGrade', path: ':classroom_id/answer_books/:answer_book_id/submit_grade', component: () => import('src/pages/Admin/Classroom/ClassroomAnswerBookSubmitGrade.vue') }
- ]
- }
- ]
- },
- {
- path: 'invoice',
- name: 'UserPanel.Invoice',
- component: () => import('layouts/bareLayout.vue'),
- children: [
- {
- path: '',
- name: 'UserPanel.Invoice.List',
- meta: {
- breadcrumbs: {
- visible: true,
- loading: false,
- path: [
- {
- label: 'بخش مالی'
- },
- {
- label: 'صورتحساب ها',
- to: { name: 'UserPanel.Invoice.List' }
- }
- ]
- }
- },
- component: () => import('src/pages/User/Invoice/List.vue')
- },
- {
- path: 'thankyou',
- name: 'UserPanel.Invoice.Thankyou',
- component: () => import('src/pages/User/Invoice/Thankyou.vue')
- },
- {
- path: ':id',
- name: 'UserPanel.Invoice.Show',
- meta: {
- breadcrumbs: {
- visible: true,
- loading: false,
- path: [
- {
- label: 'بخش مالی'
- },
- {
- label: 'صورتحساب ها',
- to: { name: 'UserPanel.Invoice.List' }
- },
- {
- label: 'جزییات صورتحساب'
- }
- ]
- }
- },
- component: () => import('src/pages/User/Invoice/Show.vue')
- },
- {
- path: 'ticket',
- name: 'UserPanel.Invoice.Ticket',
- component: () => import('layouts/bareLayout.vue'),
- children: [
- {
- path: '',
- name: 'UserPanel.Invoice.Ticket.List',
- component: () => import('src/pages/User/Invoice/Ticket/List.vue')
- },
- {
- path: ':id',
- name: 'UserPanel.Invoice.Ticket.Show',
- component: () => import('src/pages/User/Invoice/Ticket/Show.vue')
- },
- {
- path: 'create',
- name: 'UserPanel.Invoice.Ticket.Create',
- component: () => import('src/pages/User/Invoice/Ticket/Create.vue')
- }
- ]
- }
- ]
- },
- {
- path: 'ticket',
- name: 'UserPanel.Ticket',
- component: () => import('layouts/bareLayout.vue'),
- children: [
- {
- path: '',
- name: 'UserPanel.Ticket.List',
- component: () => import('src/pages/User/Ticket/List.vue')
- },
- {
- path: ':id',
- name: 'UserPanel.Ticket.Show',
- meta: {
- breadcrumbs: {
- visible: true,
- loading: false,
- path: [
- {
- label: 'درخواست ها',
- to: { name: 'UserPanel.Ticket.List' }
- },
- {
- label: 'جزییات درخواست'
- }
- ]
- }
- },
- component: () => import('src/pages/User/Ticket/Show.vue')
- },
- {
- path: 'create',
- name: 'UserPanel.Ticket.Create',
- meta: { middlewares: [Authenticated] },
- component: () => import('src/pages/User/Ticket/Create.vue')
- }
- ]
- },
- {
- path: 'notice',
- name: 'UserPanel.Notice.List',
- component: () => import('src/pages/User/Notice/List.vue')
- },
- {
- path: 'wallet',
- name: 'UserPanel.Wallet',
- component: () => import('src/pages/User/Wallet/Show.vue'),
- meta: {
- breadcrumbs: {
- visible: true,
- loading: false,
- path: [
- {
- label: 'بخش مالی'
- },
- {
- label: 'کیف پول الکترونیک',
- to: { name: 'UserPanel.Wallet' }
- }
- ]
- }
- }
- },
- {
- path: 'my-orders',
- name: 'UserPanel.MyOrders',
- component: () => import('layouts/bareLayout.vue'),
- children: [
- { path: '', name: 'UserPanel.MyOrders.List', component: () => import('src/pages/User/MyOrders/List.vue') },
- { path: ':id', name: 'UserPanel.MyOrders.Show', component: () => import('src/pages/User/MyOrders/Show.vue') }
- ]
- },
- {
- path: 'payment',
- name: 'UserPanel.Payment',
- component: () => import('src/layouts/bareLayout.vue'),
- children: [
- {
- path: '',
- name: 'UserPanel.Payment.List',
- component: () => import('src/pages/User/Payment/List.vue')
- },
- {
- path: 'transactions',
- name: 'UserPanel.Payment.TransactionList',
- component: () => import('src/pages/User/Payment/TransactionList.vue')
- },
- {
- name: 'UserPanel.Payment.Show',
- path: ':id',
- component: () => import('src/pages/User/Payment/Show.vue'),
- meta: {
- breadcrumbs: {
- visible: true,
- loading: false,
- path: [
- {
- label: 'کیف پول الکترونیک',
- to: { name: 'UserPanel.Wallet' }
- },
- {
- label: 'جزییات پرداخت'
- }
- ]
- }
- }
- }
- ]
- }
- ]
- }
|