import Layout from '@/layout'

export default {
  path: '/user-management',
  redirect: '/user-management/public',
  component: Layout,
  meta: {
    title: 'User Management',
    icon: 'user-management'
  },
  children: [
    {
      path: '/user-management/public',
      component: () => import('@/views/user/UserManagement'),
      name: 'user-management',
      meta: {
        title: 'Public User',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
      },
    },
    {
      path: '/user-management/group',
      component: () => import('@/views/group/index'),
      name: 'DriverList',
      meta: {
        title: 'Group User',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
      }
    },
    {
      path: '/user-management/blacklist',
      component: () => import('@/views/driver/index'),
      name: 'BlackList',
      meta: {
        title: 'Blacklist/Suspension',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
      }
    },
    {
      path: '/user-management/group/detail/:user',
      component: () => import('@/views/group/detail'),
      name: 'GroupUserDetail',
      meta: {
        title: 'Details',
        breadcrumb: true,
        activeMenu: '/user-management/group',
        parent: {
          title: 'Group User',
          path: "/user-management/group"
        }
      },
      hidden: true
    },
    {
      path: '/user-management/group/edit/:id',
      component: () => import('@/views/group/detail'),
      name: 'EditGroupUser',
      meta: {
        title: 'Update',
        breadcrumb: true,
        activeMenu: '/user-management/group',
        parent: {
          title: 'Group User',
          path: "/user-management/group"
        }
      },
      hidden: true
    },
    {
      path: '/user-management/group/add',
      component: () => import('@/views/group/detail'),
      name: 'AddGroupUser',
      meta: {
        title: 'Add',
        breadcrumb: true,
        activeMenu: '/user-management/group',
        parent: {
          title: 'Group User',
          path: "/user-management/group"
        }
      },
      hidden: true
    },
    {
      path: '/user-management/add-user',
      component: () => import('@/views/user/UserDetail'),
      name: 'addUser',
      hidden: true,
      meta: {
        title: 'Add User',
        icon: 'user-management',
        affix: true,
        activeMenu: '/user-management/public'
      }
    },
    {
      path: '/user-management/update-user/:id',
      component: () => import('@/views/user/UserDetail'),
      name: 'userDetail',
      hidden: true,
      meta: {
        title: 'Edit User',
        icon: 'user-management',
        affix: true,
        activeMenu: '/user-management/public'
      }
    },{
      path: '/user-management/topup-history/:id',
      component: () => import('@/views/user/hisTopUp'),
      name: 'userDetail',
      hidden: true,
      meta: {
        title: 'Top Up History',
        icon: 'user-management',
        affix: true,
        activeMenu: '/user-management/public'
      }
    },{
      path: '/user-management/charging-history/:id',
      component: () => import('@/views/user/hisCharge'),
      name: 'userDetail',
      hidden: true,
      meta: {
        title: 'Charging History',
        icon: 'user-management',
        affix: true,
        activeMenu: '/user-management/public'
      }
    }
  ]
}