
const routes = [
  {
    path: '/',
    component: () => import('layouts/panelLayout.vue'),
    meta: {
      requiresAuth: true
    },
    children: [
      { path: '', component: () => import('pages/index.vue') },
      { path: '/panel', component: () => import('pages/index.vue') },

      { path: '/company', component: () => import('pages/companyList.vue') },
      { path: '/company/edit/:id', component: () => import('pages/company.vue') },
      { path: '/company/new', component: () => import('pages/company.vue') },
// { path: '/company/:id', component: () => import('pages/companyView.vue') },

      { path: '/tmpl', component: () => import('pages/tmpl.vue') },
      { path: '/map', component: () => import('pages/map.vue') },


    ]
  },

  {
    path: '/login',
    component: () => import('layouts/landingLayout.vue'),
    children: [
      { path: '', component: () => import('pages/login.vue') }
    ],
    meta: {
      requiresAuth: false
    },
  },

  // Always leave this as last one,
  // but you can also remove it
  {
    path: '/:catchAll(.*)*',
    component: () => import('pages/ErrorNotFound.vue')
  }
]

export default routes
