import Layout from '@/layout'

export default {
  path: '/support-management',
  redirect: '/support-management/feedbacks',
  component: Layout,
  meta: {
    title: 'Support Management',
    icon: 'feedback-management',
    affix: false
  },
  alwaysShow: true,
  children: [
    {
      path: '/support-management/feedbacks',
      component: () => import('@/views/feedback/FeedbackManagement'),
      name: 'feedbacks',
      meta: {
        title: 'Feedbacks',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
        affix: false,
      }
    },
    {
      path: '/support-management/tickets',
      component: () => import('@/views/feedback/FeedbackManagement'),
      name: 'support-tickets',
      meta: {
        title: 'Ticket Management',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
        affix: true,
      }
    },
    {
      path: '/support-management/maintenance',
      component: () => import('@/views/feedback/FeedbackManagement'),
      name: 'support-maintenance',
      meta: {
        title: 'Maintenance Management',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
        affix: true,
      }
    },
    {
      path: '/support-management/feedback/:id',
      component: () => import('@/views/feedback/Detail'),
      name: 'feedback-view',
      hidden: true,
      meta: {
        title: 'View Feedback',
        activeMenu: '/support-management/feedbacks'
      }
    }
  ]
}