import Layout from '@/layout'

export default {
  path: '/ocpi',
  redirect: 'noRedirect',
  component: Layout,
  alwaysShow: true,
  meta: {
    title: 'OCPI',
    icon: 'addon-ocpi-text',
    activeIcon: 'addon-ocpi',
    affix: true
  },
  children: [{
    path: '/ocpi/roaming-operators',
    component: () => import('@/views/ocpi/operators'),
    name: 'ocpi-roaming-operators',
    meta: {
      title: "Roaming Operators",
      icon: 'sidebar-submenu-item',
      activeIcon: 'sidebar-submenu-item-active',
      breadcrumb: true
    }
  },{
    path: '/ocpi/send-config',
    component: () => import('@/views/ocpi/configs'),
    name: 'ocpi-send-config',
    meta: {
      title: "Send Config",
      icon: 'sidebar-submenu-item',
      activeIcon: 'sidebar-submenu-item-active',
      breadcrumb: true
    }
  },{
    path: '/ocpi/roaming-contracts',
    component: () => import('@/views/ocpi/contracts'),
    name: 'ocpi-roaming-contracts',
    meta: {
      title: "Roaming Contracts",
      icon: 'sidebar-submenu-item',
      activeIcon: 'sidebar-submenu-item-active',
      breadcrumb: true
    }
  },{
    path: '/ocpi/sites',
    component: () => import('@/views/ocpi/sites'),
    name: 'ocpi-sites',
    meta: {
      title: "Sites",
      icon: 'sidebar-submenu-item',
      activeIcon: 'sidebar-submenu-item-active',
      breadcrumb: true
    }
  },{
    path: '/ocpi/stations',
    component: () => import('@/views/ocpi/stations'),
    name: 'ocpi-stations',
    meta: {
      title: "Charging Stations",
      icon: 'sidebar-submenu-item',
      activeIcon: 'sidebar-submenu-item-active',
      breadcrumb: true
    }
  },{
    path: '/ocpi/connectors',
    component: () => import('@/views/ocpi/connectors'),
    name: 'ocpi-connectors',
    meta: {
      title: "Connectors",
      icon: 'sidebar-submenu-item',
      activeIcon: 'sidebar-submenu-item-active',
      breadcrumb: true
    }
  },{
    path: '/ocpi/edit-operators/:id',
    component: () => import('@/views/ocpi/views/DetailOperators'),
    name: 'ocpi-device-index',
    meta: {
      title: "Edit Partner",
      icon: 'sidebar-submenu-item',
      activeIcon: 'sidebar-submenu-item-active',
      activeMenu: '/ocpi/roaming-operators',
      breadcrumb: true,
      parent: {
        title: 'Roaming Partner',
        path: "/ocpi/roaming-operators"
      }
    }
  }]
}