AdminPanelSideBar.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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. show: true,
  30. active: false
  31. },
  32. {
  33. title: 'مدیریت آموزش',
  34. icon: 'isax:book',
  35. routeName: null,
  36. show: true,
  37. open: true,
  38. active: false,
  39. children: [
  40. {
  41. title: 'درس ها و چارت آموزشی',
  42. routeName: 'Admin.Category.Index',
  43. show: true,
  44. active: false
  45. },
  46. {
  47. title: 'کلاس های آموزشی',
  48. routeName: 'Admin.Classroom.Index',
  49. show: true,
  50. active: false
  51. },
  52. {
  53. title: 'درخواست ها',
  54. routeName: 'Admin.Classroom.Ticket',
  55. show: true,
  56. active: false
  57. }
  58. ]
  59. },
  60. {
  61. title: 'حلقه های مباحثاتی',
  62. icon: 'isax:book',
  63. routeName: null,
  64. show: true,
  65. open: true,
  66. active: false,
  67. children: [
  68. {
  69. title: 'دسته بندی ها',
  70. routeName: 'Admin.Category.DiscussionCircles.Index',
  71. show: true,
  72. active: false
  73. },
  74. {
  75. title: 'حلقه های مباحثاتی',
  76. routeName: 'Admin.Classroom.DiscussionCircles.Index',
  77. show: true,
  78. active: false
  79. },
  80. {
  81. title: 'درخواست ها',
  82. routeName: 'Admin.Classroom.DiscussionCircles.Ticket',
  83. show: true,
  84. active: false
  85. }
  86. ]
  87. },
  88. {
  89. title: 'محتوا',
  90. icon: 'isax:video',
  91. routeName: null,
  92. show: true,
  93. open: true,
  94. active: false,
  95. children: [
  96. {
  97. title: 'دسته بندی ها',
  98. routeName: 'Admin.ContentCategory.List',
  99. show: true,
  100. active: false
  101. },
  102. {
  103. title: 'لیست محتوا ها',
  104. routeName: 'Admin.Content.List',
  105. show: true,
  106. active: false
  107. },
  108. {
  109. title: 'درخواست ها',
  110. routeName: 'Admin.Content.Ticket',
  111. show: true,
  112. active: false
  113. }
  114. ]
  115. },
  116. {
  117. title: 'مدیریت مالی',
  118. icon: 'isax:card',
  119. routeName: null,
  120. show: true,
  121. open: true,
  122. active: false,
  123. children: [
  124. {
  125. title: 'صورتحساب ها',
  126. routeName: 'Admin.Invoice.List',
  127. show: true,
  128. active: false
  129. },
  130. {
  131. title: 'درخواست ها',
  132. routeName: 'Admin.Invoice.Ticket.List',
  133. show: true,
  134. active: false
  135. }
  136. ]
  137. }
  138. ]
  139. }
  140. }
  141. }
  142. </script>
  143. <style lang="scss" scoped>
  144. .AdminPanelSideBar {
  145. .logo {
  146. padding: 10px 60px;
  147. .q-btn {
  148. width: 100%;
  149. }
  150. }
  151. .side-menu-list {
  152. }
  153. }
  154. </style>