import Layout from '@/layout'

export default {
  path: '/station-activities',
  redirect: 'noRedirect',
  component: Layout,
  alwaysShow: true,
  meta: {
    title: 'Station Activities',
    icon: 'transactions-reservations',
    affix: false
  },
  children: [
    {
      path: '/station-activities/transactions',
      component: () => import('@/views/transaction/transactions'),
      name: 'transactions',
      meta: {
        title: 'Transactions',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
        affix: false,
      }
    },
    {
      path: '/station-activities/transactions/v2',
      component: () => import('@/views/transaction/transactions_v2'),
      name: 'transactions',
      meta: {
        title: 'Transactions',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
        affix: false,
      }
    },
    {
      path: '/station-activities/reservations',
      component: () => import('@/views/transaction/reservations'),
      name: 'reservations',
      meta: {
        title: 'Reservations',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
        affix: true,
      }
    },
    {
      path: '/station-activities/transactions/:id',
      component: () => import('@/views/transaction/view_transaction'),
      name: 'view-transaction',
      meta: {
        title: 'View Transaction',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
        activeMenu: '/station-activities/transactions',
        parent: {
          title: 'Transactions',
          path: "/station-activities/transactions"
        }
      },
      hidden: true
    },
    {
      path: '/station-activities/transactions/v2/:id',
      component: () => import('@/views/transaction/view_transaction_v2'),
      name: 'transactions',
      meta: {
        title: 'View Transaction',
        icon: 'sidebar-submenu-item',
        activeIcon: 'sidebar-submenu-item-active',
        activeMenu: '/station-activities/transactions/v2',
        parent: {
          title: 'Transactions',
          path: "/station-activities/transactions/v2"
        }
      },
      hidden: true
    },
  ]
}