import type { RouteRecordRaw } from 'vue-router'

export const activityLayoutRoutes: RouteRecordRaw[] = [
  {
    path: 'activities',
    name: 'list-activities',
    component: () => import('./pages/ActivityList.vue'),
    meta: {
      title: 'Senarai Aktiviti',
      module: 'activity',
      permission: 'lihat aktiviti',
    },
  },
  {
    path: 'activities/create',
    name: 'create-activity',
    component: () => import('./pages/ActivityCreate.vue'),
    meta: {
      title: 'Daftar Aktiviti',
      module: 'activity',
      permission: 'tambah aktiviti',
    },
  },
  {
    path: 'activities/:id',
    name: 'view-activity',
    component: () => import('./pages/ActivityDetail.vue'),
    meta: {
      title: 'Butiran Aktiviti',
      module: 'activity',
      permission: 'lihat aktiviti',
    },
  },
  {
    path: 'activities/:id/edit',
    name: 'edit-activity',
    component: () => import('./pages/ActivityEdit.vue'),
    meta: {
      title: 'Kemaskini Aktiviti',
      module: 'activity',
      permission: 'kemaskini aktiviti',
    },
  },
]
