AdminPanelSideBar.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <template>
  2. <div class="AdminPanelSideBar">
  3. <div class="logo lt-md">
  4. <q-btn flat
  5. round
  6. dense
  7. class="btn-logo"
  8. :to="{name: 'Public.Home'}">
  9. <q-img src="/assets/images/web/homepage-first-section-logo.png" />
  10. </q-btn>
  11. </div>
  12. <q-list class="side-menu-list"
  13. padding>
  14. <menu-item :menu="adminMenuItems" />
  15. </q-list>
  16. </div>
  17. </template>
  18. <script>
  19. import menuItem from 'src/components/Menu/SideMenu/MenuItem.vue'
  20. export default {
  21. name: 'AdminPanelSideBar',
  22. components: { menuItem },
  23. data () {
  24. return {
  25. adminMenuItems: [
  26. {
  27. title: 'کاربران',
  28. routeName: 'Admin.User.Index',
  29. icon: 'groups',
  30. show: true,
  31. active: false
  32. },
  33. {
  34. title: 'دوره های آموزشی',
  35. icon: 'import_contacts',
  36. routeName: null,
  37. show: true,
  38. open: true,
  39. active: false,
  40. children: [
  41. {
  42. title: 'درس ها و چارت آموزشی',
  43. routeName: 'Admin.Category.Index',
  44. show: true,
  45. active: false
  46. },
  47. {
  48. title: 'دوره های آموزشی',
  49. routeName: 'Admin.Classroom.Index',
  50. show: true,
  51. active: false
  52. }
  53. ]
  54. },
  55. {
  56. title: 'حلقه های مباحثاتی',
  57. icon: 'diversity_2',
  58. routeName: null,
  59. show: true,
  60. open: true,
  61. active: false,
  62. children: [
  63. {
  64. title: 'درس ها و چارت آموزشی',
  65. routeName: 'Admin.Category.DiscussionCircles.Index',
  66. show: true,
  67. active: false
  68. },
  69. {
  70. title: 'حلقه های مباحثاتی',
  71. routeName: 'Admin.Classroom.DiscussionCircles.Index',
  72. show: true,
  73. active: false
  74. }
  75. ]
  76. },
  77. {
  78. title: 'درخواست های آموزش',
  79. routeName: 'Admin.Ticket.List.Educational',
  80. icon: 'local_activity',
  81. show: true,
  82. active: false
  83. },
  84. {
  85. title: 'محتوا',
  86. icon: 'live_tv',
  87. routeName: null,
  88. show: true,
  89. open: true,
  90. active: false,
  91. children: [
  92. {
  93. title: 'دسته بندی ها',
  94. routeName: 'Admin.ContentCategory.List',
  95. show: true,
  96. active: false
  97. },
  98. {
  99. title: 'لیست محتوا ها',
  100. routeName: 'Admin.Content.List',
  101. show: true,
  102. active: false
  103. },
  104. {
  105. title: 'درخواست ها',
  106. routeName: 'Admin.Content.Ticket',
  107. show: true,
  108. active: false
  109. }
  110. ]
  111. },
  112. {
  113. title: 'بلاگ',
  114. icon: 'rss_feed',
  115. routeName: null,
  116. show: true,
  117. open: true,
  118. active: false,
  119. children: [
  120. {
  121. title: 'دسته بندی ها',
  122. routeName: 'Admin.PostCategory.List',
  123. show: true,
  124. active: false
  125. },
  126. {
  127. title: 'لیست پست ها',
  128. routeName: 'Admin.Post.List',
  129. show: true,
  130. active: false
  131. }
  132. ]
  133. },
  134. {
  135. title: 'مدیریت مالی',
  136. icon: 'payments',
  137. routeName: null,
  138. show: true,
  139. open: true,
  140. active: false,
  141. children: [
  142. {
  143. title: 'صورتحساب ها',
  144. routeName: 'Admin.Invoice.List',
  145. show: true,
  146. active: false
  147. },
  148. {
  149. title: 'پرداخت ها',
  150. routeName: 'Admin.Payment.List',
  151. show: true,
  152. active: false
  153. },
  154. {
  155. title: 'درخواست ها',
  156. routeName: 'Admin.Invoice.Ticket.List',
  157. show: true,
  158. active: false
  159. }
  160. ]
  161. },
  162. {
  163. title: 'تمام درخواست ها',
  164. routeName: 'Admin.Ticket.List',
  165. icon: 'confirmation_number',
  166. show: true,
  167. active: false
  168. }
  169. ]
  170. }
  171. }
  172. }
  173. </script>
  174. <style lang="scss" scoped>
  175. .AdminPanelSideBar {
  176. .logo {
  177. padding: 10px 60px;
  178. .q-btn {
  179. width: 100%;
  180. }
  181. }
  182. .side-menu-list {
  183. }
  184. }
  185. </style>