import { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    path: '/login',
    component: () => import('pages/auth/LoginPage.vue'),
    name: 'login',
  },
  {
    path: '/sign-up',
    component: () => import('pages/auth/SignUpPage.vue'),
    name: 'sign-up',
  },
  {
    path: '/',
    component: () => import('layouts/AppLayout.vue'),
    children: [
      {
        path: '/',
        component: () => import('src/pages/ParkingMap.vue'),
        name: 'dashboard',
      },
      {
        path: '/test',
        component: () => import('src/pages/BusinessInformation.vue'),
        name: 'test',
      },
      {
        path: '/event',
        component: () => import('src/pages/DashBoard.vue'),
        name: 'event',
      },
      {
        path: '/parking',
        component: () => import('src/pages/ListParking.vue'),
        name: 'parking',
      },
      {
        path: '/parking/:id',
        component: () => import('src/pages/DetailParking.vue'),
        name: 'parking_detail',
      },
      {
        path: '/map',
        component: () => import('src/pages/ParkingMap.vue'),
        name: 'map',
      },
      {
        path: '/history',
        component: () => import('src/pages/HistoryBooking.vue'),
        name: 'history',
      },
      {
        path: '/register-parking',
        component: () => import('src/pages/RegisterParking.vue'),
        name: 'register-parking',
      },
      {
        path: '/my-parking',
        component: () => import('src/pages/MyPacking.vue'),
        name: 'my-parking',
      },
      {
        path: '/about',
        component: () => import('src/pages/AboutUs.vue'),
        name: 'about',
      },
      {
        path: '/contact',
        component: () => import('src/pages/ContactMe.vue'),
        name: 'contact',
      },
    ],
  },
  // {
  //   path: '/:catchAll(.*)*',
  //   component: () => import('pages/ErrorNotFound.vue'),
  // },
];
export default routes;
