import Layout from '@/layout'

export default {
  path: '/station-activities',
  redirect: '/station-activities/transactions',
  component: Layout,
  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/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'
      },
      hidden: true
    }
  ]
}