// پنل ادمین
export default [
  {
    path: "/",
    redirect: "/products",
    meta: {
      title: "محصولات",
    },
  },
  {
    path: "/forgot-password-v1",
    name: "forgot-password-v1",
    meta: { title: "فراموشی رمز عبور" },
    component: () =>
      import("../views/live-preview/pages/auth1/forgot-password.vue"),
  },
  {
    path: "/users",
    name: "users",
    meta: {
      title: "کاربران",
      requiresAuth: true,
    },
    component: () => import("../views/live-preview/pages/users/users.vue"),
  },
  {
    path: "/countries",
    name: "countries",
    meta: {
      title: "کشورها",
      requiresAuth: true,
    },
    component: () => import("../views/live-preview/pages/countries/countries.vue"),
  },
  {
    path: "/brands",
    name: "brands",
    meta: {
      title: "برند ها",
      requiresAuth: true,
    },
    component: () => import("../views/live-preview/pages/brands/brands.vue"),
  },
  {
    path: "/cats",
    name: "cats",
    meta: {
      title: "دسته ها",
      requiresAuth: true,
    },
    component: () => import("../views/live-preview/pages/catrgories/cats.vue"),
  },
  {
    path: "/attributes",
    name: "attributes",
    meta: {
      title: "ویژگی ها",
      requiresAuth: true,
    },
    component: () =>
      import("../views/live-preview/pages/attributes/attributes.vue"),
  },
  {
    path: "/attributes-value/:id",
    name: "attributes-value",
    meta: {
      title: "مقدار ویژگی",
      requiresAuth: true,
    },
    component: () => import("../views/live-preview/pages/attributes-value/attributes-value.vue"),
  },
  {
    path: "/blogCat",
    name: "blogCat",
    meta: {
      title: "دسته ها",
      requiresAuth: true,
    },
    component: () => import("../views/live-preview/pages/blogCats/blogCat.vue"),
  },
  {
    path: "/blogs",
    name: "blogs",
    meta: {
      title: "بلاگ",
      requiresAuth: true,
    },
    component: () => import("../views/live-preview/pages/blogs/blogs.vue"),
  },
  {
    path: "/addBlog",
    name: "addBlog",
    meta: {
      title: "ایجاد بلاگ",
      requiresAuth: true,
    },
    component: () => import("../views/live-preview/pages/blogs/addBlog.vue"),
  },
  {
    path: "/editBlog/:id",
    name: "editBlog",
    meta: {
      title: "ویرایش بلاگ",
      requiresAuth: true,
    },
    component: () => import("../views/live-preview/pages/blogs/editBlog.vue"),
  },
  {
    path: "/products",
    name: "products",
    meta: {
      title: "محصولات",
      requiresAuth: true,
    },
    component: () =>
      import("../views/live-preview/pages/products/products.vue"),
  },
  {
    path: "/addProduct",
    name: "addProduct",
    meta: {
      title: "محصولات",
      requiresAuth: true,
    },
    component: () =>
      import("../views/live-preview/pages/products/addProduct.vue"),
  },
  {
    path: "/editProduct/:id",
    name: "editProduct",
    meta: {
      title: "محصولات",
      requiresAuth: true,
    },
    component: () =>
      import("../views/live-preview/pages/products/editProduct.vue"),
  },
  {
    path: "/discounts",
    name: "discounts",
    meta: {
      title: "تخفیف ها",
      requiresAuth: true,
    },
    component: () =>
      import("../views/live-preview/pages/discounts/discounts.vue"),
  },
  {
    path: "/addDiscount",
    name: "addDiscount",
    meta: {
      title: "تخفیف ها",
      requiresAuth: true,
    },
    component: () =>
      import("../views/live-preview/pages/discounts/addDiscount.vue"),
  },
  {
    path: "/editDiscount/:id",
    name: "editDiscount",
    meta: {
      title: "تخفیف ها",
      requiresAuth: true,
    },
    component: () =>
      import("../views/live-preview/pages/discounts/editDiscount.vue"),
  },
  {
    path: "/orders",
    name: "orders",
    meta: {
      title: "سفارسات",
      requiresAuth: true,
    },
    component: () => import("../views/live-preview/pages/orders/orders.vue"),
  },
  {
    path: "/allOrdersItems",
    name: "allOrdersItems",
    meta: {
      title: "سفارسات",
      requiresAuth: true,
    },
    component: () =>
      import("../views/live-preview/pages/orders/allOrdersItems.vue"),
  },
  {
    path: "/singleOrder/:id",
    name: "singleOrder",
    meta: {
      title: "سفارسات",
      requiresAuth: true,
    },
    component: () =>
      import("../views/live-preview/pages/orders/singleOrder.vue"),
  },
  {
    path: "/approvedOrders",
    name: "approvedOrders",
    meta: {
      title: "سفارسات",
      requiresAuth: true,
    },
    component: () =>
      import("../views/live-preview/pages/orders/approvedOrders.vue"),
  },
  {
    path: "/comments",
    name: "comments",
    meta: {
      title: "نظرات",
      requiresAuth: true,
    },
    component: () =>
      import("../views/live-preview/pages/comments/comments.vue"),
  },
  {
    path: "/faqs",
    name: "faqs",
    meta: {
      title: "پرسش و پاسخ",
      requiresAuth: true,
    },
    component: () => import("../views/live-preview/pages/faqs/faqs.vue"),
  },
  {
    path: "/editFaqs/:id",
    name: "editFaqs",
    meta: {
      title: "پرسش و پاسخ",
      requiresAuth: true,
    },
    component: () => import("../views/live-preview/pages/faqs/editFaqs.vue"),
  },
  {
    path: "/profile",
    name: "profile",
    meta: {
      title: "پروفایل",
      requiresAuth: true,
    },
    component: () => import("../views/live-preview/pages/profile/profile.vue"),
  },
  {
    path: "/address",
    name: "address",
    meta: {
      title: "پروفایل",
      requiresAuth: true,
    },
    component: () => import("../views/live-preview/pages/profile/address.vue"),
  },
  {
    path: "/banners",
    name: "banners",
    meta: {
      title: "بنر ",
      requiresAuth: true,
    },
    component: () => import("../views/live-preview/pages/banners/banners.vue"),
  },
  {
    path: "/addBanner",
    name: "addBanner",
    meta: {
      title: "بنر ",
      requiresAuth: true,
    },
    component: () =>
      import("../views/live-preview/pages/banners/addBanner.vue"),
  },
  {
    path: "/editBanner/:id",
    name: "editBanner",
    meta: {
      title: "بنر ",
      requiresAuth: true,
    },
    component: () =>
      import("../views/live-preview/pages/banners/editBanner.vue"),
  },
  {
    path: "/idenities",
    name: "idenities",
    meta: {
      title: "مشخضات",
      requiresAuth: true,
    },
    component: () =>
      import("../views/live-preview/pages/identity/idenities.vue"),
  },

  {
    path: "/calls",
    name: "calls",
    meta: {
      title: "پیگیری ها",
      requiresAuth: true,
    },
    component: () => import("../views/live-preview/pages/calls/calls.vue"),
  },
  {
    path: "/settings",
    name: "settings",
    meta: {
      title: "تنظیمات",
      requiresAuth: true,
    },
    component: () => import("../views/live-preview/pages/settings/setting.vue"),
  },
  // Auth
  {
    path: "/otpLogin",
    name: "otpLogin",
    meta: { title: "ورود" },
    component: () => import("../views/live-preview/pages/auth2/otpLogin.vue"),
  },

  {
    path: "/login-v2",
    name: "login-v2",
    meta: { title: "ورود" },
    component: () => import("../views/live-preview/pages/auth2/login.vue"),
  },

  {
    path: "/forgot-password-v2",
    name: "forgot-password-v2",
    meta: { title: "فراموشی رمز" },
    component: () =>
      import("../views/live-preview/pages/auth2/forgot-password.vue"),
  },

  {
    path: "/reset-password-v2",
    name: "reset-password-v2",
    meta: { title: "بازنشانی رمز" },
    component: () =>
      import("../views/live-preview/pages/auth2/reset-password.vue"),
  },

  {
    path: "/:pathMatch(.*)*", // This catches all undefined routes
    redirect: "/error-404", // Redirects to your 404 page
  },

  // maintanance
  {
    path: "/error-404",
    name: "error-404",
    meta: { title: "404" },
    component: () =>
      import("../views/live-preview/pages/maintenance/error-404.vue"),
  },
  {
    path: "/connection-lost",
    name: "connection-lost",
    meta: { title: "Connection Lost" },
    component: () =>
      import("../views/live-preview/pages/maintenance/connection-lost.vue"),
  },
  {
    path: "/under-construction",
    name: "under-construction",
    meta: { title: "Under Construction" },
    component: () =>
      import("../views/live-preview/pages/maintenance/under-construction.vue"),
  },
  {
    path: "/comming-soon",
    name: "comming-soon",
    meta: { title: "Comming Soon" },
    component: () =>
      import("../views/live-preview/pages/maintenance/comming-soon.vue"),
  },

  // Advance Components
];
