/**
 * Invoices feature module (@maestro/core).
 */
import InvoicesIndex from "./views/Index.vue";
import InvoiceEditor from "./views/InvoiceEditor.vue";

export const invoiceRoutes = [
  {
    path: "invoices",
    name: "invoices",
    meta: {
      module: "invoices",
      permission: "invoices.view",
      breadcrumb: ["Facturen"],
      title: "Facturen",
    },
    component: InvoicesIndex,
  },
  {
    path: "invoices/new",
    name: "invoices-new",
    meta: {
      module: "invoices",
      permission: "invoices.create",
      breadcrumb: ["Facturen", "Nieuw"],
      title: "Nieuwe factuur",
    },
    component: InvoiceEditor,
  },
  {
    path: "invoices/credit/new",
    name: "invoices-credit-new",
    meta: {
      module: "invoices",
      permission: "invoices.create",
      breadcrumb: ["Facturen", "Creditnota"],
      title: "Nieuwe creditnota",
    },
    component: InvoiceEditor,
  },
  {
    path: "invoices/:id",
    name: "invoices-edit",
    meta: {
      module: "invoices",
      permission: "invoices.view",
      breadcrumb: ["Facturen"],
      title: "Factuur",
    },
    component: InvoiceEditor,
  },
];

export { default as InvoicesIndex } from "./views/Index.vue";
export { default as InvoiceEditor } from "./views/InvoiceEditor.vue";
