import Layout from '@/layout'

export default {
  path: '/marketing-management',
  redirect: '/marketing-management/article',
  component: Layout,
  alwaysShow: true,
  meta: {
    title: 'Marketing Management',
    icon: 'marketing-mgmt',
    activeIcon: 'marketing-mgmt',
    affix: true
  },
  children: [
    {
      path: '/marketing-management/article',
      component: () => import('@/views/article/index'),
      name: 'article-management',
      meta: {
        title: 'Articles',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active'
      }
    },
    {
      path: '/marketing-management/article-types',
      component: () => import('@/views/article/typeList'),
      name: 'article-types',
      meta: {
        title: 'Article Types',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active'
      },
      hidden: true
    },
    {
      path: '/marketing-management/article/create',
      component: () => import('@/views/article/detail'),
      name: 'article-management-add',
      meta: {
        title: 'Create',
        activeMenu: '/marketing-management/article'
      },
      hidden: true
    },
    {
      path: '/marketing-management/article/update/:id',
      component: () => import('@/views/article/detail'),
      name: 'article-management-update',
      meta: {
        title: 'Update',
        activeMenu: '/marketing-management/article'
      },
      hidden: true
    },
    {
      path: '/marketing-management/campaign',
      component: () => import('@/views/campaign/index'),
      name: 'campaign-management',
      meta: {
        title: 'Campaigns',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active'
        //activeMenu: '/campaign-management'
      }
    },
    {
      path: '/marketing-management/campaign/create',
      component: () => import('@/views/campaign/detail'),
      name: 'campaign-management-add',
      meta: {
        title: 'Create',
        activeMenu: '/marketing-management/campaign',
        parent: {
          title: 'Campaigns',
          path: "/marketing-management/campaign"
        }
      },
      hidden: true
    },
    {
      path: '/marketing-management/campaign/update/:id',
      component: () => import('@/views/campaign/detail'),
      name: 'campaign-management-update',
      meta: {
        title: 'Update',
        activeMenu: '/marketing-management/campaign',
        parent: {
          title: 'Campaigns',
          path: "/marketing-management/campaign"
        }
      },
      hidden: true
    },
  ]
}