599 lines
17 KiB
JavaScript
599 lines
17 KiB
JavaScript
import React from "react";
|
|
|
|
// DashBoard
|
|
const Change_Password = React.lazy(() =>
|
|
import("./views/pages/register/Change_password")
|
|
);
|
|
|
|
import Profile from "./views/Profile/Profile";
|
|
import EditProfile from "./views/Profile/EditProfile";
|
|
const Dashboard = React.lazy(() => import("./views/dashboard/Dashboard"));
|
|
///
|
|
//Cities
|
|
import Cities from "./views/configuration/Purpose/Purpose.js";
|
|
import AddCity from "./views/configuration/Purpose/AddPurpose.js";
|
|
import EditCity from "./views/configuration/Purpose/EditPurpose.js";
|
|
//states
|
|
import EditState from "./views/configuration/states/EditStates.js";
|
|
import AddState from "./views/configuration/states/AddState.js";
|
|
import States from "./views/configuration/states/States.js";
|
|
//social media,address,logo
|
|
import Socialmedia from "./views/configuration/Socialmedia.js";
|
|
import Address from "./views/configuration/Address.js";
|
|
import Logo from "./views/configuration/Logo.js";
|
|
import Login from "./views/pages/login/Login";
|
|
|
|
// Appointments
|
|
import Appointments from "./views/Appointments/Appointments";
|
|
|
|
//Businesses
|
|
|
|
import Products from "./views/Products/Products";
|
|
//product
|
|
import AddProduct from "./views/Products/AddProduct";
|
|
import EditProduct from "./views/Products/EditProduct";
|
|
import ViewProduct from "./views/Products/ViewProduct";
|
|
|
|
//Order Management
|
|
import NewOrders from "./views/orders/NewOrders.js";
|
|
import ProcessingOrders from "./views/orders/ProcessingOrders.js";
|
|
import DispatchedOrders from "./views/orders/DispatchedOrders.js";
|
|
import DeliveredOrders from "./views/orders/DeliveredOrders.js";
|
|
import CancelledOrders from "./views/orders/CancelledOrders.js";
|
|
import ReturnedOrders from "./views/orders/ReturnedOrders.js";
|
|
import ViewOdr from "./views/orders/ViewOdr";
|
|
import AddOrder from "./views/orders/AddOrder";
|
|
//Taxes
|
|
import Tax from "./views/configuration/tax/Tax";
|
|
import Addtax from "./views/configuration/tax/Addtax";
|
|
import Edittax from "./views/configuration/tax/Edittax";
|
|
import EditOrder from "./views/orders/EditOrder";
|
|
import ViewOrders from "./views/orders/ViewOrders";
|
|
import Departures from "./views/Departures/Departures";
|
|
import AddDeparture from "./views/Departures/AddDeparture";
|
|
import Informations from "./views/Informations/Informations";
|
|
import AddInformations from "./views/Informations/AddInformations";
|
|
|
|
import ApplicationName from "./views/configuration/ApplicationName";
|
|
import CopyrightMessage from "./views/configuration/CopyrightMessage";
|
|
import ContactRequests from "./views/ContactRequests/ContactRequests";
|
|
import AddContactRequest from "./views/ContactRequests/AddContactRequest";
|
|
|
|
import AddSeoRequest from "./views/seo/AddSeoRequest";
|
|
|
|
import Testimonials from "./views/Testimonials/Testimonials";
|
|
import AddTestimonial from "./views/Testimonials/AddTestimonial";
|
|
import ViewTestimonial from "./views/Testimonials/ViewTestimonial";
|
|
import Policies from "./views/configuration/Policies/Policies";
|
|
////purpose
|
|
import Purpose from "./views/configuration/Purpose/Purpose";
|
|
import AddPurpose from "./views/configuration/Purpose/AddPurpose";
|
|
//language
|
|
import Languages from "./views/configuration/Language/Languages";
|
|
import AddLanguage from "./views/configuration/Language/AddLanguage";
|
|
import EditLanguage from "./views/configuration/Language/EditLanguage";
|
|
//BusinessType
|
|
import BusinessType from "./views/configuration/Business_Type/Business";
|
|
import AddBusinessType from "./views/configuration/Business_Type/AddBusiness";
|
|
import EditBusinessType from "./views/configuration/Business_Type/EditLanguage";
|
|
import EditPurpose from "./views/configuration/Purpose/EditPurpose.js";
|
|
import ViewAppointment from "./views/Appointments/ViewAppointment";
|
|
import EditAppointment from "./views/Appointments/EditAppointment";
|
|
import AddNewAppointment from "./views/Appointments/AddNewAppointment";
|
|
|
|
import Campaign from "./views/Campaigns/Campaign.js";
|
|
import AddCampaign from "./views/Campaigns/AddCampaign.js";
|
|
import Categories from "./views/Categories/categories";
|
|
import Content from "./views/Content/content";
|
|
|
|
import EditPrivacyPolicy from "./views/Content/editPrivacyPolicy";
|
|
import EditTermsConditions from "./views/Content/editTermsConditions";
|
|
import EditShippingPolicy from "./views/Content/editShippingPolicy";
|
|
import EditRefundpolicy from "./views/Content/editRefundPolicy";
|
|
import EditAboutUs from "./views/Content/editAboutUs";
|
|
|
|
// import EditUserAddress from "./views/customerDetails/editUserAddress";
|
|
// import AddUserAddress from "./views/customerDetails/addUserAddress";
|
|
import viewDetails from "./views/customerDetails/viewDetails";
|
|
import Design from "./views/Design/design";
|
|
import Banners from "./views/Banner/banner";
|
|
import RegisterImage from "./views/Images/RegisterImage";
|
|
import LoginImage from "./views/Images/LoginImage";
|
|
import ShopImage from "./views/Images/ShopImage";
|
|
//Affiliate
|
|
import Coupons from "./views/Affiliate/Coupons";
|
|
import Affiliates from "./views/Affiliate/Affiliates";
|
|
import CreateCoupon from "./views/Affiliate/CreateCoupon";
|
|
import CreateAffiliate from "./views/Affiliate/CreateAffiliate";
|
|
import EditAffiliate from "./views/Affiliate/EditAffiliate";
|
|
import EditCoupon from "./views/Affiliate/EditCoupon";
|
|
import PayAffiliate from "./views/Affiliate/PayAffiliate";
|
|
import AffiliateHistory from "./views/Affiliate/AffiliateHistory";
|
|
import CouponHistory from "./views/Affiliate/CouponHistory";
|
|
import SupportRequest from "./views/CustomerSupport/SupportRequest";
|
|
import SupportReply from "./views/CustomerSupport/SupportReply";
|
|
import SupportRequestClosed from "./views/CustomerSupport/SupportRequestClosed";
|
|
import CloseRequestView from "./views/CustomerSupport/CloseRequestView";
|
|
import EditTestimonial from "./views/Testimonials/EditTestimonial";
|
|
//Blogs
|
|
import Blogs from "./views/Blog/Blogs";
|
|
import CreateBlog from "./views/Blog/CreateBlog";
|
|
import users from "./views/Users/users";
|
|
import UpdateBlog from "./views/Blog/EditBlog";
|
|
import ViewBlog from "./views/Blog/ViewBlog";
|
|
import Home from "./views/Home/home";
|
|
import EditPanel1 from "./views/Home/editPanel1";
|
|
import EditPanel2 from "./views/Home/editPanel2";
|
|
import EditPanel3 from "./views/Home/editPanel3";
|
|
import Editpanel4 from "./views/Home/editPanel4";
|
|
import CustomerTable from "./views/customerDetails/customerTable";
|
|
import SingleUserAllDetails from "./views/customerDetails/singleUserAllDetails";
|
|
import Charts from "./views/Charts/RevenueCharts";
|
|
import UserCharts from "./views/Charts/UserChart";
|
|
import ProductrevenueCharts from "./views/Charts/ProductRevenue";
|
|
import StateRevenueCharts from "./views/Charts/Staterevenue";
|
|
import CityRevenueCharts from "./views/Charts/CityRevenue";
|
|
import { element } from "prop-types";
|
|
import OrderdayChart from "./views/Charts/OrderDaywise";
|
|
import RevenueCharts from "./views/Charts/RevenueCharts";
|
|
const routes = [
|
|
{ path: "/", exact: true, name: "Home" },
|
|
{
|
|
path: "/change_password",
|
|
name: "Change Password",
|
|
element: Change_Password,
|
|
},
|
|
{ path: "/profile/edit", name: "Edit Profile", element: EditProfile },
|
|
// { path: '/profile', name: 'Profile', element: Profile },
|
|
|
|
//Product
|
|
{ path: "/products", name: "products", element: Products },
|
|
{ path: "/product/add", name: "Add products", element: AddProduct },
|
|
{ path: "/product/edit/:id", name: "Edit products", element: EditProduct },
|
|
{ path: "/product/view/:id", name: "view products", element: ViewProduct },
|
|
//Departure
|
|
{ path: "/departures", name: "Departures", element: Departures },
|
|
{ path: "/departure/add", name: "Add Departure", element: AddDeparture },
|
|
{ path: "/product/edit/:id", name: "Edit products", element: EditProduct },
|
|
{ path: "/product/view/:id", name: "view products", element: ViewProduct },
|
|
|
|
// Appointments
|
|
{ path: "/appointments", name: "Appointments", element: Appointments },
|
|
{
|
|
path: "/appointment/view/:id",
|
|
name: "View Appointment",
|
|
element: ViewAppointment,
|
|
},
|
|
{
|
|
path: "/appointment/edit/:id",
|
|
name: "Edit Appointment",
|
|
element: EditAppointment,
|
|
},
|
|
{
|
|
path: "/appointment/new",
|
|
name: "Add Appointment",
|
|
element: AddNewAppointment,
|
|
},
|
|
|
|
{
|
|
path: "/customers-details",
|
|
name: "User Table",
|
|
element: CustomerTable,
|
|
},
|
|
{
|
|
path: "/customers-details/:_id",
|
|
name: "User Table",
|
|
element: SingleUserAllDetails,
|
|
},
|
|
// {
|
|
// path: "/users-address/add",
|
|
// name: "User Address",
|
|
// element: AddUserAddress,
|
|
// },
|
|
// {
|
|
// path: "/users-address/edit/:id",
|
|
// name: "Edit user address",
|
|
// element: EditUserAddress,
|
|
// },
|
|
{
|
|
path: "/users-address/view",
|
|
name: "view address",
|
|
element: viewDetails,
|
|
},
|
|
|
|
// health care providers
|
|
// {
|
|
// path: "//users",
|
|
// name: "healthcare providers",
|
|
// element: Businesses,
|
|
// },
|
|
// {
|
|
// path: "//users/add",
|
|
// name: "Add healthcare providers",
|
|
// element: AddBusiness,
|
|
// },
|
|
// {
|
|
// path: "/users/edit/:id",
|
|
// name: "Edit healthcare providers",
|
|
// element: EditBusiness,
|
|
// },
|
|
// {
|
|
// path: "/users/view/:id",
|
|
// name: "view healthcare providers",
|
|
// element: ViewHealthCareProvider,
|
|
// },
|
|
// Categories
|
|
{
|
|
path: "/categories",
|
|
name: "Categories",
|
|
element: Categories,
|
|
},
|
|
// Design
|
|
{
|
|
path: "/design",
|
|
name: "Design",
|
|
element: Design,
|
|
},
|
|
{
|
|
path: "//campaigns",
|
|
name: "campaigns",
|
|
element: Campaign,
|
|
},
|
|
{
|
|
path: "//campaign/add",
|
|
name: "Add Campaigns",
|
|
element: AddCampaign,
|
|
},
|
|
// {
|
|
// path: "/campaigns/edit/:id",
|
|
// name: "Edit healthcare providers",
|
|
// element: EditBusiness,
|
|
// },
|
|
// {
|
|
// path: "/campaigns/view/:id",
|
|
// name: "view healthcare providers",
|
|
// element: ViewHealthCareProvider,
|
|
// },
|
|
|
|
// { path: '/franchisee/view/:id', name: 'view franchisee', element: ViewFra },
|
|
//Contact Requests
|
|
|
|
{
|
|
path: "/contact/request",
|
|
name: "Contact Requests",
|
|
element: ContactRequests,
|
|
},
|
|
{
|
|
path: "/contact/request/new",
|
|
name: "AddContact Request",
|
|
element: AddContactRequest,
|
|
},
|
|
//Support Requests
|
|
|
|
{
|
|
path: "/support/request",
|
|
name: "CustomerSupport Requests",
|
|
element: SupportRequest,
|
|
},
|
|
{
|
|
path: "/support/request/closed",
|
|
name: "Closed CustomerSupport Requests",
|
|
element: SupportRequestClosed,
|
|
},
|
|
{
|
|
path: "/support/request/closed/:ticketID",
|
|
name: "Closed CustomerSupport Request view",
|
|
element: CloseRequestView,
|
|
},
|
|
{
|
|
path: "/support/request/reply/:ticketID",
|
|
name: "CustomerSupport Reply",
|
|
element: SupportReply,
|
|
},
|
|
// Content ---- >
|
|
|
|
{
|
|
path: "/content",
|
|
name: "Content",
|
|
element: Content,
|
|
},
|
|
{
|
|
path: "/content/terms-and-conditions",
|
|
name: "Content",
|
|
element: EditTermsConditions,
|
|
},
|
|
{
|
|
path: "/content/privacy-policy",
|
|
name: "Content",
|
|
element: EditPrivacyPolicy,
|
|
},
|
|
{
|
|
path: "/content/shipping-policy",
|
|
name: "Content",
|
|
element: EditShippingPolicy,
|
|
},
|
|
{
|
|
path: "/content/refund-policy",
|
|
name: "Content",
|
|
element: EditRefundpolicy,
|
|
},
|
|
{
|
|
path: "/content/about-us",
|
|
name: "Content",
|
|
element: EditAboutUs,
|
|
},
|
|
|
|
// Home
|
|
{
|
|
path: "/home",
|
|
name: "Home",
|
|
element: Home,
|
|
},
|
|
{
|
|
path: "/home/panel-1",
|
|
name: "EditPanel1",
|
|
element: EditPanel1,
|
|
},
|
|
{
|
|
path: "/home/panel-2",
|
|
name: "EditPanel2",
|
|
element: EditPanel2,
|
|
},
|
|
{
|
|
path: "/home/panel-3",
|
|
name: "EditPanel3",
|
|
element: EditPanel3,
|
|
},
|
|
{
|
|
path: "/home/panel-4",
|
|
name: "EditPanel4",
|
|
element: Editpanel4,
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// { path: '/complaint/view/:id', name: 'view Complain', element: ViewComplaint },
|
|
//Complaints
|
|
{
|
|
path: "/testimonials",
|
|
name: "Testimonials",
|
|
element: Testimonials,
|
|
},
|
|
|
|
{
|
|
path: "/testimonial/new",
|
|
name: "AddTestimonial",
|
|
element: AddTestimonial,
|
|
},
|
|
{
|
|
path: "/testimonial/view/:id",
|
|
name: "ViewTestimonial",
|
|
element: ViewTestimonial,
|
|
},
|
|
{
|
|
path: "/testimonial/edit/:id",
|
|
name: "EditTestimonial",
|
|
element: EditTestimonial,
|
|
},
|
|
{
|
|
path: "/banner",
|
|
name: "Banners",
|
|
element: Banners,
|
|
},
|
|
{
|
|
path: "/registerImage",
|
|
name: "RegisterImage",
|
|
element: RegisterImage,
|
|
},
|
|
{
|
|
path: "/loginImage",
|
|
name: "LoginImage",
|
|
element: LoginImage,
|
|
},
|
|
{
|
|
path: "/shopImage",
|
|
name: "ShopImage",
|
|
element: ShopImage,
|
|
},
|
|
//informations
|
|
{ path: "/informations", name: "Informations", element: Informations },
|
|
{
|
|
path: "/information/new",
|
|
name: "Add Informations",
|
|
element: AddInformations,
|
|
},
|
|
|
|
//Order Management
|
|
|
|
{ path: "/orders/new", name: "New Orders", element: NewOrders },
|
|
{ path: "/order/add", name: "add Order", element: AddOrder },
|
|
{ path: "/orders/edit/:id", name: "Edit Order", element: EditOrder },
|
|
{ path: "/orders/:status/:id", name: "View Order", element: ViewOrders },
|
|
|
|
{
|
|
path: "/orders/processing",
|
|
name: "Processing Orders",
|
|
element: ProcessingOrders,
|
|
},
|
|
{
|
|
path: "/orders/dispatched",
|
|
name: "Dispatched Orders",
|
|
element: DispatchedOrders,
|
|
},
|
|
{
|
|
path: "/orders/delivered",
|
|
name: "Delivered Orders",
|
|
element: DeliveredOrders,
|
|
},
|
|
{
|
|
path: "/orders/cancelled",
|
|
name: "Cancelled Orders",
|
|
element: CancelledOrders,
|
|
},
|
|
{
|
|
path: "/orders/returned",
|
|
name: "Returned Orders",
|
|
element: ReturnedOrders,
|
|
},
|
|
// { path: "/order/:status/:id", name: "View Order", element: ViewOdr },
|
|
|
|
//dashboard
|
|
|
|
{ path: "/dashboard", name: "Dashboard", element: Dashboard },
|
|
|
|
//------------settings------------------------//
|
|
|
|
{ path: "/policies", name: "Policies", element: Policies },
|
|
|
|
{ path: "/socialmedia", name: "Social Media", element: Socialmedia },
|
|
{ path: "/purpose", name: "Purpose", element: Purpose },
|
|
{ path: "/purpose/add", name: "Add Purpose", element: AddPurpose },
|
|
//languge
|
|
|
|
{ path: "/languages", name: "languages", element: Languages },
|
|
{ path: "/language/add", name: "Add languages", element: AddLanguage },
|
|
{ path: "/language/edit/:id", name: "Edit languages", element: EditLanguage },
|
|
//business Type
|
|
|
|
{ path: "/business_type", name: "business", element: BusinessType },
|
|
{
|
|
path: "/business_type/add",
|
|
name: "Add business",
|
|
element: AddBusinessType,
|
|
},
|
|
{
|
|
path: "/business_type/edit/:id",
|
|
name: "Edit business",
|
|
element: EditBusinessType,
|
|
},
|
|
|
|
//purpose
|
|
|
|
{ path: "/purpose", name: "purpose", element: Purpose },
|
|
{ path: "/purpose/add", name: "Add purpose", element: AddPurpose },
|
|
{ path: "/purpose/edit/:id", name: "Edit purpose", element: EditPurpose },
|
|
|
|
//languge
|
|
{
|
|
path: "/application/name",
|
|
name: "ApplicationName",
|
|
element: ApplicationName,
|
|
},
|
|
{
|
|
path: "/copyright/message",
|
|
name: "Copyright Message",
|
|
element: CopyrightMessage,
|
|
},
|
|
|
|
{ path: "/address", name: "Address", element: Address },
|
|
{ path: "/logo", name: "Logo", element: Logo },
|
|
|
|
//Taxes
|
|
{ path: "/tax", name: "Tax Rates", element: Tax },
|
|
{ path: "/tax/add", name: "Add Tax", element: Addtax },
|
|
{ path: "/tax/edit/:id", name: "Edit Tax", element: Edittax },
|
|
// -------------------------------------------//
|
|
|
|
{
|
|
path: "/seo/request/new",
|
|
name: "seo Request",
|
|
element: AddSeoRequest,
|
|
},
|
|
//
|
|
//Affiliate Dashboard
|
|
{ path: "/affiliate/coupons", name: "Coupon", element: Coupons },
|
|
{ path: "/affiliate/affiliates", name: "Affiliate", element: Affiliates },
|
|
{
|
|
path: "/affiliate/coupons/create",
|
|
name: "Create Coupon",
|
|
element: CreateCoupon,
|
|
},
|
|
{
|
|
path: "/affiliate/affiliates/create",
|
|
name: "Create Affiliate",
|
|
element: CreateAffiliate,
|
|
},
|
|
{
|
|
path: "/affiliate/affiliates/edit/:id",
|
|
name: "Edit Affiliate",
|
|
element: EditAffiliate,
|
|
},
|
|
{
|
|
path: "/affiliate/affiliates/pay/:id",
|
|
name: "Pay Affiliate",
|
|
element: PayAffiliate,
|
|
},
|
|
{
|
|
path: "/affiliate/affiliates/history/:id",
|
|
name: "Pay Affiliate",
|
|
element: AffiliateHistory,
|
|
},
|
|
{
|
|
path: "/affiliate/coupons/edit/:id",
|
|
name: "Edit Coupon",
|
|
element: EditCoupon,
|
|
},
|
|
{
|
|
path: "/affiliate/coupons/history/:id",
|
|
name: "Edit Coupon",
|
|
element: CouponHistory,
|
|
},
|
|
//Blogs Section
|
|
{
|
|
path: "/blogs",
|
|
name: "Blogs",
|
|
element: Blogs,
|
|
},
|
|
{
|
|
path: "/blogs/create",
|
|
name: "Blogs",
|
|
element: CreateBlog,
|
|
},
|
|
{
|
|
path: "/blog/edit/:id",
|
|
name: "Blogs",
|
|
element: UpdateBlog,
|
|
},
|
|
{
|
|
path: "/blog/view/:id",
|
|
name: "Blogs",
|
|
element: ViewBlog,
|
|
},
|
|
//Charts
|
|
{
|
|
path: "/new-user-day-wise",
|
|
name: "new user day wise",
|
|
element: UserCharts,
|
|
},
|
|
{
|
|
path: "/revenue-by-product",
|
|
name: "Revenue By Product",
|
|
element: ProductrevenueCharts,
|
|
},
|
|
{
|
|
path: "/revenue-by-state",
|
|
name: "Revenue By State",
|
|
element: StateRevenueCharts,
|
|
},
|
|
{
|
|
path: "/revenue-by-city",
|
|
name: "Revenue By City",
|
|
element: CityRevenueCharts,
|
|
},
|
|
{
|
|
path: "/orders-day-wise",
|
|
name: "Orders (Day Wise)",
|
|
element: OrderdayChart,
|
|
},
|
|
{
|
|
path: "/revenue-day-wise",
|
|
name: "Revenue (Day Wise)",
|
|
element: RevenueCharts,
|
|
},
|
|
];
|
|
|
|
export default routes;
|