123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. export default {
  2. // Admin
  3. 1: [
  4. {
  5. label: 'Home',
  6. items: [
  7. {
  8. label: 'Dashboard',
  9. icon: 'pi pi-chart-bar',
  10. to: '/dashboards',
  11. component: 'Dashboards/Index',
  12. },
  13. ],
  14. },
  15. {
  16. label: 'Laporan',
  17. items: [],
  18. },
  19. {
  20. label: 'Master',
  21. items: [
  22. {
  23. label: 'User',
  24. icon: 'pi pi-user',
  25. to: '/users',
  26. component: 'Users/Index',
  27. },
  28. ],
  29. },
  30. ],
  31. // Supervisor
  32. 2: [
  33. {
  34. label: 'Home',
  35. items: [
  36. {
  37. label: 'Dashboard',
  38. icon: 'pi pi-chart-bar',
  39. to: '/dashboards',
  40. component: 'Dashboards/Index',
  41. },
  42. ],
  43. },
  44. {
  45. label: 'Master',
  46. items: [
  47. {
  48. label: 'Pelanggan',
  49. icon: 'pi pi-users',
  50. to: '/customers',
  51. component: 'Customers/Index',
  52. },
  53. {
  54. label: 'Pembelian',
  55. icon: 'pi pi-shopping-cart',
  56. to: '/purchases',
  57. component: 'Purchases/Index',
  58. },
  59. {
  60. label: 'Penjualan',
  61. icon: 'pi pi-tag',
  62. to: '/sales',
  63. component: 'Sales/Index',
  64. },
  65. {
  66. label: 'Produk',
  67. icon: 'pi pi-th-large',
  68. to: '/products',
  69. component: 'Products/Index',
  70. },
  71. ],
  72. },
  73. ],
  74. // Operator
  75. 3: [
  76. {
  77. label: 'Home',
  78. items: [
  79. {
  80. label: 'Dashboard',
  81. icon: 'pi pi-chart-bar',
  82. to: '/dashboards',
  83. component: 'Dashboards/Index',
  84. },
  85. ],
  86. },
  87. {
  88. label: 'Master',
  89. items: [
  90. {
  91. label: 'Supplier',
  92. icon: 'pi pi-shopping-cart',
  93. to: '/suppliers',
  94. component: 'Suppliers/Index',
  95. },
  96. {
  97. label: 'Stok Barang',
  98. icon: 'pi pi-box',
  99. to: '/stock-products',
  100. component: 'StockProducts/Index',
  101. },
  102. ],
  103. },
  104. ],
  105. }