import Layout from '@/layout'

export default {
  path: '/voucher-management',
  redirect: '/voucher-management/voucher',
  component: Layout,
  meta: {
    title: 'Voucher Management',
    icon: 'financial'
  },
  children: [
    {
      path: '/voucher-management/voucher',
      component: () => import('@/views/voucher/index'),
      name: 'voucher-management',
      meta: {
        title: 'Vouchers',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
      },
    },
    {
      path: '/voucher-management/issuance',
      component: () => import('@/views/voucher/issuance'),
      name: 'voucher-issuance',
      meta: {
        title: 'Voucher Issuance',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
      },
    },
    {
      path: '/voucher-management/usage',
      component: () => import('@/views/voucher/usage'),
      name: 'voucher-usage',
      meta: {
        title: 'Voucher Usage',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
      },
    },
    {
      path: '/voucher-management/voucher/add',
      component: () => import('@/views/voucher/detail'),
      name: 'voucher-add',
      meta: {
        title: 'Create Vouchers',
        activeMenu: '/voucher-management/voucher'
      }
    },
    {
      path: '/voucher-management/voucher/update/:id',
      component: () => import('@/views/voucher/detail'),
      name: 'voucher-update',
      meta: {
        title: 'Update Vouchers',
        activeMenu: '/voucher-management/voucher'
      }
    }
  ]
}