import Layout from '@/layout'

export default {
  path: '/partnership-management',
  component: Layout,
  redirect: '/partnership-management/service-provider-management',
  alwaysShow: true,
  meta: {
    title: 'Partnership Management',
    icon: 'partnership',
  },
  children: [
    {
      path: '/partnership-management/service-provider-management',
      component: () => import('@/views/provider/ServiceProviderManagement'),
      name: 'service-provider-management',
      meta: {
        title: 'Service Provider',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active'
      }
    },
    {
      path: '/partnership-management/group-management',
      component: () => import('@/views/company/index'),
      name: 'group-management',
      meta: {
        title: 'Group Management',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active'
      }
    },
    {
      path: '/partnership-management/monthly-credit-management',
      component: () => import('@/views/limit/CreditLimit'),
      name: 'monthly-credit-management',
      meta: {
        title: 'Monthly Credit Limit',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active'
      }
    },
    {
      path: '/partnership-management/service-provider-management/add',
      component: () => import('@/views/provider/detail'),
      name: 'add-service-provider',
      meta: {
        title: 'Add New Provider',
        activeMenu: '/partnership-management/service-provider-management'
      },
      hidden: true
    },
    {
      path: '/partnership-management/service-provider-management/edit/:id',
      component: () => import('@/views/provider/detail/'),
      name: 'edit-service-provider',
      meta: {
        title: 'Edit Provider',
        activeMenu: '/partnership-management/service-provider-management'
      },
      hidden: true
    },
    {
      path: '/partnership-management/group-management/add',
      component: () => import('@/views/company/detail'),
      name: 'group-management-add',
      meta: {
        title: 'Add Group',
        activeMenu: '/partnership-management/group-management',
        parent: {
          title: 'Group Management',
          path: "/partnership-management/group-management"
        }
      }
    },
    {
      path: '/partnership-management/group-management/edit/:id',
      component: () => import('@/views/company/detail'),
      name: 'group-management-edit',
      meta: {
        title: 'Edit Group',
        activeMenu: '/partnership-management/group-management',
        parent: {
          title: 'Group Management',
          path: "/partnership-management/group-management"
        }
      },
      hidden: true
    },
    {
      path: '/partnership-management/monthly-credit-management/limit/:id',
      component: () => import('@/views/limit/Detail'),
      name: 'credit-limit-view',
      meta: {
        title: 'View Credit Limit',
        activeMenu: '/partnership-management/monthly-credit-management',
        parent: {
          title: 'Monthly Credit Limit',
          path: "/partnership-management/monthly-credit-management"
        }
      },
      hidden: true
    },
    {
      path: '/partnership-management/monthly-credit-management/add',
      component: () => import('@/views/limit/Add'),
      name: 'credit-limit-add',
      meta: {
        title: 'Add Credit Limit',
        activeMenu: '/partnership-management/monthly-credit-management',
        parent: {
          title: 'Monthly Credit Limit',
          path: "/partnership-management/monthly-credit-management"
        }
      },
      hidden: true
    },
    {
      path: '/partnership-management/monthly-credit-management/edit/:id',
      component: () => import('@/views/limit/Add'),
      name: 'credit-limit-edit',
      meta: {
        title: 'Edit Credit Limit',
        activeMenu: '/partnership-management/monthly-credit-management',
        parent: {
          title: 'Monthly Credit Limit',
          path: "/partnership-management/monthly-credit-management"
        }
      },
      hidden: true
    }
  ]
}