import Layout from '@/layout'

export default {
  path: '/credit-limit',
  component: Layout,
  meta: {
    title: 'Monthly Credit Limit',
    icon: 'credit-limit',
    activeIcon: 'credit-limit-active',
    affix: true 
  },
  children: [
    {
      path: '/credit-limit',
      component: () => import('@/views/limit/CreditLimit'),
      name: 'credit-limit',
      meta: {
        title: 'Monthly Credit Limit',
        breadcrumb: false
      }
    },
    {
      path: '/credit-limit/CL:id',
      component: () => import('@/views/limit/Detail'),
      name: 'credit-limit-view',
      meta: {
        title: 'View Credit Limit',
        activeMenu: '/credit-limit'
      },
      hidden: true
    },
    {
      path: '/credit-limit/add',
      component: () => import('@/views/limit/Add'),
      name: 'credit-limit-add',
      meta: {
        title: 'Add Credit Limit',
        activeMenu: '/credit-limit'
      },
      hidden: true
    },
    {
      path: '/credit-limit/edit/:id',
      component: () => import('@/views/limit/Add'),
      name: 'credit-limit-edit',
      meta: {
        title: 'Edit Credit Limit',
        activeMenu: '/credit-limit'
      },
      hidden: true
    },
    {
      path: '/credit-limit/edit',
      component: () => import('@/views/limit/Edit'),
      name: 'credit-limit-edit',
      meta: {
        title: 'Edit Credit Limit',
        activeMenu: '/credit-limit'
      },
      hidden: true
    }
  ]
}