import Layout from '@/layout'

export default {
  path: '/points-management',
  component: Layout,
  redirect: 'noRedirect',
  meta: {
    title: 'Points Management',
    icon: 'financial'
  },
  alwaysShow: true,
  children: [
    {
      path: '/points-management/setting',
      component: () => import('@/views/points/index'),
      name: 'dynamic-points',
      meta: {
        title: 'Dynamic Site-Points Setting',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active'
      }
    },
    {
      path: '/points-management/create',
      component: () => import('@/views/points/detail'),
      name: 'dynamic-points',
      meta: {
        title: 'Create',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
        activeMenu: '/points-management/setting',
        parent: {
          title: 'Dynamic Site-Points Setting',
          path: "/points-management/setting"
        }
      }
    },
    {
      path: '/points-management/update/:id',
      component: () => import('@/views/points/detail'),
      name: 'dynamic-points',
      meta: {
        title: 'Update',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
        activeMenu: '/points-management/setting',
        parent: {
          title: 'Dynamic Site-Points Setting',
          path: "/points-management/setting"
        }
      }
    }
  ],
}