Skip to content
Extraits de code Groupes Projets
Valider 8cba00a8 rédigé par Mohamed Lemine BAILLAHI's avatar Mohamed Lemine BAILLAHI
Parcourir les fichiers

Merge branch 'feature/MYD-343' into 'develop'

add BestSalesProduct

See merge request !115
parents 5fe4a0be dd37ac07
Branches
1 requête de fusion!115add BestSalesProduct
Pipeline #2112 réussi avec les étapes
in 4 minutes et 32 secondes
import HomeView from '@/shared/sections/home/Sales Manager/view';
// ----------------------------------------------------------------------
export const metadata = {
title: "Dashboard: Sales Manager",
};
export default function SupplierListPage() {
return( <HomeView />);
}
......@@ -17,6 +17,7 @@ export const paths = {
// DASHBOARD
dashboard: {
root: ROOTS.DASHBOARD,
product: {
root: `${ROOTS.DASHBOARD}/product`,
new: `${ROOTS.DASHBOARD}/product/new`,
......
'use client';
import Box from '@mui/material/Box';
import { alpha } from '@mui/material/styles';
import Container from '@mui/material/Container';
import Typography from '@mui/material/Typography';
import { useSettingsContext } from '@/shared/components/settings';
import AllStatisticsView from "@/shared/sections/home/statistics/All-Statistics-View";
import OrderList from "@/shared/sections/home/view/order-list-view";
import CustomBreadcrumbs from '@/components/custom-breadcrumbs/custom-breadcrumbs';
export default function HomeView() {
const settings = useSettingsContext();
return (
<Container maxWidth={settings.themeStretch ? false : 'xl'}>
<CustomBreadcrumbs
heading="Gestionnaire de vente "
links={[
{
name: "dashboard",
},
{
name: "Home",
},
{
name: "Gestionnaire de vente ",
},
]}
sx={{
mb: { xs: 3, md: 5 },
}}
/>
<AllStatisticsView />
<OrderList/>
</Container>
);
}
......@@ -15,7 +15,8 @@ import OrderCommandChart from "./OrderCommandChart";
import AnalyticsRefundReason from "./analytics-refund-reason";
import AppWidgetSummary from "./statistics-widget-summary";
import { useTheme } from "@mui/material/styles";
import BestSalesProduct from "../../cart/statistics/Best-salesProduct";
import { _BestSalesProduct } from "@/shared/_mock";
export default function AllStatisticsView() {
const settings = useSettingsContext();
......@@ -224,7 +225,18 @@ export default function AllStatisticsView() {
},
}}
/>
<Grid xs={12} md={6} lg={8}>
<BestSalesProduct
title="Les Produits les plus vendus"
tableData={_BestSalesProduct}
tableLabels={[
{ id: "name", label: "Produits" },
{ id: "category", label: "Catégorie" },
{ id: "totalAmount", label: "Chiffre D'affaire", align: "right" },
{ id: "rank", label: "Rank", align: "right" },
]}
/>
</Grid>
</Container>
);
......
......@@ -16,8 +16,7 @@ export default function HomeView() {
<Container maxWidth={settings.themeStretch ? false : 'xl'}>
<CustomBreadcrumbs
heading="Gestionnaire de vente
"
heading="Gestionnaire de vente "
links={[
{
name: "dashboard",
......@@ -51,7 +50,7 @@ export default function HomeView() {
}}
>
<img
src="assets/image.png" // Remplacez cette URL par le lien de votre image
src="assets/image.png"
alt="Example"
style={{ width: '100%', height: '100%', objectFit: 'cover' }}
/>
......
0% ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter