const PremiseList = () => import("@/views/premises/index.vue");
const PremiseForm = () => import("@/views/premises/form.vue");
const ScoringCriteriaList = () => import("@/views/premises/scoring/index.vue");

export const PremiseRoutes = [
    {
        name: "premise-list",
        path: "/mat-bang",
        component: PremiseList,
        meta: {
            title: "Quản lý mặt bằng",
        },
    },
    {
        name: "premise-create",
        path: "/mat-bang/tao-moi",
        component: PremiseForm,
        meta: {
            title: "Tạo mặt bằng mới",
        },
    },
    {
        name: "premise-edit",
        path: "/mat-bang/:id/chinh-sua",
        component: PremiseForm,
        props: true,
        meta: {
            title: "Chỉnh sửa mặt bằng",
        },
    },

    {
        name: "scoring-criteria-list",
        path: "/mat-bang/tieu-chi",
        component: ScoringCriteriaList,
        meta: {
            title: "Tiêu chí chấm điểm",
        },
    },
];
