import Layout from '@/layout'

export default {
  path: '/site-management',
  component: Layout,
  redirect: '/site-management/site-configuration',
  meta: {
    title: 'Site Management',
    icon: 'site-management',
  },
  alwaysShow: true,
  children: [
    {
      path: '/site-management/site-configuration',
      component: () => import('@/views/site/SiteManagement'),
      name: 'site-configuration',
      meta: {
        breadcrumb: true,
        title: 'Site Configuration',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
      }
    },
    {
      path: '/site-management/dynamic-rate-configuration',
      component: () => import('@/views/site/DynamicRates'),
      hidden: true,
      name: 'dynamic-rate-configuration',
      meta: {
        breadcrumb: true,
        title: 'Dynamic Rate Configuration',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
      }
    },
    {
      path: '/site-management/edit/:id',
      component: () => import('@/views/site/detail'),
      hidden: true,
      meta: {
        title: 'Edit Site',
        activeMenu: '/site-management/site-configuration'
      },
    },
    {
      path: '/site-management/add',
      component: () => import('@/views/site/detail'),
      hidden: true,
      meta: {
        title: 'Add Site',
        activeMenu: '/site-management/site-configuration'
      }
    },
    {
      path: '/site-management/stations/:id',
      component: () => import('@/views/charge/RegisteredChargeStations'),
      hidden: true,
      meta: {
        title: 'Manage Chargers',
        activeMenu: '/site-management/site-configuration'
      }
    },
    {
      path: '/site-management/connectors/:id',
      component: () => import('@/views/charge/Connectors'),
      hidden: true,
      meta: {
        title: 'Manage Connectors',
        activeMenu: '/site-management/site-configuration'
      }
    },
    {
      path: '/site-management/dynamic-rate-add',
      component: () => import('@/views/site/RateDetail'),
      hidden: true,
      name: 'dynamic-rate-add',
      meta: {
        breadcrumb: true,
        title: 'Create',
        parent: {
          title: 'Dynamic Rate',
          path: "/site-management/dynamic-rate-configuration"
        },
        activeMenu: '/site-management/dynamic-rate-configuration'
      }
    },
    {
      path: '/site-management/dynamic-rate-update/:id',
      component: () => import('@/views/site/RateDetail'),
      hidden: true,
      name: 'dynamic-rate-update',
      meta: {
        breadcrumb: true,
        title: 'Edit',
        parent: {
          title: 'Dynamic Rate',
          path: "/site-management/dynamic-rate-configuration"
        },
        activeMenu: '/site-management/dynamic-rate-configuration'
      }
    }
  ]
}