const PostView = () => import("@/views/cms/posts/List/index.vue");
const CreateOrUpdatePostView = () =>
  import("@/views/cms/posts/CreateOrUpdate/index.vue");
const CategoryView = () => import("@/views/cms/categories/index.vue");
const TagView = () => import("@/views/cms/Tags/index.vue");
const ProductView = () => import("@/views/cms/products/index.vue");
const CreateOrUpdateProductView = () =>
  import("@/views/cms/products/CreateOrUpdate/index.vue");
const TopicView = () => import("@/views/cms/topic/index.vue");
const CreateOrUpdateTopicView = () =>
  import("@/views/cms/topic/CreateOrUpdate/index.vue");
const UrlRecordView = () => import("@/views/cms/urlRecord/index.vue");
const ScriptConfigView = () => import("@/views/cms/scriptConfig/index.vue");
export const CmsRoutes = [
  {
    name: "cms-post",
    path: "/bai-viet",
    component: PostView,
    meta: { title: "Quản lý bài viết" },
  },
  {
    name: "cms-post-create",
    path: "/tao-bai-viet",
    component: CreateOrUpdatePostView,
    meta: { title: "Tạo bài viết" },
  },
  {
    name: "cms-post-update",
    path: "/cap-nhat-bai-viet/:id",
    component: CreateOrUpdatePostView,
    props: true,
    meta: { title: "Cập nhật bài viết" },
  },
  {
    name: "cms-tag",
    path: "/tu-khoa",
    component: TagView,
    props: true,
    meta: {
      title: "Từ khóa",
    },
  },
  {
    name: "cms-category",
    path: "/danh-muc",
    component: CategoryView,
    meta: {
      title: "Danh mục bài viết",
    },
  },
  {
    name: "cms-product",
    path: "/dich-vu",
    component: ProductView,
    meta: {
      title: "Dịch vụ",
    },
  },
  {
    name: "cms-product-create",
    path: "/tao-dich-vu",
    component: CreateOrUpdateProductView,
    meta: { title: "Tạo dịch vụ" },
  },
  {
    name: "cms-product-update",
    path: "/cap-nhat-dich-vu/:id",
    component: CreateOrUpdateProductView,
    props: true,
    meta: { title: "Cập nhật dịch vụ" },
  },
  {
    name: "cms-topic-create",
    path: "/tao-topic",
    component: CreateOrUpdateTopicView,
    meta: { title: "Tạo topic" },
  },
  {
    name: "cms-topic-update",
    path: "/cap-nhat-topic/:id",
    component: CreateOrUpdateTopicView,
    props: true,
    meta: {
      title: "Cập nhật topic",
    },
  },

  {
    name: "cms-topic",
    path: "/topic",
    component: TopicView,
    meta: {
      title: "Topic",
    },
  },
  {
    name: "cms-urlrecord",
    path: "/url-record",
    component: UrlRecordView,
    meta: { title: "Quản lý URL Record" },
  },
  {
    name: "cms-script-config",
    path: "/script-config",
    component: ScriptConfigView,
    meta: { title: "Script Config" },
  },
];
