import Layout from '@/layout'

export default {
  path: '/user-management',
  component: Layout,
  meta: {
    title: 'User Management',
    icon: 'user-management',
    activeIcon: 'user-management-active',
  },
  children: [
    {
      path: '/user-management',
      component: () => import('@/views/user/index'),
      name: 'user-management',
      meta: {
        title: 'User Management',
        breadcrumb: false
        //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/add',
      component: () => import('@/views/user/detail'),
      name: 'addUser',
      hidden: true,
      meta: {
        title: 'Add User',
        activeMenu: '/user-management'
      }
    },
    {
      path: '/user-management/update/:id',
      component: () => import('@/views/user/detail'),
      name: 'userDetail',
      hidden: true,
      meta: {
        title: 'Edit User',
        activeMenu: '/user-management'
      }
    },{
      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'
      }
    },{
      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'
      }
    }
  ]
}