AdminPanelSideBar.vue 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  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. :user="user" />
  16. </q-list>
  17. </div>
  18. </template>
  19. <script>
  20. import { mixinAuthData } from 'src/mixin/Mixins.js'
  21. import menuItem from 'src/components/Menu/SideMenu/MenuItem.vue'
  22. export default {
  23. name: 'AdminPanelSideBar',
  24. components: { menuItem },
  25. mixins: [mixinAuthData],
  26. data () {
  27. return {
  28. adminMenuItems: [
  29. {
  30. title: 'کاربران',
  31. roles: ['superuser'],
  32. routeName: 'Admin.User.Index',
  33. icon: 'groups',
  34. show: true,
  35. active: false
  36. },
  37. {
  38. title: 'دوره های آموزشی',
  39. roles: ['superuser', 'educational_department_head'],
  40. icon: 'import_contacts',
  41. routeName: null,
  42. show: true,
  43. open: false,
  44. active: false,
  45. children: [
  46. {
  47. title: 'درس ها و چارت آموزشی',
  48. roles: ['superuser', 'educational_department_head'],
  49. routeName: 'Admin.Category.Index',
  50. show: true,
  51. active: false
  52. },
  53. {
  54. title: 'دوره های آموزشی',
  55. roles: ['superuser', 'educational_department_head'],
  56. routeName: 'Admin.Classroom.Index',
  57. show: true,
  58. active: false
  59. }
  60. ]
  61. },
  62. {
  63. title: 'رویدادها',
  64. icon: 'import_contacts',
  65. routeName: null,
  66. show: true,
  67. open: false,
  68. active: false,
  69. children: [
  70. {
  71. title: 'لیست رویدادها',
  72. routeName: 'Admin.Event.Index',
  73. show: true,
  74. active: false
  75. },
  76. {
  77. title: 'پرسش نامه ها',
  78. routeName: 'Admin.Event.TestSet.Index',
  79. show: true,
  80. active: false
  81. }
  82. ]
  83. },
  84. {
  85. title: 'درخواست های آموزش',
  86. roles: ['superuser', 'educational_department_head'],
  87. routeName: 'Admin.Ticket.List.Educational',
  88. icon: 'local_activity',
  89. show: true,
  90. active: false
  91. },
  92. {
  93. title: 'محتوا',
  94. roles: ['superuser'],
  95. icon: 'live_tv',
  96. routeName: null,
  97. show: true,
  98. open: false,
  99. active: false,
  100. children: [
  101. {
  102. title: 'دسته بندی ها',
  103. roles: ['superuser'],
  104. routeName: 'Admin.ContentCategory.List',
  105. show: true,
  106. active: false
  107. },
  108. {
  109. title: 'لیست محتوا ها',
  110. roles: ['superuser'],
  111. routeName: 'Admin.Content.List',
  112. show: true,
  113. active: false
  114. },
  115. {
  116. title: 'دسته بندی موضوعی',
  117. roles: ['superuser'],
  118. routeName: 'Admin.ContentTopicCategory.List',
  119. show: true,
  120. active: false
  121. },
  122. {
  123. title: 'درخواست ها',
  124. roles: ['superuser'],
  125. routeName: 'Admin.Content.Ticket',
  126. show: true,
  127. active: false
  128. }
  129. ]
  130. },
  131. {
  132. title: 'بلاگ',
  133. roles: ['superuser'],
  134. icon: 'rss_feed',
  135. routeName: null,
  136. show: true,
  137. open: false,
  138. active: false,
  139. children: [
  140. {
  141. title: 'دسته بندی ها',
  142. roles: ['superuser'],
  143. routeName: 'Admin.PostCategory.List',
  144. show: true,
  145. active: false
  146. },
  147. {
  148. title: 'لیست پست ها',
  149. roles: ['superuser'],
  150. routeName: 'Admin.Post.List',
  151. show: true,
  152. active: false
  153. }
  154. ]
  155. },
  156. {
  157. title: 'احادیث',
  158. roles: ['superuser'],
  159. routeName: 'Admin.Hadith.List',
  160. icon: 'person_add',
  161. show: true,
  162. active: false
  163. },
  164. {
  165. title: 'مدیریت مالی',
  166. roles: ['superuser', 'financial_department_head'],
  167. icon: 'payments',
  168. routeName: null,
  169. show: true,
  170. open: false,
  171. active: false,
  172. children: [
  173. {
  174. title: 'صورتحساب ها',
  175. roles: ['superuser', 'financial_department_head'],
  176. routeName: 'Admin.Invoice.List',
  177. show: true,
  178. active: false
  179. },
  180. {
  181. title: 'پرداخت ها',
  182. roles: ['superuser', 'financial_department_head'],
  183. routeName: 'Admin.Payment.List',
  184. show: true,
  185. active: false
  186. },
  187. {
  188. title: 'درخواست ها',
  189. roles: ['superuser', 'financial_department_head'],
  190. routeName: 'Admin.Invoice.Ticket.List',
  191. show: true,
  192. active: false
  193. },
  194. {
  195. title: 'دسته های کمک های مالی',
  196. roles: ['superuser', 'financial_department_head'],
  197. routeName: 'Admin.DonationCategory.List',
  198. show: true,
  199. active: false
  200. },
  201. {
  202. title: 'لیست کمک های مالی',
  203. roles: ['superuser', 'financial_department_head'],
  204. routeName: 'Admin.Donation.List',
  205. show: true,
  206. active: false
  207. }
  208. ]
  209. },
  210. {
  211. title: 'فروشگاه',
  212. roles: ['superuser'],
  213. icon: 'storefront',
  214. routeName: null,
  215. show: true,
  216. open: false,
  217. active: false,
  218. children: [
  219. {
  220. title: 'دسته بندی ها',
  221. roles: ['superuser'],
  222. routeName: 'Admin.Store.Category.List',
  223. show: true,
  224. active: false
  225. },
  226. {
  227. title: 'محصولات',
  228. roles: ['superuser'],
  229. routeName: 'Admin.Store.Package.List',
  230. show: true,
  231. active: false
  232. },
  233. {
  234. title: 'سفارشات',
  235. roles: ['superuser'],
  236. routeName: 'Admin.Store.Basket.List',
  237. show: true,
  238. active: false
  239. },
  240. {
  241. title: 'کد تخفیف',
  242. roles: ['superuser'],
  243. routeName: 'Admin.Store.Discount.List',
  244. show: true,
  245. active: false
  246. }
  247. // {
  248. // title: 'تنظیمات',
  249. // roles: ['superuser'],
  250. // routeName: 'Admin.Store.Package.List',
  251. // show: true,
  252. // active: false
  253. // }
  254. ]
  255. },
  256. {
  257. title: 'اعلان‌ها',
  258. roles: ['superuser'],
  259. routeName: 'Admin.Notice.List',
  260. icon: 'notifications',
  261. show: true,
  262. active: false
  263. },
  264. {
  265. title: 'تمام درخواست ها',
  266. roles: ['superuser'],
  267. routeName: 'Admin.Ticket.List',
  268. icon: 'confirmation_number',
  269. show: true,
  270. active: false
  271. }
  272. ]
  273. }
  274. }
  275. }
  276. </script>
  277. <style lang="scss" scoped>
  278. .AdminPanelSideBar {
  279. .logo {
  280. padding: 10px 60px;
  281. .q-btn {
  282. width: 100%;
  283. }
  284. }
  285. .side-menu-list {
  286. }
  287. }
  288. </style>