first commit

This commit is contained in:
DESKTOP-GBA0BK8\Admin
2023-03-25 20:44:56 -04:00
commit 97cc85c49d
711 changed files with 109164 additions and 0 deletions
@@ -0,0 +1,92 @@
.timelineList .tList {
position: relative;
padding-left: 20px;
margin-bottom: 18px;
padding-bottom: 18px;
border-bottom: 1px solid #F7FAFF;
}
.timelineList .tList:last-child {
border: none;
padding-bottom: 0;
margin-bottom: 0;
}
.timelineList .tList::before {
content: '';
background: linear-gradient(149.1deg, #99B8F3 14.61%, #177FCB 130.18%);
box-shadow: 0px 2.98686px 13.4409px rgba(126, 172, 235, 0.25);
width: 10px;
height: 10px;
border-radius: 100%;
position: absolute;
top: 4px;
left: 0;
}
.timelineList .tList::after {
content: '';
background: #F7FAFF;
width: 3px;
height: 75px;
border-radius: 5px;
position: absolute;
top: 18px;
left: 3px;
}
.timelineList .tList h4 {
font-weight: 500;
font-size: 14px;
margin: 0 0 10px;
font-family: var(--bodyFontFamily) !important;
}
.timelineList .tList .content {
display: flex;
align-items: center;
margin-bottom: 10px;
}
.timelineList .tList .content img {
margin-right: 10px;
width: 27px;
}
.timelineList .tList .content h5 {
margin: 0;
color: #5B5B98;
font-size: 13px;
font-weight: 500;
font-family: var(--bodyFontFamily) !important;
}
.timelineList .tList .date {
color: #A9A9C8;
font-size: 12px;
margin: 0;
}
/* For RTL Style */
[dir="rtl"] .timelineList .tList {
padding-left: 0;
padding-right: 20px;
}
[dir="rtl"] .timelineList .tList::before {
left: auto;
right: 0;
}
[dir="rtl"] .timelineList .tList::after {
left: auto;
right: 3px;
}
[dir="rtl"] .timelineList .tList .content img {
margin-right: 0;
margin-left: 10px;
}
/* For dark mode */
[class="dark"] .timelineList .tList {
border-bottom: 1px solid var(--borderColor);
}
[class="dark"] .timelineList .tList:last-child {
border-bottom: none;
}
[class="dark"] .timelineList .tList::after {
background: var(--borderColor);
}
[class="dark"] .timelineList .tList .content h5 {
color: var(--darkBodyTextColor) !important;
}
@@ -0,0 +1,144 @@
import React from "react";
import { Box, Typography } from "@mui/material";
import Card from "@mui/material/Card";
import Menu from "@mui/material/Menu";
import MenuItem from "@mui/material/MenuItem";
import IconButton from "@mui/material/IconButton";
import MoreHorizIcon from "@mui/icons-material/MoreHoriz";
import styles from "@/components/Dashboard/eCommerce/ActivityTimeline/ActivityTimeline.module.css";
const ActivityTimelineData = [
{
id: "1",
title: "5 Invoices have been paid",
subTitle: "Invoices have been paid to the company.",
icon: "/images/pdf-icon.png",
date: "11:47 PM Wednesday",
},
{
id: "2",
title: "8 Invoices have been paid",
subTitle: "Create a new project for client Johnson.",
icon: "/images/man.png",
date: "April, 18",
},
{
id: "3",
title: "Added new style collection",
subTitle: "Product uploaded By Nesta Technologies.",
icon: "/images/small-product-img.png",
date: "02:14 PM Today",
},
];
const ActivityTimeline = () => {
const [anchorEl, setAnchorEl] = React.useState(null);
const open = Boolean(anchorEl);
const handleClick = (event) => {
setAnchorEl(event.currentTarget);
};
const handleClose = () => {
setAnchorEl(null);
};
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px 20px",
mb: "15px",
}}
>
<Box
sx={{
display: "flex",
justifyContent: "space-between",
alignItems: "center",
borderBottom: "1px solid #EEF0F7",
paddingBottom: "10px",
mb: "20px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 16,
fontWeight: 500,
}}
>
Activity Timeline
</Typography>
<Box>
<IconButton
onClick={handleClick}
size="small"
aria-controls={open ? "account-menu" : undefined}
aria-haspopup="true"
aria-expanded={open ? "true" : undefined}
>
<MoreHorizIcon />
</IconButton>
</Box>
<Menu
anchorEl={anchorEl}
id="account-menu"
open={open}
onClose={handleClose}
onClick={handleClose}
PaperProps={{
elevation: 0,
sx: {
overflow: "visible",
filter: "drop-shadow(0px 2px 8px rgba(0,0,0,0.32))",
mt: 1.5,
"& .MuiAvatar-root": {
width: 32,
height: 32,
ml: -0.5,
mr: 1,
},
"&:before": {
content: '""',
display: "block",
position: "absolute",
top: 0,
right: 14,
width: 10,
height: 10,
bgcolor: "background.paper",
transform: "translateY(-50%) rotate(45deg)",
zIndex: 0,
},
},
}}
transformOrigin={{ horizontal: "right", vertical: "top" }}
anchorOrigin={{ horizontal: "right", vertical: "bottom" }}
>
<MenuItem>Last 15 Days</MenuItem>
<MenuItem>Last Month</MenuItem>
<MenuItem>Last Year</MenuItem>
</Menu>
</Box>
<div className={styles.timelineList}>
{ActivityTimelineData.slice(0, 3).map((timeline) => (
<div className={styles.tList} key={timeline.id}>
<h4>{timeline.title}</h4>
<div className={styles.content}>
<img src={timeline.icon} alt="Icon" />
<h5>{timeline.subTitle}</h5>
</div>
<p className={styles.date}>{timeline.date}</p>
</div>
))}
</div>
</Card>
</>
);
};
export default ActivityTimeline;
@@ -0,0 +1,131 @@
import React from "react";
import Card from "@mui/material/Card";
import { Typography } from "@mui/material";
import dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
const AudienceOverview = () => {
const series = [
{
name: "Orders",
data: [44, 55, 57, 56, 61, 58, 63, 60, 66, 70, 75, 80],
},
{
name: "Net Revenue",
data: [76, 85, 101, 98, 87, 105, 91, 114, 94, 100, 110, 96],
},
{
name: "Refunds",
data: [35, 41, 36, 26, 45, 48, 52, 53, 41, 55, 45, 60],
},
];
const options = {
chart: {
toolbar: {
show: false,
},
},
plotOptions: {
bar: {
horizontal: false,
columnWidth: "40%",
endingShape: "rounded",
borderRadius: "4",
},
},
dataLabels: {
enabled: false,
},
stroke: {
show: true,
width: 1,
colors: ["transparent"],
},
colors: ["#757FEF", "#2DB6F5", "#EE368C"],
xaxis: {
categories: [
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec",
],
labels: {
style: {
colors: "#A9A9C8",
fontSize: "12px",
},
},
},
yaxis: {
labels: {
style: {
colors: "#A9A9C8",
fontSize: "12px",
},
},
axisBorder: {
show: false,
colors: "#f6f6f7",
},
},
fill: {
opacity: 1,
},
tooltip: {
y: {
formatter: function (val) {
return "$ " + val + " Thousands";
},
},
},
legend: {
offsetY: 12,
position: "top",
horizontalAlign: "right",
},
grid: {
show: true,
borderColor: "#f6f6f7",
},
};
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px 25px 15px",
mb: "15px",
}}
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
borderBottom: "1px solid #EEF0F7",
paddingBottom: "10px",
}}
className="for-dark-bottom-border"
>
Audience Overview
</Typography>
<Chart options={options} series={series} type="bar" height={328} />
</Card>
</>
);
};
export default AudienceOverview;
@@ -0,0 +1,250 @@
import React from "react";
import { Box } from "@mui/material";
import Card from "@mui/material/Card";
import { Typography } from "@mui/material";
import InputLabel from "@mui/material/InputLabel";
import MenuItem from "@mui/material/MenuItem";
import FormControl from "@mui/material/FormControl";
import Select from "@mui/material/Select";
import Table from "@mui/material/Table";
import TableBody from "@mui/material/TableBody";
import TableCell from "@mui/material/TableCell";
import TableContainer from "@mui/material/TableContainer";
import TableRow from "@mui/material/TableRow";
import Paper from "@mui/material/Paper";
function createData(
productName,
productImg,
productId,
price,
stockAvailable,
stockTotal,
stockStatus
) {
return {
productName,
productImg,
productId,
price,
stockAvailable,
stockTotal,
stockStatus,
};
}
const rows = [
createData(
"Admas airpod x-Zon",
"/images/product5.png",
"ID: A3652",
"$289.50",
"450",
"550",
"Stock"
),
createData(
"Smart watch F8 Pro",
"/images/product6.png",
"ID: A3653",
"$189.50",
"430",
"550",
"Stock"
),
createData(
"Nord Fold ZL",
"/images/product7.png",
"ID: A3654",
"$280.50",
"410",
"550",
"Stock"
),
createData(
"Wall Clock Cimbina",
"/images/product8.png",
"ID: A3655",
"$389.50",
"420",
"550",
"Stock"
),
createData(
"Galaxo T6 Munsun",
"/images/product9.png",
"ID: A3656",
"$289.50",
"440",
"550",
"Stock"
),
createData(
"Laptop Macos Pro",
"/images/product1.png",
"ID: A3657",
"$489.50",
"340",
"550",
"Stock"
),
];
const BestSellingProducts = () => {
const [select, setSelect] = React.useState("");
const handleChange = (event) => {
setSelect(event.target.value);
};
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px",
mb: "15px",
}}
>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
borderBottom: "1px solid #EEF0F7",
paddingBottom: "10px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 16,
fontWeight: 500,
}}
>
Best Selling Products
</Typography>
<Box>
<FormControl sx={{ minWidth: 120 }} size="small">
<InputLabel id="demo-select-small">Select</InputLabel>
<Select
labelId="demo-select-small"
id="demo-select-small"
value={select}
label="Select"
onChange={handleChange}
>
<MenuItem value={0}>Today</MenuItem>
<MenuItem value={1}>Last 7 Days</MenuItem>
<MenuItem value={2}>Last Month</MenuItem>
<MenuItem value={3}>Last 12 Months</MenuItem>
<MenuItem value={4}>All Time</MenuItem>
</Select>
</FormControl>
</Box>
</Box>
<TableContainer
component={Paper}
sx={{
boxShadow: "none",
}}
>
<Table
sx={{ minWidth: 450 }}
aria-label="simple table"
className="dark-table"
>
<TableBody>
{rows.map((row) => (
<TableRow
key={row.productName}
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
>
<TableCell
style={{
borderBottom: "1px solid #F7FAFF",
padding: "15px 10px",
}}
>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<img
src={row.productImg}
alt="Product Img"
width={40}
height={40}
className="borRadius100"
/>
<Box className="ml-10px">
<Typography
sx={{
fontWeight: "500",
fontSize: "14px",
}}
as="h5"
>
{row.productName}
</Typography>
<Typography
sx={{
fontSize: "12px",
color: "#A9A9C8",
}}
>
{row.productId}
</Typography>
</Box>
</Box>
</TableCell>
<TableCell
align="right"
style={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
>
{row.price}
</TableCell>
<TableCell
align="right"
style={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13px"
}}
>
{row.stockAvailable}{" "}
<Typography
component="span"
sx={{ color: "#A9A9C8", fontSize: "12px" }}
>
{row.stockTotal}
</Typography>
</TableCell>
<TableCell
align="right"
style={{
borderBottom: "1px solid #F7FAFF",
color: "#757FEF",
fontSize: "13px",
fontWeight: "500",
}}
>
{row.stockStatus}
</TableCell>
</TableRow>
))}
</TableBody>
</Table>
</TableContainer>
</Card>
</>
);
};
export default BestSellingProducts;
+115
View File
@@ -0,0 +1,115 @@
import React from "react";
import Grid from "@mui/material/Grid";
import Box from "@mui/material/Box";
import Card from "@mui/material/Card";
import Typography from "@mui/material/Typography";
import TrendingUpIcon from "@mui/icons-material/TrendingUp";
import TrendingDownIcon from "@mui/icons-material/TrendingDown";
const FeaturesData = [
{
id: "1",
title: "$25,890",
subTitle: "Total Sales",
image: "/images/graph-icon.png",
icon: <TrendingUpIcon />,
growthText: "1.3% Up from past week",
color: "successColor",
},
{
id: "2",
title: "$25,890",
subTitle: "Total Orders",
image: "/images/work-icon.png",
icon: <TrendingUpIcon />,
growthText: "1.5% Up from past week",
color: "successColor",
},
{
id: "3",
title: "183.35M",
subTitle: "Total Customers",
image: "/images/users-icon.png",
icon: <TrendingDownIcon />,
growthText: "1.6% Up from past week",
color: "dangerColor",
},
];
const Features = () => {
return (
<>
<Grid
container
justifyContent="center"
rowSpacing={1}
columnSpacing={{ xs: 1, sm: 2, md: 2 }}
>
{FeaturesData.map((feature) => (
<Grid item xs={12} sm={6} md={4} lg={4} key={feature.id}>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px 20px",
mb: "15px",
}}
>
<Box
sx={{
display: "flex",
justifyContent: "space-between",
alignItems: "center",
mb: "15px",
}}
>
<Box>
<Typography
variant="h1"
sx={{ fontSize: 25, fontWeight: 700, mb: "5px" }}
>
{feature.title}
</Typography>
<Typography variant="p" fontSize={14}>
{feature.subTitle}
</Typography>
</Box>
<Box
sx={{
width: "62px",
height: "62px",
lineHeight: "85px",
background: "rgba(85, 112, 241, 0.12)",
borderRadius: "8px",
textAlign: "center",
}}
>
<img src={feature.image} alt="Graph" />
</Box>
</Box>
<Box>
<Typography
sx={{
fontSize: "13px",
fontWeight: "500",
display: "flex",
alignItems: "center",
}}
>
<span className={`mr-5px ${feature.color}`}>
{feature.icon}
</span>
{feature.growthText}
</Typography>
</Box>
</Card>
</Grid>
))}
</Grid>
</>
);
};
export default Features;
@@ -0,0 +1,43 @@
import React from "react";
import Box from "@mui/material/Box";
import { Typography } from "@mui/material";
const Impressions = () => {
return (
<>
<Box
sx={{
background: "#8676FF",
borderRadius: "10px",
padding: "20px 25px",
mb: '15px'
}}
className="for-dark-impressions"
>
<Typography color="#fff" fontSize="13px" mb="5px">
Impressions
</Typography>
<Typography
as="h2"
sx={{ color: "#fff", fontSize: 26, fontWeight: 700, mb: "5px" }}
>
$12,875{" "}
<Typography
component="span"
fontSize="14px"
className="successColor"
>
<i className="ri-arrow-up-s-fill"></i> 10%
</Typography>
</Typography>
<Typography color="#fff" fontSize="13px">
Compared to $21,490 last year
</Typography>
</Box>
</>
);
};
export default Impressions;
@@ -0,0 +1,62 @@
import React, { Component } from "react";
import dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
class LiveVisitsChart extends Component {
constructor(props) {
super(props);
this.state = {
series: [72, 56],
options: {
chart: {
type: "donut",
},
labels: ["Domestic", "International"],
colors: ["#757FEF", "#EE368C"],
tooltip: {
y: {
formatter: function (val) {
return "" + val + "%";
},
},
},
legend: {
offsetY: 2,
position: "bottom",
horizontalAlign: "center",
},
responsive: [
{
breakpoint: 480,
options: {
chart: {
width: 200,
},
legend: {
position: "bottom",
},
},
},
],
},
};
}
render() {
return (
<>
<Chart
options={this.state.options}
series={this.state.series}
height="315"
type="donut"
/>
</>
);
}
}
export default LiveVisitsChart;
@@ -0,0 +1,110 @@
import React from "react";
import { Box, Typography } from "@mui/material";
import Card from "@mui/material/Card";
import Menu from "@mui/material/Menu";
import MenuItem from "@mui/material/MenuItem";
import IconButton from "@mui/material/IconButton";
import MoreHorizIcon from "@mui/icons-material/MoreHoriz";
import LiveVisitsChart from "./LiveVisitsChart";
const LiveVisitsOnOurSite = () => {
const [anchorEl, setAnchorEl] = React.useState(null);
const open = Boolean(anchorEl);
const handleClick = (event) => {
setAnchorEl(event.currentTarget);
};
const handleClose = () => {
setAnchorEl(null);
};
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px",
mb: "15px",
}}
>
<Box
sx={{
display: "flex",
justifyContent: "space-between",
alignItems: "center",
borderBottom: "1px solid #EEF0F7",
paddingBottom: "10px",
mb: "20px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
Live Visits on Our Site
</Typography>
<Box>
<IconButton
onClick={handleClick}
size="small"
aria-controls={open ? "account-menu" : undefined}
aria-haspopup="true"
aria-expanded={open ? "true" : undefined}
>
<MoreHorizIcon />
</IconButton>
</Box>
<Menu
anchorEl={anchorEl}
id="account-menu"
open={open}
onClose={handleClose}
onClick={handleClose}
PaperProps={{
elevation: 0,
sx: {
overflow: "visible",
filter: "drop-shadow(0px 2px 8px rgba(0,0,0,0.32))",
mt: 1.5,
"& .MuiAvatar-root": {
width: 32,
height: 32,
ml: -0.5,
mr: 1,
},
"&:before": {
content: '""',
display: "block",
position: "absolute",
top: 0,
right: 14,
width: 10,
height: 10,
bgcolor: "background.paper",
transform: "translateY(-50%) rotate(45deg)",
zIndex: 0,
},
},
}}
transformOrigin={{ horizontal: "right", vertical: "top" }}
anchorOrigin={{ horizontal: "right", vertical: "bottom" }}
>
<MenuItem sx={{ fontSize: '14px' }}>Last 15 Days</MenuItem>
<MenuItem sx={{ fontSize: '14px' }}>Last Month</MenuItem>
<MenuItem sx={{ fontSize: '14px' }}>Last Year</MenuItem>
</Menu>
</Box>
{/* Live Visits Chart */}
<LiveVisitsChart />
</Card>
</>
);
};
export default LiveVisitsOnOurSite;
@@ -0,0 +1,68 @@
.newCustomerList {
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid #F7FAFF;
padding-bottom: 17px;
margin-bottom: 17px;
}
.newCustomerList:last-child {
border-bottom: none;
padding-bottom: 0;
margin-bottom: 0;
}
.leftContent {
display: flex;
align-items: center;
}
.leftContent img {
border-radius: 100%;
width: 38px;
height: 38px;
margin-right: 10px;
}
.leftContent h3 {
margin: 0;
font-size: 13px;
}
.leftContent p {
margin: 0;
color: #A9A9C8;
font-size: 12px;
}
.rightContent {
display: flex;
align-items: center;
}
.price {
color: #5B5B98;
font-size: 13px;
margin-right: 10px;
}
.order {
background: rgba(117, 127, 239, 0.1);
border-radius: 13.5px;
color: #757FEF;
font-weight: 500;
font-size: 11px;
padding: 5px 10px;
}
/* For RTL Style */
[dir="rtl"] .leftContent img {
margin-right: 0;
margin-left: 10px;
}
[dir="rtl"] .price {
margin-right: 0;
margin-left: 10px;
}
/* For dark mode */
[class="dark"] .newCustomerList {
border-bottom: 1px solid var(--borderColor);
}
[class="dark"] .newCustomerList:last-child {
border-bottom: none;
}
@@ -0,0 +1,164 @@
import React from "react";
import { Box, Typography } from "@mui/material";
import Card from "@mui/material/Card";
import Menu from "@mui/material/Menu";
import MenuItem from "@mui/material/MenuItem";
import IconButton from "@mui/material/IconButton";
import MoreHorizIcon from "@mui/icons-material/MoreHoriz";
import styles from "@/components/Dashboard/eCommerce/NewCustomers/NewCustomers.module.css"
const NewCustomersData = [
{
id: "1",
image: "/images/user2.png",
name: "Jordan Stevenson",
userName: "@jstevenson5c",
price: "$289.50",
order: "15 Orders",
},
{
id: "2",
image: "/images/user3.png",
name: "Lydia Reese",
userName: "@lreese3b",
price: "$289.50",
order: "15 Orders",
},
{
id: "3",
image: "/images/user4.png",
name: "Easin Arafat",
userName: "@jstevenson5c",
price: "$289.50",
order: "15 Orders",
},
{
id: "4",
image: "/images/user5.png",
name: "Easin Arafat",
userName: "@jstevenson5c",
price: "$289.50",
order: "15 Orders",
}
];
const NewCustomers = () => {
const [anchorEl, setAnchorEl] = React.useState(null);
const open = Boolean(anchorEl);
const handleClick = (event) => {
setAnchorEl(event.currentTarget);
};
const handleClose = () => {
setAnchorEl(null);
};
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px 20px",
mb: "15px",
}}
>
<Box
sx={{
display: "flex",
justifyContent: "space-between",
alignItems: "center",
borderBottom: "1px solid #EEF0F7",
paddingBottom: "10px",
mb: "20px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
New Customers
</Typography>
<Box>
<IconButton
onClick={handleClick}
size="small"
aria-controls={open ? "account-menu" : undefined}
aria-haspopup="true"
aria-expanded={open ? "true" : undefined}
>
<MoreHorizIcon />
</IconButton>
</Box>
<Menu
anchorEl={anchorEl}
id="account-menu"
open={open}
onClose={handleClose}
onClick={handleClose}
PaperProps={{
elevation: 0,
sx: {
overflow: "visible",
filter: "drop-shadow(0px 2px 8px rgba(0,0,0,0.32))",
mt: 1.5,
"& .MuiAvatar-root": {
width: 32,
height: 32,
ml: -0.5,
mr: 1,
},
"&:before": {
content: '""',
display: "block",
position: "absolute",
top: 0,
right: 14,
width: 10,
height: 10,
bgcolor: "background.paper",
transform: "translateY(-50%) rotate(45deg)",
zIndex: 0,
},
},
}}
transformOrigin={{ horizontal: "right", vertical: "top" }}
anchorOrigin={{ horizontal: "right", vertical: "bottom" }}
>
<MenuItem sx={{ fontSize: '14px' }}>Last 15 Days</MenuItem>
<MenuItem sx={{ fontSize: '14px' }}>Last Month</MenuItem>
<MenuItem sx={{ fontSize: '14px' }}>Last Year</MenuItem>
</Menu>
</Box>
<Box>
{NewCustomersData.slice(0, 4).map((customer) => (
<div className={styles.newCustomerList} key={customer.id}>
<div className={styles.leftContent}>
<img src={customer.image} alt="user" />
<div>
<h3>{customer.name}</h3>
<p>{customer.userName}</p>
</div>
</div>
<div className={styles.rightContent}>
<div className={styles.price}>
{customer.price}
</div>
<div className={styles.order}>
{customer.order}
</div>
</div>
</div>
))}
</Box>
</Card>
</>
);
};
export default NewCustomers;
@@ -0,0 +1,67 @@
import React, { Component } from 'react';
import dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
class RatingsChart extends Component {
constructor(props) {
super(props);
this.state = {
series: [44, 55, 41, 17, 15],
options: {
chart: {
width: 300,
},
colors: ["#757FEF", "#00B69B", "#2DB6F5", "#EE368C", "#FFBC2B"],
plotOptions: {
pie: {
startAngle: -90,
endAngle: 270
}
},
dataLabels: {
enabled: false
},
fill: {
type: 'gradient',
},
legend: {
show: false,
formatter: function(val, opts) {
return val + " - " + opts.w.globals.series[opts.seriesIndex]
}
},
responsive: [{
breakpoint: 480,
options: {
chart: {
width: 200
},
legend: {
position: 'bottom'
}
}
}]
},
};
}
render() {
return (
<>
<Chart
options={this.state.options}
series={this.state.series}
height={150}
type="donut"
/>
</>
);
}
}
export default RatingsChart;
@@ -0,0 +1,90 @@
import React from "react";
import Box from "@mui/material/Box";
import Card from "@mui/material/Card";
import Typography from "@mui/material/Typography";
import StarBorderIcon from "@mui/icons-material/StarBorder";
import RatingsChart from "./RatingsChart";
const Ratings = () => {
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px",
mb: "15px",
}}
>
<Box
sx={{
display: "flex",
justifyContent: "space-between",
alignItems: "center",
}}
>
<Box>
<Typography
variant="h1"
sx={{ fontSize: 18, fontWeight: 500, mb: "10px" }}
>
Ratings
</Typography>
<Typography
sx={{
fontSize: '13px',
fontWeight: 500,
color: "#A9A9C8",
mb: "10px",
}}
>
YEAR OF 2022
</Typography>
<Typography
sx={{
fontSize: 24,
fontWeight: 700,
color: "#260944",
mb: "5px",
}}
as="h3"
>
8.14k{" "}
<Typography
component="span"
sx={{ fontSize: 13, color: "#A9A9C8" }}
>
Review
</Typography>
</Typography>
<Typography
sx={{ fontSize: '12px', fontWeight: 500, color: "#5B5B98" }}
>
<StarBorderIcon
sx={{ position: "relative", top: "6px", color: "#FA7E00" }}
/>{" "}
4.5{" "}
<Typography
component="span"
sx={{ fontWeight: 500, fontSize: '13px', ml: "2px" }}
className="primaryColor"
>
+15.6%
</Typography>{" "}
From previous period
</Typography>
</Box>
<Box>
<RatingsChart />
</Box>
</Box>
</Card>
</>
);
};
export default Ratings;
@@ -0,0 +1,678 @@
import * as React from "react";
import { Box } from "@mui/material";
import Card from "@mui/material/Card";
import { Typography } from "@mui/material";
import InputLabel from "@mui/material/InputLabel";
import MenuItem from "@mui/material/MenuItem";
import FormControl from "@mui/material/FormControl";
import Select from "@mui/material/Select";
import PropTypes from "prop-types";
import { useTheme } from "@mui/material/styles";
import Table from "@mui/material/Table";
import TableHead from "@mui/material/TableHead";
import TableBody from "@mui/material/TableBody";
import TableCell from "@mui/material/TableCell";
import TableContainer from "@mui/material/TableContainer";
import TableFooter from "@mui/material/TableFooter";
import TablePagination from "@mui/material/TablePagination";
import TableRow from "@mui/material/TableRow";
import Paper from "@mui/material/Paper";
import IconButton from "@mui/material/IconButton";
import FirstPageIcon from "@mui/icons-material/FirstPage";
import KeyboardArrowLeft from "@mui/icons-material/KeyboardArrowLeft";
import KeyboardArrowRight from "@mui/icons-material/KeyboardArrowRight";
import LastPageIcon from "@mui/icons-material/LastPage";
function RecentOrder(props) {
const theme = useTheme();
const { count, page, rowsPerPage, onPageChange } = props;
const handleFirstPageButtonClick = (event) => {
onPageChange(event, 0);
};
const handleBackButtonClick = (event) => {
onPageChange(event, page - 1);
};
const handleNextButtonClick = (event) => {
onPageChange(event, page + 1);
};
const handleLastPageButtonClick = (event) => {
onPageChange(event, Math.max(0, Math.ceil(count / rowsPerPage) - 1));
};
return (
<Box sx={{ flexShrink: 0, ml: 2.5 }}>
<IconButton
onClick={handleFirstPageButtonClick}
disabled={page === 0}
aria-label="first page"
>
{theme.direction === "rtl" ? <LastPageIcon /> : <FirstPageIcon />}
</IconButton>
<IconButton
onClick={handleBackButtonClick}
disabled={page === 0}
aria-label="previous page"
>
{theme.direction === "rtl" ? (
<KeyboardArrowRight />
) : (
<KeyboardArrowLeft />
)}
</IconButton>
<IconButton
onClick={handleNextButtonClick}
disabled={page >= Math.ceil(count / rowsPerPage) - 1}
aria-label="next page"
>
{theme.direction === "rtl" ? (
<KeyboardArrowLeft />
) : (
<KeyboardArrowRight />
)}
</IconButton>
<IconButton
onClick={handleLastPageButtonClick}
disabled={page >= Math.ceil(count / rowsPerPage) - 1}
aria-label="last page"
>
{theme.direction === "rtl" ? <FirstPageIcon /> : <LastPageIcon />}
</IconButton>
</Box>
);
}
RecentOrder.propTypes = {
count: PropTypes.number.isRequired,
onPageChange: PropTypes.func.isRequired,
page: PropTypes.number.isRequired,
rowsPerPage: PropTypes.number.isRequired,
};
function createData(
orderID,
productImg,
productTitle,
customer,
price,
vendor,
date,
status,
badgeClass,
rating
) {
return {
orderID,
productImg,
productTitle,
customer,
price,
vendor,
date,
status,
badgeClass,
rating,
};
}
const rows = [
createData(
"#SK258",
"/images/product1.png",
"Laptop Macos Pro",
"Colin Firth",
"$289.50",
"Boetic Fashion",
"2021-12-19",
"Pending",
"primaryBadge",
"5.0 (61 votes)"
),
createData(
"#SK259",
"/images/product2.png",
"Smart Camera XD6",
"Wade Dave",
"$189.50",
"Aronic Conver",
"2021-12-19",
"Out of Stock",
"dangerBadge",
"5.0 (61 votes)"
),
createData(
"#SK260",
"/images/product3.png",
"Pixi 8 Wireless Airphone",
"Seth Riley",
"$250.50",
"Lotu Arnich",
"2021-12-19",
"Delivered",
"successBadge",
"5.0 (61 votes)"
),
createData(
"#SK261",
"/images/product4.png",
"Jebble Smart Watch",
"Gilbert Dan",
"$289.50",
"Zoetic Fashion",
"2021-12-19",
"Pending",
"primaryBadge",
"5.0 (61 votes)"
),
createData(
"#SK262",
"/images/product5.png",
"Admas Airpod x-Zon",
"Joshua Glen",
"$289.50",
"Airpod",
"2021-12-19",
"Pending",
"primaryBadge",
"5.0 (61 votes)"
),
createData(
"#SK263",
"/images/product6.png",
"Smart Satch F8 Pro",
"Lewis Milton",
"$289.50",
"Smart Satch",
"2021-12-19",
"Pending",
"primaryBadge",
"5.0 (61 votes)"
),
createData(
"#SK264",
"/images/product7.png",
"Nord Fold ZL",
"Liam Ethan",
"$289.50",
"Nord",
"2021-12-19",
"Pending",
"primaryBadge",
"5.0 (61 votes)"
),
createData(
"#SK265",
"/images/product8.png",
"Wall Clock Cimbina",
"Ramon Miles",
"$289.50",
"Clock",
"2021-12-19",
"Pending",
"primaryBadge",
"5.0 (61 votes)"
),
createData(
"#SK266",
"/images/product9.png",
"Galaxo T6 Munsun",
"Brian Roberto",
"$289.50",
"Smart Phone",
"2021-12-19",
"Pending",
"primaryBadge",
"5.0 (61 votes)"
),
createData(
"#SK267",
"/images/product1.png",
"Laptop Macos Pro",
"Colin Firth",
"$289.50",
"Boetic Fashion",
"2021-12-19",
"Pending",
"primaryBadge",
"5.0 (61 votes)"
),
createData(
"#SK268",
"/images/product2.png",
"Smart Camera XD6",
"Wade Dave",
"$189.50",
"Aronic Conver",
"2021-12-19",
"Out of Stock",
"dangerBadge",
"5.0 (61 votes)"
),
createData(
"#SK269",
"/images/product3.png",
"Pixi 8 Wireless Airphone",
"Seth Riley",
"$250.50",
"Lotu Arnich",
"2021-12-19",
"Delivered",
"successBadge",
"5.0 (61 votes)"
),
createData(
"#SK270",
"/images/product4.png",
"Jebble Smart Watch",
"Gilbert Dan",
"$289.50",
"Zoetic Fashion",
"2021-12-19",
"Pending",
"primaryBadge",
"5.0 (61 votes)"
),
createData(
"#SK271",
"/images/product5.png",
"Admas Airpod x-Zon",
"Joshua Glen",
"$289.50",
"Airpod",
"2021-12-19",
"Pending",
"primaryBadge",
"5.0 (61 votes)"
),
createData(
"#SK272",
"/images/product6.png",
"Smart Satch F8 Pro",
"Lewis Milton",
"$289.50",
"Smart Satch",
"2021-12-19",
"Pending",
"primaryBadge",
"5.0 (61 votes)"
),
createData(
"#SK273",
"/images/product7.png",
"Nord Fold ZL",
"Liam Ethan",
"$289.50",
"Nord",
"2021-12-19",
"Pending",
"primaryBadge",
"5.0 (61 votes)"
),
createData(
"#SK274",
"/images/product8.png",
"Wall Clock Cimbina",
"Ramon Miles",
"$289.50",
"Clock",
"2021-12-19",
"Pending",
"primaryBadge",
"5.0 (61 votes)"
),
createData(
"#SK275",
"/images/product9.png",
"Galaxo T6 Munsun",
"Brian Roberto",
"$289.50",
"Smart Phone",
"2021-12-19",
"Pending",
"primaryBadge",
"5.0 (61 votes)"
),
].sort((a, b) => (a.orderID < b.orderID ? -1 : 1));
export default function RecentOrders() {
// Select
const [select, setSelect] = React.useState("");
const handleChange = (event) => {
setSelect(event.target.value);
};
// Table
const [page, setPage] = React.useState(0);
const [rowsPerPage, setRowsPerPage] = React.useState(6);
// Avoid a layout jump when reaching the last page with empty rows.
const emptyRows =
page > 0 ? Math.max(0, (1 + page) * rowsPerPage - rows.length) : 0;
const handleChangePage = (event, newPage) => {
setPage(newPage);
};
const handleChangeRowsPerPage = (event) => {
setRowsPerPage(parseInt(event.target.value, 10));
setPage(0);
};
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px 25px 10px",
mb: "15px",
}}
>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
paddingBottom: "10px",
}}
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
Recent Orders
</Typography>
<Box>
<FormControl sx={{ minWidth: 120 }} size="small">
<InputLabel id="demo-select-small" sx={{ fontSize: "14px" }}>
Select
</InputLabel>
<Select
labelId="demo-select-small"
id="demo-select-small"
value={select}
label="Select"
onChange={handleChange}
sx={{ fontSize: "14px" }}
>
<MenuItem value={0} sx={{ fontSize: "14px" }}>
Today
</MenuItem>
<MenuItem value={1} sx={{ fontSize: "14px" }}>
Last 7 Days
</MenuItem>
<MenuItem value={2} sx={{ fontSize: "14px" }}>
Last Month
</MenuItem>
<MenuItem value={3}>Last 12 Months</MenuItem>
<MenuItem value={4} sx={{ fontSize: "14px" }}>
All Time
</MenuItem>
</Select>
</FormControl>
</Box>
</Box>
<TableContainer
component={Paper}
sx={{
boxShadow: "none",
}}
>
<Table
sx={{ minWidth: 950 }}
aria-label="custom pagination table"
className="dark-table"
>
<TableHead sx={{ background: "#F7FAFF" }}>
<TableRow>
<TableCell
sx={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
padding: "15px 10px",
}}
>
Order ID
</TableCell>
<TableCell
sx={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
padding: "15px 10px",
}}
>
Product
</TableCell>
<TableCell
sx={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
padding: "15px 10px",
}}
>
Customer
</TableCell>
<TableCell
align="center"
sx={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
padding: "15px 10px",
}}
>
Price
</TableCell>
<TableCell
align="center"
sx={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
padding: "15px 10px",
}}
>
Vendor
</TableCell>
<TableCell
align="center"
sx={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
padding: "15px 10px",
}}
>
Date
</TableCell>
<TableCell
align="center"
sx={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
padding: "15px 10px",
}}
>
Status
</TableCell>
<TableCell
align="right"
sx={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
padding: "15px 10px",
}}
>
Rating
</TableCell>
</TableRow>
</TableHead>
<TableBody>
{(rowsPerPage > 0
? rows.slice(
page * rowsPerPage,
page * rowsPerPage + rowsPerPage
)
: rows
).map((row) => (
<TableRow key={row.orderID}>
<TableCell
sx={{
width: 100,
fontWeight: "500",
borderBottom: "1px solid #F7FAFF",
padding: "8px 10px",
fontSize: "13px"
}}
>
{row.orderID}
</TableCell>
<TableCell
sx={{
width: 250,
borderBottom: "1px solid #F7FAFF",
padding: "8px 10px",
}}
>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<img
src={row.productImg}
alt="Product Img"
width={50}
className="borderRadius10"
/>
<Typography
sx={{
fontWeight: "500",
fontSize: "13px",
}}
className="ml-10px"
>
{row.productTitle}
</Typography>
</Box>
</TableCell>
<TableCell
sx={{
borderBottom: "1px solid #F7FAFF",
padding: "8px 10px",
fontSize: "13px"
}}
>
{row.customer}
</TableCell>
<TableCell
align="center"
sx={{
borderBottom: "1px solid #F7FAFF",
padding: "8px 10px",
fontSize: "13px"
}}
>
{row.price}
</TableCell>
<TableCell
align="center"
sx={{
borderBottom: "1px solid #F7FAFF",
padding: "8px 10px",
fontSize: "13px"
}}
>
{row.vendor}
</TableCell>
<TableCell
align="center"
sx={{
borderBottom: "1px solid #F7FAFF",
padding: "8px 10px",
fontSize: "13px"
}}
>
{row.date}
</TableCell>
<TableCell
align="center"
sx={{
fontWeight: 500,
borderBottom: "1px solid #F7FAFF",
fontSize: "11px",
padding: "8px 10px",
}}
>
<span className={row.badgeClass}>{row.status}</span>
</TableCell>
<TableCell
align="right"
sx={{
borderBottom: "1px solid #F7FAFF",
padding: "8px 10px",
fontSize: "13px"
}}
>
{row.rating}
</TableCell>
</TableRow>
))}
{emptyRows > 0 && (
<TableRow style={{ height: 53 * emptyRows }}>
<TableCell
colSpan={8}
style={{ borderBottom: "1px solid #F7FAFF" }}
/>
</TableRow>
)}
</TableBody>
<TableFooter>
<TableRow>
<TablePagination
rowsPerPageOptions={[5, 10, 25, { label: "All", value: -1 }]}
colSpan={8}
count={rows.length}
rowsPerPage={rowsPerPage}
page={page}
SelectProps={{
inputProps: {
"aria-label": "rows per page",
},
native: true,
}}
onPageChange={handleChangePage}
onRowsPerPageChange={handleChangeRowsPerPage}
ActionsComponent={RecentOrder}
style={{ borderBottom: "none" }}
/>
</TableRow>
</TableFooter>
</Table>
</TableContainer>
</Card>
</>
);
}
@@ -0,0 +1,135 @@
import React from "react";
import { Box } from "@mui/material";
import Card from "@mui/material/Card";
import { Typography } from "@mui/material";
import dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
import InputLabel from "@mui/material/InputLabel";
import MenuItem from "@mui/material/MenuItem";
import FormControl from "@mui/material/FormControl";
import Select from "@mui/material/Select";
const RevenuStatus = () => {
// Select Form
const [select, setSelect] = React.useState("");
const handleChange = (event) => {
setSelect(event.target.value);
};
// Chart
const series = [
{
name: "income",
data: [50, 48, 47, 48, 50, 48, 50, 48, 50, 48, 48],
},
];
const options = {
chart: {
toolbar: {
show: false,
},
},
dataLabels: {
enabled: false,
},
stroke: {
curve: "smooth",
},
colors: ["#757FEF"],
xaxis: {
categories: [
"1 Jan",
"2 Jan",
"3 Jan",
"4 Jan",
"5 Jan",
"6 Jan",
"7 Jan",
"8 Jan",
"9 Jan",
"10 Jan",
"11 Jan",
"12 Jan",
],
labels: {
style: {
colors: "#A9A9C8",
fontSize: "12px",
},
},
},
grid: {
show: true,
borderColor: "#f6f6f7",
},
tooltip: {
x: {
format: "dd/MM/yy HH:mm",
},
y: {
formatter: function (val) {
return "$" + val + "k";
},
},
},
};
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px 25px 10px",
mb: "15px",
}}
>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
borderBottom: "1px solid #EEF0F7",
paddingBottom: "10px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
Revenu Status
</Typography>
<Box>
<FormControl sx={{ minWidth: 120 }} size="small">
<InputLabel id="demo-select-small" sx={{ fontSize: '14px' }}>Select</InputLabel>
<Select
labelId="demo-select-small"
id="demo-select-small"
value={select}
label="Select"
onChange={handleChange}
sx={{ fontSize: '14px' }}
>
<MenuItem value={0} sx={{ fontSize: '14px' }}>Today</MenuItem>
<MenuItem value={1} sx={{ fontSize: '14px' }}>Last 7 Days</MenuItem>
<MenuItem value={2} sx={{ fontSize: '14px' }}>Last Month</MenuItem>
<MenuItem value={3} sx={{ fontSize: '14px' }}>Last 12 Months</MenuItem>
<MenuItem value={4} sx={{ fontSize: '14px' }}>All Time</MenuItem>
</Select>
</FormControl>
</Box>
</Box>
<Chart options={options} series={series} type="area" height={285} />
</Card>
</>
);
};
export default RevenuStatus;
@@ -0,0 +1,59 @@
import React, { Component } from "react";
import dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
class SalesByCountriesChart extends Component {
constructor(props) {
super(props);
this.state = {
series: [75, 40, 65, 80],
options: {
labels: ["Canada", "Russia", "Greenland", "USA"],
colors: ["#757FEF", "#2DB6F5", "#EE368C", "#00B69B"],
tooltip: {
y: {
formatter: function (val) {
return "" + val + "%";
},
},
},
legend: {
offsetY: 2,
position: "bottom",
horizontalAlign: "center",
},
responsive: [
{
breakpoint: 480,
options: {
chart: {
width: 200,
},
legend: {
position: "bottom",
},
},
},
],
},
};
}
render() {
return (
<>
<Chart
options={this.state.options}
series={this.state.series}
height="320"
type="pie"
/>
</>
);
}
}
export default SalesByCountriesChart;
@@ -0,0 +1,208 @@
import React from "react";
import { Box, Typography } from "@mui/material";
import Card from "@mui/material/Card";
import Menu from "@mui/material/Menu";
import MenuItem from "@mui/material/MenuItem";
import IconButton from "@mui/material/IconButton";
import MoreHorizIcon from "@mui/icons-material/MoreHoriz";
import { styled } from "@mui/material/styles";
import LinearProgress, {
linearProgressClasses,
} from "@mui/material/LinearProgress";
import SalesByCountriesChart from "./SalesByCountriesChart";
const BorderLinearProgress = styled(LinearProgress)(({ theme }) => ({
height: 5,
borderRadius: 5,
[`&.${linearProgressClasses.colorPrimary}`]: {
backgroundColor:
theme.palette.grey[theme.palette.mode === "light" ? 200 : 800],
},
[`& .${linearProgressClasses.bar}`]: {
borderRadius: 5,
backgroundColor: theme.palette.mode === "light" ? "#757FEF" : "#F7FAFF",
},
}));
const SalesByCountries = () => {
// Dropdown
const [anchorEl, setAnchorEl] = React.useState(null);
const open = Boolean(anchorEl);
const handleClick = (event) => {
setAnchorEl(event.currentTarget);
};
const handleClose = () => {
setAnchorEl(null);
};
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px",
mb: "15px",
}}
>
<Box
sx={{
display: "flex",
justifyContent: "space-between",
alignItems: "center",
borderBottom: "1px solid #EEF0F7",
paddingBottom: "10px",
mb: "20px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
Sales by Countries
</Typography>
<Box>
<IconButton
onClick={handleClick}
size="small"
aria-controls={open ? "account-menu" : undefined}
aria-haspopup="true"
aria-expanded={open ? "true" : undefined}
>
<MoreHorizIcon />
</IconButton>
</Box>
<Menu
anchorEl={anchorEl}
id="account-menu"
open={open}
onClose={handleClose}
onClick={handleClose}
PaperProps={{
elevation: 0,
sx: {
overflow: "visible",
filter: "drop-shadow(0px 2px 8px rgba(0,0,0,0.32))",
mt: 1.5,
"& .MuiAvatar-root": {
width: 32,
height: 32,
ml: -0.5,
mr: 1,
},
"&:before": {
content: '""',
display: "block",
position: "absolute",
top: 0,
right: 14,
width: 10,
height: 10,
bgcolor: "background.paper",
transform: "translateY(-50%) rotate(45deg)",
zIndex: 0,
},
},
}}
transformOrigin={{ horizontal: "right", vertical: "top" }}
anchorOrigin={{ horizontal: "right", vertical: "bottom" }}
>
<MenuItem sx={{ fontSize: "14px" }}>Last 15 Days</MenuItem>
<MenuItem sx={{ fontSize: "14px" }}>Last Month</MenuItem>
<MenuItem sx={{ fontSize: "14px" }}>Last Year</MenuItem>
</Menu>
</Box>
{/* SalesByCountriesChart */}
<SalesByCountriesChart />
<Box sx={{ mt: "20px" }}>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
mb: "10px",
}}
>
<Typography
as="h3"
sx={{ fontWeight: 500, fontSize: 14, color: "#5B5B98" }}
>
Canada
</Typography>
<Typography component="div">75%</Typography>
</Box>
<BorderLinearProgress variant="determinate" value={75} />
</Box>
<Box sx={{ mt: "20px" }}>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
mb: "10px",
}}
>
<Typography
as="h3"
sx={{ fontWeight: 500, fontSize: 14, color: "#5B5B98" }}
>
Russia
</Typography>
<Typography component="div">40%</Typography>
</Box>
<BorderLinearProgress variant="determinate" value={40} />
</Box>
<Box sx={{ mt: "20px" }}>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
mb: "10px",
}}
>
<Typography
as="h3"
sx={{ fontWeight: 500, fontSize: 14, color: "#5B5B98" }}
>
Greenland
</Typography>
<Typography component="div">65%</Typography>
</Box>
<BorderLinearProgress variant="determinate" value={65} />
</Box>
<Box sx={{ mt: "20px" }}>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
mb: "10px",
}}
>
<Typography
as="h3"
sx={{ fontWeight: 500, fontSize: 14, color: "#5B5B98" }}
>
USA
</Typography>
<Typography component="div">80%</Typography>
</Box>
<BorderLinearProgress variant="determinate" value={80} />
</Box>
</Card>
</>
);
};
export default SalesByCountries;
@@ -0,0 +1,448 @@
import * as React from "react";
import { Box } from "@mui/material";
import Card from "@mui/material/Card";
import { Typography } from "@mui/material";
import PropTypes from "prop-types";
import { useTheme } from "@mui/material/styles";
import Table from "@mui/material/Table";
import TableHead from "@mui/material/TableHead";
import TableBody from "@mui/material/TableBody";
import TableCell from "@mui/material/TableCell";
import TableContainer from "@mui/material/TableContainer";
import TableFooter from "@mui/material/TableFooter";
import TablePagination from "@mui/material/TablePagination";
import TableRow from "@mui/material/TableRow";
import Paper from "@mui/material/Paper";
import IconButton from "@mui/material/IconButton";
import FirstPageIcon from "@mui/icons-material/FirstPage";
import KeyboardArrowLeft from "@mui/icons-material/KeyboardArrowLeft";
import KeyboardArrowRight from "@mui/icons-material/KeyboardArrowRight";
import LastPageIcon from "@mui/icons-material/LastPage";
function TeamMembersLists(props) {
const theme = useTheme();
const { count, page, rowsPerPage, onPageChange } = props;
const handleFirstPageButtonClick = (event) => {
onPageChange(event, 0);
};
const handleBackButtonClick = (event) => {
onPageChange(event, page - 1);
};
const handleNextButtonClick = (event) => {
onPageChange(event, page + 1);
};
const handleLastPageButtonClick = (event) => {
onPageChange(event, Math.max(0, Math.ceil(count / rowsPerPage) - 1));
};
return (
<Box sx={{ flexShrink: 0, ml: 2.5 }}>
<IconButton
onClick={handleFirstPageButtonClick}
disabled={page === 0}
aria-label="first page"
>
{theme.direction === "rtl" ? <LastPageIcon /> : <FirstPageIcon />}
</IconButton>
<IconButton
onClick={handleBackButtonClick}
disabled={page === 0}
aria-label="previous page"
>
{theme.direction === "rtl" ? (
<KeyboardArrowRight />
) : (
<KeyboardArrowLeft />
)}
</IconButton>
<IconButton
onClick={handleNextButtonClick}
disabled={page >= Math.ceil(count / rowsPerPage) - 1}
aria-label="next page"
>
{theme.direction === "rtl" ? (
<KeyboardArrowLeft />
) : (
<KeyboardArrowRight />
)}
</IconButton>
<IconButton
onClick={handleLastPageButtonClick}
disabled={page >= Math.ceil(count / rowsPerPage) - 1}
aria-label="last page"
>
{theme.direction === "rtl" ? <FirstPageIcon /> : <LastPageIcon />}
</IconButton>
</Box>
);
}
TeamMembersLists.propTypes = {
count: PropTypes.number.isRequired,
onPageChange: PropTypes.func.isRequired,
page: PropTypes.number.isRequired,
rowsPerPage: PropTypes.number.isRequired,
};
function createData(
userImg,
name,
userName,
email,
roleIcon,
role,
status,
badgeClass
) {
return {
userImg,
name,
userName,
email,
roleIcon,
role,
status,
badgeClass,
};
}
const rows = [
createData(
"/images/user1.png",
"Jordan Stevenson",
"@jstevenson5c",
"jordansteven@admash.com",
"ri-macbook-line",
"Admin",
"Active",
"successBadge"
),
createData(
"/images/user2.png",
"Lucile Young",
"@lyoung4a",
"lucile@admash.com",
"ri-edit-line",
"Editor",
"Active",
"successBadge"
),
createData(
"/images/user3.png",
"Francis Frank",
"@ffrank7e",
"frank43@admash.com",
"ri-shield-user-fill",
"Maintainer",
"Inactive",
"dangerBadge"
),
createData(
"/images/user4.png",
"Phoebe Patterson",
"@ppatterson2g",
"phoebe57@admash.com",
"ri-settings-2-line",
"Author",
"Active",
"successBadge"
),
createData(
"/images/user5.png",
"Wade Dave",
"@wadedave",
"wadedave1@admash.com",
"ri-edit-line",
"Editor",
"Active",
"successBadge"
),
createData(
"/images/user6.png",
"Seth Ivan",
"@sethivan",
"sethivansds@admash.com",
"ri-edit-line",
"Editor",
"Active",
"successBadge"
),
createData(
"/images/user7.png",
"Riley",
"@riley",
"riley@admash.com",
"ri-edit-line",
"Editor",
"Active",
"successBadge"
),
createData(
"/images/user8.png",
"Gilbert",
"@gilbert",
"gilbert@admash.com",
"ri-edit-line",
"Editor",
"Active",
"successBadge"
),
createData(
"/images/user9.png",
"Jorge",
"@jorge",
"jorge@admash.com",
"ri-edit-line",
"Editor",
"Active",
"successBadge"
),
createData(
"/images/user10.png",
"Dan Brian",
"@danbrian",
"danbrian@admash.com",
"ri-edit-line",
"Editor",
"Active",
"successBadge"
),
createData(
"/images/user11.png",
"Roberto",
"@roberto",
"roberto@admash.com",
"ri-edit-line",
"Editor",
"Active",
"successBadge"
),
createData(
"/images/user12.png",
"Ramon",
"@ramon",
"ramon@admash.com",
"ri-edit-line",
"Editor",
"Active",
"successBadge"
),
createData(
"/images/user13.png",
"Miles Liam",
"@milesliam",
"milesliam@admash.com",
"ri-edit-line",
"Editor",
"Active",
"successBadge"
),
createData(
"/images/user14.png",
"Nathaniel",
"@nathaniel",
"nathaniel@admash.com",
"ri-edit-line",
"Editor",
"Active",
"successBadge"
),
].sort((a, b) => (a.name < b.name ? -1 : 1));
export default function TeamMembersList() {
const [page, setPage] = React.useState(0);
const [rowsPerPage, setRowsPerPage] = React.useState(5);
// Avoid a layout jump when reaching the last page with empty rows.
const emptyRows =
page > 0 ? Math.max(0, (1 + page) * rowsPerPage - rows.length) : 0;
const handleChangePage = (event, newPage) => {
setPage(newPage);
};
const handleChangeRowsPerPage = (event) => {
setRowsPerPage(parseInt(event.target.value, 10));
setPage(0);
};
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px 25px 10px",
mb: "15px",
}}
>
<Box
sx={{
paddingBottom: "10px",
}}
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
Team Members List
</Typography>
</Box>
<TableContainer
component={Paper}
sx={{
boxShadow: "none",
}}
>
<Table
sx={{ minWidth: 600 }}
aria-label="custom pagination table"
className="dark-table"
>
<TableHead sx={{ background: "#F7FAFF" }}>
<TableRow>
<TableCell style={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}>
User
</TableCell>
<TableCell style={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}>
Email
</TableCell>
<TableCell
align="center"
style={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
>
Role
</TableCell>
<TableCell
align="center"
style={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
>
Status
</TableCell>
</TableRow>
</TableHead>
<TableBody>
{(rowsPerPage > 0
? rows.slice(
page * rowsPerPage,
page * rowsPerPage + rowsPerPage
)
: rows
).map((row) => (
<TableRow key={row.name}>
<TableCell
style={{ width: 250, borderBottom: "1px solid #F7FAFF" }}
>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<img
src={row.userImg}
alt="Product Img"
width={40}
height={40}
className="borRadius100"
/>
<Box className="ml-10px">
<Typography
sx={{
fontWeight: "500",
fontSize: "14px",
}}
as="h5"
>
{row.name}
</Typography>
<Typography
sx={{
fontSize: "12px",
color: "#A9A9C8",
}}
>
{row.userName}
</Typography>
</Box>
</Box>
</TableCell>
<TableCell
style={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13px",
}}
>
{row.email}
</TableCell>
<TableCell
align="center"
style={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px", }}
>
<i className={row.roleIcon} /> {row.role}
</TableCell>
<TableCell
align="center"
style={{
fontWeight: 500,
borderBottom: "1px solid #F7FAFF",
fontSize: "12px",
}}
>
<span className={row.badgeClass}>{row.status}</span>
</TableCell>
</TableRow>
))}
{emptyRows > 0 && (
<TableRow style={{ height: 53 * emptyRows }}>
<TableCell
colSpan={4}
style={{ borderBottom: "1px solid #F7FAFF" }}
/>
</TableRow>
)}
</TableBody>
<TableFooter>
<TableRow>
<TablePagination
rowsPerPageOptions={[5, 10, 25, { label: "All", value: -1 }]}
colSpan={4}
count={rows.length}
rowsPerPage={rowsPerPage}
page={page}
SelectProps={{
inputProps: {
"aria-label": "rows per page",
},
native: true,
}}
onPageChange={handleChangePage}
onRowsPerPageChange={handleChangeRowsPerPage}
ActionsComponent={TeamMembersLists}
style={{ borderBottom: "none" }}
/>
</TableRow>
</TableFooter>
</Table>
</TableContainer>
</Card>
</>
);
}
@@ -0,0 +1,102 @@
import React from "react";
import { Box } from "@mui/material";
import Card from "@mui/material/Card";
import { Typography } from "@mui/material";
import dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
const VisitsByDay = () => {
const series = [
{
name: "Visits This Weak",
data: [80, 50, 30, 40, 100, 20, 50],
},
{
name: "Visits Last Weak",
data: [20, 30, 40, 80, 20, 80, 100],
},
];
const options = {
chart: {
toolbar: {
show: false,
},
dropShadow: {
enabled: true,
blur: 1,
left: 1,
top: 1,
},
},
stroke: {
width: 2,
},
colors: ["#2DB6F5", "#E289F2"],
fill: {
opacity: 0.1,
},
markers: {
size: 5,
},
xaxis: {
categories: [
"Monday",
"Tuesday",
"Wendsday",
"Thursday",
"Friday",
"Saturday",
"Sunday",
],
},
};
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px",
mb: "15px",
}}
>
<Box
sx={{
display: "flex",
justifyContent: "space-between",
alignItems: "center",
borderBottom: "1px solid #EEF0F7",
paddingBottom: "10px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
Visits by Day
</Typography>
<Typography
as="p"
sx={{
fontSize: 14,
}}
>
Total 248.5k Visits
</Typography>
</Box>
<Chart options={options} series={series} type="radar" height={520} />
</Card>
</>
);
};
export default VisitsByDay;