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,90 @@
.timelineList .tList {
position: relative;
padding-left: 20px;
margin-bottom: 9px;
padding-bottom: 9px;
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 8px;
}
.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;
}
.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 .content h5 {
color: var(--darkBodyTextColor);
}
[class="dark"] .timelineList .tList::after {
background: var(--borderColor);
}
@@ -0,0 +1,151 @@
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/Analytics/ActivityTimeline/ActivityTimeline.module.css";
const ActivityTimelineData = [
{
id: "1",
title: "8 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 John",
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",
},
{
id: "4",
title: "Brust opened new showcase",
subTitle: "Product uploaded By Nesta Technologies",
icon: "/images/small-product-img2.png",
date: "5 Min Ago",
},
];
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: "15px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
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, 4).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,112 @@
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 Chart from "chart.js/auto";
import { Line } from "react-chartjs-2";
const labels = ["Sat", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri"];
const data = {
labels: labels,
datasets: [
{
label: "New Visitors",
backgroundColor: "#6F52ED",
borderColor: "#6F52ED",
data: [30, 40, 30, 80, 65, 70, 30],
},
{
label: "Unique Visitors",
backgroundColor: "#2DB6F5",
borderColor: "#2DB6F5",
data: [55, 60, 55, 45, 35, 55, 60],
},
{
label: "Previous Visitors",
backgroundColor: "#F765A3",
borderColor: "#F765A3",
data: [45, 30, 40, 30, 20, 30, 40],
},
],
};
const options = {
plugins: {
legend: {
labels: {
color: '#5B5B98'
}
},
}
}
const AudienceOverview = () => {
// Select Form
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",
marginBottom: "15px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
Audience Overview
</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>
<Line data={data} options={options} height={100}/>
</Card>
</>
);
};
export default AudienceOverview;
@@ -0,0 +1,548 @@
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 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 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 BrowserUsedAndTrafficReport(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>
);
}
BrowserUsedAndTrafficReport.propTypes = {
count: PropTypes.number.isRequired,
onPageChange: PropTypes.func.isRequired,
page: PropTypes.number.isRequired,
rowsPerPage: PropTypes.number.isRequired,
};
function createData(
channel,
sessions,
sessionsProgress,
prevPeriod,
prevPeriodProgress,
transactions,
transactionsProgress,
change,
iconName,
badgeClass
) {
return {
channel,
sessions,
sessionsProgress,
prevPeriod,
prevPeriodProgress,
transactions,
transactionsProgress,
change,
iconName,
badgeClass,
};
}
const rows = [
createData(
"Organic search",
"10853",
"(52%)",
"566",
"(52%)",
"566",
"(52%)",
"52.80%",
"ri-arrow-up-s-fill",
"successBadge"
),
createData(
"Direct",
"10844",
"(50%)",
"666",
"(50%)",
"766",
"(50%)",
"55.99%",
"ri-arrow-up-s-fill",
"successBadge"
),
createData(
"Referal",
"20844",
"(60%)",
"754",
"(60%)",
"899",
"(60%)",
"60.99%",
"ri-arrow-down-s-fill",
"dangerBadge"
),
createData(
"Email",
"15844",
"(50%)",
"764",
"(50%)",
"755",
"(50%)",
"50.99%",
"ri-arrow-up-s-fill",
"successBadge"
),
createData(
"Social",
"12844",
"(50%)",
"764",
"(50%)",
"755",
"(50%)",
"50.99%",
"ri-arrow-up-s-fill",
"successBadge"
),
createData(
"Chrome",
"5853",
"(52%)",
"466",
"(52%)",
"566",
"(52%)",
"52.80%",
"ri-arrow-up-s-fill",
"successBadge"
),
createData(
"Safari",
"2844",
"(50%)",
"766",
"(50%)",
"666",
"(50%)",
"55.00%",
"ri-arrow-up-s-fill",
"successBadge"
),
createData(
"Edge",
"1844",
"(60%)",
"454",
"(60%)",
"399",
"(60%)",
"60.00%",
"ri-arrow-down-s-fill",
"dangerBadge"
),
createData(
"Firefox",
"15844",
"(55%)",
"564",
"(55%)",
"455",
"(55%)",
"55.00%",
"ri-arrow-up-s-fill",
"successBadge"
),
createData(
"Opera",
"11844",
"(50%)",
"864",
"(50%)",
"655",
"(50%)",
"50.00%",
"ri-arrow-up-s-fill",
"successBadge"
),
].sort((a, b) => (a.channel < b.channel ? -1 : 1));
const BrowserUsedAndTrafficReports = () => {
const [anchorEl, setAnchorEl] = React.useState(null);
const open = Boolean(anchorEl);
const handleClick = (event) => {
setAnchorEl(event.currentTarget);
};
const handleClose = () => {
setAnchorEl(null);
};
// Table
const [page, setPage] = React.useState(0);
const [rowsPerPage, setRowsPerPage] = React.useState(4);
// 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 20px 15px",
mb: "15px",
}}
>
<Box
sx={{
display: "flex",
justifyContent: "space-between",
alignItems: "center",
paddingBottom: "10px",
}}
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
Browser Used & Traffic Reports
</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>
<TableContainer
component={Paper}
sx={{
boxShadow: "none",
}}
>
<Table
sx={{ minWidth: 550 }}
aria-label="custom pagination table"
className="dark-table"
>
<TableHead sx={{ background: "#F7FAFF" }}>
<TableRow>
<TableCell
style={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
}}
>
Channel
</TableCell>
<TableCell
style={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
}}
>
Sessions
</TableCell>
<TableCell
align="center"
style={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
}}
>
Prev.Period
</TableCell>
<TableCell
align="center"
style={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
}}
>
Transactions
</TableCell>
<TableCell
align="center"
style={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
}}
>
% Change
</TableCell>
</TableRow>
</TableHead>
<TableBody>
{(rowsPerPage > 0
? rows.slice(
page * rowsPerPage,
page * rowsPerPage + rowsPerPage
)
: rows
).map((row) => (
<TableRow key={row.channel}>
<TableCell
style={{
fontWeight: "500",
fontSize: "13px",
borderBottom: "1px solid #F7FAFF",
color: "#757FEF",
}}
>
{row.channel}
</TableCell>
<TableCell
style={{
borderBottom: "1px solid #F7FAFF",
color: "#5B5B98",
fontWeight: "500",
fontSize: "13px",
}}
>
{row.sessions}{" "}
<Typography
as="span"
sx={{ color: "#A9A9C8", fontSize: "13px" }}
>
{row.sessionsProgress}
</Typography>
</TableCell>
<TableCell
align="center"
style={{
borderBottom: "1px solid #F7FAFF",
color: "#5B5B98",
fontWeight: "500",
fontSize: "13px",
}}
>
{row.prevPeriod}{" "}
<Typography
as="span"
sx={{ color: "#A9A9C8", fontSize: "13px" }}
>
{row.prevPeriodProgress}
</Typography>
</TableCell>
<TableCell
align="center"
style={{
borderBottom: "1px solid #F7FAFF",
color: "#5B5B98",
fontWeight: "500",
fontSize: "13px",
}}
>
{row.transactions}{" "}
<Typography
as="span"
sx={{ color: "#A9A9C8", fontSize: "13px" }}
>
{row.transactionsProgress}
</Typography>
</TableCell>
<TableCell
align="center"
style={{
fontWeight: 500,
borderBottom: "1px solid #F7FAFF",
fontSize: "12px",
}}
>
<span className={row.badgeClass}>
{row.change}{" "}
<i
className={row.iconName}
style={{
fontSize: "15px",
position: "relative",
top: "4px",
lineHeight: "1",
fontWight: "bold",
}}
></i>
</span>
</TableCell>
</TableRow>
))}
{emptyRows > 0 && (
<TableRow style={{ height: 53 * emptyRows }}>
<TableCell
colSpan={5}
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={BrowserUsedAndTrafficReport}
style={{ borderBottom: "none" }}
/>
</TableRow>
</TableFooter>
</Table>
</TableContainer>
</Card>
</>
);
};
export default BrowserUsedAndTrafficReports;
+114
View File
@@ -0,0 +1,114 @@
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",
subTitle: "Enrolled Courses",
title: "24k",
image: "/images/users-icon.png",
icon: <TrendingUpIcon />,
growthText: "9.5% new session",
color: "successColor",
},
{
id: "2",
subTitle: "Active Courses",
title: "17",
image: "/images/graph-icon.png",
icon: <TrendingDownIcon />,
growthText: "7.5% vs. previous month",
color: "dangerColor",
},
{
id: "3",
subTitle: "Completed Courses",
title: "64",
image: "/images/work-icon.png",
icon: <TrendingUpIcon />,
growthText: "3.5% bounce rate",
color: "successColor",
},
];
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: "30px 20px 20px",
mb: "15px",
}}
>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<Box
sx={{
width: "58px",
height: "58px",
lineHeight: "85px",
background: "rgba(85, 112, 241, 0.12)",
borderRadius: "8px",
textAlign: "center",
}}
className="mr-15px"
>
<img src={feature.image} alt="Icon" />
</Box>
<Box>
<Typography variant="p" sx={{ fontSize: "13px", mb: "5px" }}>
{feature.subTitle}
</Typography>
<Typography
variant="h1"
sx={{ fontSize: 28, fontWeight: 700 }}
>
{feature.title}
</Typography>
</Box>
</Box>
<Box mt={2}>
<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,65 @@
.infoList {
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid #F7FAFF;
margin-bottom: 13px;
padding-bottom: 13px;
position: relative;
padding-left: 15px;
}
.infoList::before {
content: '';
background: #00B69B;
box-shadow: 0px 2.98686px 13.4409px rgba(126, 172, 235, 0.25);
width: 10px;
height: 10px;
border-radius: 100%;
position: absolute;
left: 0;
top: 5px;
}
.infoList:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
.infoList p {
font-size: 13px;
margin: 0;
}
.infoList .rightContent {
display: flex;
align-items: center;
justify-content: space-between;
}
.infoList h5 {
margin: 0 15px 0 0;
font-size: 12px;
color: #5B5B98;
}
.infoList .rightContent i {
position: relative;
top: 2px;
}
/* For RTL Style */
[dir="rtl"] .infoList {
padding-left: 0;
padding-right: 15px;
}
[dir="rtl"] .infoList::before {
left: auto;
right: 0;
}
[dir="rtl"] .infoList h5 {
margin: 0 0 0 15px;
}
/* For dark mode */
[class="dark"] .infoList {
border-bottom: 1px solid var(--borderColor);
}
[class="dark"] .infoList:last-child {
border-bottom: none;
}
@@ -0,0 +1,105 @@
import React, { Component } from "react";
import { Box, Typography } from "@mui/material";
import Card from "@mui/material/Card";
import dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
import styles from "@/components/Dashboard/Analytics/Gender/Gender.module.css";
class Gender extends Component {
constructor(props) {
super(props);
this.state = {
series: [50],
options: {
plotOptions: {
radialBar: {
hollow: {
size: "50%",
},
track: {
background: "rgba(0, 182, 155, 0.5)",
},
dataLabels: {
name: {
show: false,
},
value: {
offsetY: 4,
color: "#00B69B",
fontSize: "16px",
fontWeight: "500",
},
},
},
},
fill: {
colors: ["#00B69B"],
},
},
};
}
render() {
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px 20px",
mb: "15px",
}}
>
<Box
sx={{
borderBottom: "1px solid #EEF0F7",
paddingBottom: "10px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
Gender
</Typography>
</Box>
<Chart
options={this.state.options}
series={this.state.series}
type="radialBar"
/>
<>
<div className={styles.infoList}>
<p>Male</p>
<h5>45,347</h5>
<div className={styles.rightContent}>
<p>
<i className="ri-bar-chart-fill"></i> 70%
</p>
</div>
</div>
<div className={styles.infoList}>
<p>Female</p>
<h5>20,738</h5>
<div className={styles.rightContent}>
<p>
<i className="ri-bar-chart-fill"></i> 30%
</p>
</div>
</div>
</>
</Card>
</>
);
}
}
export default Gender;
@@ -0,0 +1,66 @@
.infoList {
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid #F7FAFF;
margin-bottom: 13px;
padding-bottom: 13px;
position: relative;
padding-left: 15px;
}
.infoList::before {
content: '';
background: #757FEF;
box-shadow: 0px 2.98686px 13.4409px rgba(126, 172, 235, 0.25);
width: 10px;
height: 10px;
border-radius: 100%;
position: absolute;
left: 0;
top: 5px;
}
.infoList:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
.infoList p {
font-size: 13px;
margin: 0;
}
.infoList .rightContent {
display: flex;
align-items: center;
justify-content: space-between;
}
.infoList h5 {
margin: 0 15px 0 0;
font-size: 12px;
color: #5B5B98;
}
.infoList .rightContent i {
position: relative;
top: 2px;
}
/* For RTL Style */
[dir="rtl"] .infoList {
padding-left: 0;
padding-right: 15px;
}
[dir="rtl"] .infoList::before {
left: auto;
right: 0;
}
[dir="rtl"] .infoList h5 {
margin: 0 0 0 15px;
}
/* For dark mode */
[class="dark"] .infoList {
border-bottom: 1px solid var(--borderColor);
}
[class="dark"] .infoList:last-child {
border-bottom: none;
}
@@ -0,0 +1,105 @@
import React, { Component } from "react";
import { Box, Typography } from "@mui/material";
import Card from "@mui/material/Card";
import dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
import styles from "@/components/Dashboard/Analytics/NewReturning/NewReturning.module.css";
class NewReturning extends Component {
constructor(props) {
super(props);
this.state = {
series: [60],
options: {
plotOptions: {
radialBar: {
hollow: {
size: "50%",
},
track: {
background: "rgba(117, 127, 239, 0.5)",
},
dataLabels: {
name: {
show: false,
},
value: {
offsetY: 4,
color: "#757FEF",
fontSize: "16px",
fontWeight: "500",
},
},
},
},
fill: {
colors: ["#757FEF"],
},
},
};
}
render() {
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px 20px",
mb: "15px",
}}
>
<Box
sx={{
borderBottom: "1px solid #EEF0F7",
paddingBottom: "10px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
New vs. Returning
</Typography>
</Box>
<Chart
options={this.state.options}
series={this.state.series}
type="radialBar"
/>
<>
<div className={styles.infoList}>
<p>New</p>
<h5>36,868</h5>
<div className={styles.rightContent}>
<p>
<i className="ri-bar-chart-fill"></i> 75%
</p>
</div>
</div>
<div className={styles.infoList}>
<p>Returning</p>
<h5>9,217</h5>
<div className={styles.rightContent}>
<p>
<i className="ri-bar-chart-fill"></i> 25%
</p>
</div>
</div>
</>
</Card>
</>
);
}
}
export default NewReturning;
@@ -0,0 +1,75 @@
import React, { Component } from "react";
import dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
import styles from "@/components/Dashboard/Analytics/Profile/ImpressionShare.module.css"
class ImpressionShare extends Component {
constructor(props) {
super(props);
this.state = {
series: [45],
options: {
chart: {
type: "radialBar",
offsetY: -20,
sparkline: {
enabled: true,
},
},
plotOptions: {
radialBar: {
startAngle: -110,
endAngle: 110,
track: {
background: "#e7e7e7",
strokeWidth: "90%",
margin: 5,
},
dataLabels: {
name: {
show: false,
},
value: {
offsetY: -2,
fontSize: "15px",
fontWeight: "500",
color: '#5B5B98'
},
},
},
},
grid: {
padding: {
top: -10,
},
},
fill: {
colors: ["#00B69B"],
},
labels: ["Average Results"],
},
};
}
render() {
return (
<>
<div className={styles.chartBox}>
<Chart
options={this.state.options}
series={this.state.series}
type="radialBar"
height={100}
/>
<h4>Excellent</h4>
<h3>Impression Share</h3>
</div>
</>
);
}
}
export default ImpressionShare;
@@ -0,0 +1,33 @@
.chartBox {
text-align: center;
top: 12px;
position: relative;
}
.chartBox h4 {
margin: 0;
color: #00B69B;
font-weight: 500;
font-size: 11px;
line-height: 14px;
position: absolute;
bottom: 30px;
left: 0;
right: 0;
}
.chartBox h3 {
margin: 0;
color: #5B5B98;
font-weight: 500;
font-size: 12px;
position: relative;
bottom: 7px;
}
@media only screen and (max-width: 767px) {
.chartBox h4 {
bottom: 24px;
}
.chartBox h3 {
font-size: 10px;
}
}
@@ -0,0 +1,74 @@
.profileBox {
background-color: #fff;
border-radius: 10px;
position: relative;
margin-bottom: 15px;
}
.header {
background: #EAEDFB;
border-radius: 10px 10px 0px 0px;
padding: 30px 15px 50px;
position: relative;
}
.headerContent {
max-width: 300px;
position: relative;
z-index: 1;
}
.header h1 {
margin: 0 0 10px;
font-size: 18px;
color: #757FEF;
font-weight: 500;
}
.header p {
margin: 0;
font-size: 14px;
color: #757FEF;
}
.header img {
position: absolute;
bottom: 0;
right: 0;
}
.profileInfoContent {
padding: 0 15px 30px;
}
.profileInfo {
position: relative;
}
.profileInfo img {
position: absolute;
top: -30px;
width: 60px;
height: 60px;
border: 5px solid #fff;
border-radius: 100%;
box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}
.profileInfo h3 {
margin: 0 0 5px;
font-size: 14px;
padding-top: 45px;
}
.profileInfo p {
margin: 0;
font-size: 13px;
}
@media only screen and (max-width: 767px) {
.profileInfo h3 {
font-size: 12px;
}
.profileInfo p {
font-size: 11px;
}
}
/* For dark mode */
[class="dark"] .profileBox {
background-color: var(--cardBg);
}
[class="dark"] .header {
background: #161515;
}
@@ -0,0 +1,70 @@
import React from "react";
import Grid from "@mui/material/Grid";
import Link from "@mui/material/Link";
import styles from "@/components/Dashboard/Analytics/Profile/Profile.module.css";
import ImpressionShare from "./ImpressionShare";
const Profile = () => {
return (
<>
<div className={styles.profileBox}>
<div className={styles.header}>
<div className={styles.headerContent}>
<h1>Welcome to admash Dashboard!</h1>
<p>
You have done 68% 😎 more sales today. Check your new badge in
your profile.
</p>
</div>
<img src="/images/working-on-table.png" alt="Working on table" />
</div>
<div className={styles.profileInfoContent}>
<Grid
container
alignItems="flex-end"
rowSpacing={1}
columnSpacing={{ xs: 1, sm: 2, md: 2 }}
>
<Grid item xs={4} md={4} lg={4}>
<div className={styles.profileInfo}>
<img src="/images/profile.png" alt="Profile" />
<h3>Andrew Burns</h3>
<p>Programmer</p>
</div>
</Grid>
<Grid item xs={4} md={4} lg={4}>
<Link
href="#"
underline="none"
sx={{
background: "#757FEF",
borderRadius: "4px",
color: "#fff !important",
fontSize: "10px",
padding: "4px 8px",
display: "inline-block",
position: "relative",
top: "-5px",
}}
>
View Profile{" "}
<i
className="ri-arrow-right-line"
style={{ position: "relative", top: "2px" }}
></i>
</Link>
</Grid>
<Grid item xs={4} md={4} lg={4}>
<ImpressionShare />
</Grid>
</Grid>
</div>
</div>
</>
);
};
export default Profile;
@@ -0,0 +1,95 @@
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 RevenueReport = () => {
const series = [
{
name: "Earning",
data: [80, 50, 30, 40, 100, 20, 35, 75, 45, 55, 65, 85,],
},
{
name: "Expenses",
data: [20, 30, 40, 80, 20, 80, 15, 32, 70, 38, 60, 76,],
},
];
const options = {
chart: {
toolbar: {
show: false,
},
dropShadow: {
enabled: true,
blur: 1,
left: 1,
top: 1,
},
},
stroke: {
width: 2,
},
colors: ["#757FEF", "#FF8A65"],
fill: {
opacity: 0.1,
},
markers: {
size: 5,
},
xaxis: {
categories: [
"January",
"Fubruary",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December",
],
},
};
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px",
mb: "15px",
}}
>
<Box
sx={{
borderBottom: "1px solid #EEF0F7",
paddingBottom: "10px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
Revenue Report
</Typography>
</Box>
<Chart options={options} series={series} type="radar" height={522} />
</Card>
</>
);
};
export default RevenueReport;
@@ -0,0 +1,174 @@
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 {
BarChart,
Bar,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
Legend,
ResponsiveContainer,
} from "recharts";
const data = [
{
date: "01 Jan",
cost: 4000,
sales: 2400,
revenue: 2400,
},
{
date: "02 Jan",
cost: 3000,
sales: 1398,
revenue: 2210,
},
{
date: "03 Jan",
cost: 2000,
sales: 9800,
revenue: 2290,
},
{
date: "04 Jan",
cost: 2780,
sales: 3908,
revenue: 2000,
},
{
date: "05 Jan",
cost: 1890,
sales: 4800,
revenue: 2181,
},
{
date: "06 Jan",
cost: 2390,
sales: 3800,
revenue: 2500,
},
{
date: "07 Jan",
cost: 3490,
sales: 4300,
revenue: 2100,
},
];
const SalesAnalytics = () => {
// Select Form
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",
marginBottom: "15px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
Sales Analytics
</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>
<div style={{ width: '100%', height: 272 }}>
<ResponsiveContainer>
<BarChart
width={500}
height={300}
data={data}
margin={{
top: 0,
right: 0,
left: 0,
bottom: 0,
}}
barSize={50}
>
<CartesianGrid strokeDasharray="3 3" />
<XAxis dataKey="date" fontSize={12} stroke="#A9A9C8" />
<YAxis fontSize={12} stroke="#A9A9C8" />
<Tooltip wrapperStyle={{ fontSize: "13px" }} />
<Legend
wrapperStyle={{ textTransform: "capitalize", fontSize: "13px" }}
/>
<Bar dataKey="cost" stackId="a" fill="#165BAA" />
<Bar dataKey="sales" stackId="a" fill="#A155B9" />
<Bar dataKey="revenue" stackId="a" fill="#F765A3" />
</BarChart>
</ResponsiveContainer>
</div>
</Card>
</>
);
};
export default SalesAnalytics;
@@ -0,0 +1,174 @@
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 dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
const SessionsByCountries = () => {
const [anchorEl, setAnchorEl] = React.useState(null);
const open = Boolean(anchorEl);
const handleClick = (event) => {
setAnchorEl(event.currentTarget);
};
const handleClose = () => {
setAnchorEl(null);
};
// Chart
const series = [
{
data: [1200, 930, 748, 670, 540, 580, 690, 1100, 1200, 1380],
},
];
const options = {
chart: {
toolbar: {
show: false,
},
},
plotOptions: {
bar: {
borderRadius: 4,
horizontal: true,
},
},
dataLabels: {
enabled: false,
},
colors: ["#757FEF"],
xaxis: {
categories: [
"United State",
"China",
"Canada",
"Indonesia",
"Russia",
"Bangladesh",
"Brazil",
"United Kingdom",
"Vietnam",
"Germany",
],
labels: {
style: {
colors: "#5B5B98",
fontSize: "12px",
},
},
},
yaxis: {
labels: {
style: {
colors: "#5B5B98",
fontSize: "11px",
},
},
axisBorder: {
show: false,
colors: "#f6f6f7",
},
},
fill: {
opacity: 1,
},
grid: {
show: true,
borderColor: "#f6f6f7",
},
};
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px 20px 10px",
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,
}}
>
Sessions 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>
<Chart options={options} series={series} type="bar" height={500} />
</Card>
</>
);
};
export default SessionsByCountries;
@@ -0,0 +1,65 @@
.infoList {
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid #F7FAFF;
margin-bottom: 13px;
padding-bottom: 13px;
position: relative;
padding-left: 15px;
}
.infoList::before {
content: '';
background: #FF8A54;
box-shadow: 0px 2.98686px 13.4409px rgba(126, 172, 235, 0.25);
width: 10px;
height: 10px;
border-radius: 100%;
position: absolute;
left: 0;
top: 5px;
}
.infoList:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
.infoList p {
font-size: 13px;
margin: 0;
}
.infoList .rightContent {
display: flex;
align-items: center;
justify-content: space-between;
}
.infoList h5 {
margin: 0 15px 0 0;
font-size: 12px;
color: #5B5B98;
}
.infoList .rightContent i {
position: relative;
top: 2px;
}
/* For RTL Style */
[dir="rtl"] .infoList {
padding-left: 0;
padding-right: 15px;
}
[dir="rtl"] .infoList::before {
left: auto;
right: 0;
}
[dir="rtl"] .infoList h5 {
margin: 0 0 0 15px;
}
/* For dark mode */
[class="dark"] .infoList {
border-bottom: 1px solid var(--borderColor);
}
[class="dark"] .infoList:last-child {
border-bottom: none;
}
@@ -0,0 +1,105 @@
import React, { Component } from "react";
import { Box, Typography } from "@mui/material";
import Card from "@mui/material/Card";
import dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
import styles from "@/components/Dashboard/Analytics/SessionsDevice/SessionsDevice.module.css";
class SessionsDevice extends Component {
constructor(props) {
super(props);
this.state = {
series: [70],
options: {
plotOptions: {
radialBar: {
hollow: {
size: "50%",
},
track: {
background: "rgba(255, 138, 84, 0.5)",
},
dataLabels: {
name: {
show: false,
},
value: {
offsetY: 4,
color: "#FF8A54",
fontSize: "16px",
fontWeight: "500",
},
},
},
},
fill: {
colors: ["#FF8A54"],
},
},
};
}
render() {
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px 20px",
mb: "15px",
}}
>
<Box
sx={{
borderBottom: "1px solid #EEF0F7",
paddingBottom: "10px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
Sessions Device
</Typography>
</Box>
<Chart
options={this.state.options}
series={this.state.series}
type="radialBar"
/>
<>
<div className={styles.infoList}>
<p>Mobile</p>
<h5>15,684</h5>
<div className={styles.rightContent}>
<p>
<i className="ri-bar-chart-fill"></i> 50%
</p>
</div>
</div>
<div className={styles.infoList}>
<p>Laptop</p>
<h5>36,868</h5>
<div className={styles.rightContent}>
<p>
<i className="ri-bar-chart-fill"></i> 60%
</p>
</div>
</div>
</>
</Card>
</>
);
}
}
export default SessionsDevice;
@@ -0,0 +1,151 @@
.terminalsBox {
position: relative;
}
.monthlyEarning {
background: #757FEF;
mix-blend-mode: multiply;
box-shadow: 0px 109px 80px rgb(132 13 226 / 14%), 0px 45.5376px 33.4221px rgb(132 13 226 / 10%), 0px 24.3466px 17.869px rgb(132 13 226 / 8%), 0px 13.6485px 10.0172px rgb(132 13 226 / 7%), 0px 7.24861px 5.32008px rgb(132 13 226 / 6%), 0px 3.01631px 2.21381px rgb(132 13 226 / 4%);
width: 200px;
height: 200px;
text-align: center;
border-radius: 100%;
margin-left: auto;
margin-right: auto;
padding-top: 75px;
position: relative;
right: -55px;
top: 40px;
}
.monthlyEarning h3 {
margin: 0 0 10px;
line-height: 1;
color: #fff !important;
font-weight: 700;
font-size: 24px;
}
.monthlyEarning p {
margin: 0;
line-height: 1;
color: #fff;
font-size: 14px;
}
.usersEarning {
background: #F765A3;
mix-blend-mode: multiply;
opacity: 0.8;
box-shadow: 0px 100px 80px rgb(255 43 43 / 15%), 0px 46.233px 36.9864px rgb(255 43 43 / 11%), 0px 26.4535px 21.1628px rgb(255 43 43 / 9%), 0px 16.0571px 12.8457px rgb(255 43 43 / 8%), 0px 9.67509px 7.74008px rgb(255 43 43 / 7%), 0px 5.38772px 4.31018px rgb(255 43 43 / 6%), 0px 2.31722px 1.85378px rgb(255 43 43 / 4%);
width: 130px;
height: 130px;
text-align: center;
border-radius: 100%;
padding-top: 40px;
left: -160px;
right: 0;
top: 130px;
margin: auto;
position: absolute;
}
.usersEarning h3 {
margin: 0 0 10px;
line-height: 1;
color: #fff !important;
font-weight: 700;
font-size: 24px;
}
.usersEarning p {
margin: 0;
line-height: 1;
color: #fff;
font-size: 14px;
}
.inactiveEarning {
top: 210px;
background: #FF8A54;
mix-blend-mode: multiply;
width: 85px;
height: 85px;
text-align: center;
border-radius: 100%;
padding-top: 25px;
position: absolute;
left: -22px;
right: 0;
margin: auto;
}
.inactiveEarning h3 {
margin: 0 0 5px;
line-height: 1;
color: #fff !important;
font-weight: 700;
font-size: 18px;
}
.inactiveEarning p {
margin: 0;
line-height: 1;
color: #fff;
font-size: 13px;
}
.terminalsBox ul {
margin: 133px 0 0;
padding: 0;
list-style: none;
text-align: center;
}
.terminalsBox ul li {
display: inline-block;
position: relative;
font-size: 13px;
padding-left: 20px;
margin-right: 15px;
}
.terminalsBox ul li:last-child {
margin-right: 0;
}
.terminalsBox ul li::before {
content: '';
position: absolute;
border-radius: 5px;
width: 13px;
height: 13px;
left: 0;
top: 2px;
}
.terminalsBox ul li:nth-child(1)::before {
background: #757FEF;
}
.terminalsBox ul li:nth-child(2)::before {
background: #F765A3;
}
.terminalsBox ul li:nth-child(3)::before {
background: #FF8A54;
}
/* For RTL Style */
[dir="rtl"] .terminalsBox ul li {
padding-left: 0;
padding-right: 20px;
margin-right: 0;
margin-left: 15px;
}
[dir="rtl"] .terminalsBox ul li:last-child {
margin-left: 0;
}
[dir="rtl"] .terminalsBox ul li::before {
left: auto;
right: 0;
}
/* For dark mode */
[class="dark"] .monthlyEarning {
mix-blend-mode: initial;
}
[class="dark"] .usersEarning {
mix-blend-mode: initial;
}
[class="dark"] .inactiveEarning {
mix-blend-mode: initial;
}
@@ -0,0 +1,62 @@
import React from "react";
import { Box, Typography } from "@mui/material";
import Card from "@mui/material/Card";
import styles from "@/components/Dashboard/Analytics/Terminals/Terminals.module.css";
const Terminals = () => {
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px 20px",
mb: "15px",
}}
>
<Box
sx={{
borderBottom: "1px solid #EEF0F7",
paddingBottom: "10px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
Terminals
</Typography>
</Box>
<div className={styles.terminalsBox}>
<div className={styles.monthlyEarning}>
<h3>$27632</h3>
<p>Monthly Earning</p>
</div>
<div className={styles.usersEarning}>
<h3>82.9k</h3>
<p>Users</p>
</div>
<div className={styles.inactiveEarning}>
<h3>0.9k</h3>
<p>Inactive</p>
</div>
<ul>
<li>Monthly Earning</li>
<li>Users</li>
<li>Inactive</li>
</ul>
</div>
</Card>
</>
);
};
export default Terminals;
@@ -0,0 +1,59 @@
import React, { Component } from 'react';
import dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
class RevenueChart extends Component {
constructor(props) {
super(props);
this.state = {
series: [65],
options: {
plotOptions: {
radialBar: {
hollow: {
size: "50%",
},
track: {
background: "#ECEFF7",
},
dataLabels: {
name: {
show: true,
fontSize: '12px',
color: '#5B5B98',
},
value: {
offsetY: 3,
color: "#00B69B",
fontSize: "16px",
fontWeight: "500",
},
},
},
},
labels: ['Revenue'],
fill: {
opacity: 1,
colors: ["#757FEF"],
},
},
};
}
render() {
return (
<>
<Chart
options={this.state.options}
series={this.state.series}
height="175"
type="radialBar"
/>
</>
);
}
}
export default RevenueChart;
@@ -0,0 +1,39 @@
.totalRevenueList {
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid #F7FAFF;
margin-bottom: 13px;
padding-bottom: 13px;
}
.totalRevenueList:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
.totalRevenueList p {
font-size: 13px;
margin: 0;
}
.totalRevenueList .rightContent {
display: flex;
align-items: center;
justify-content: space-between;
}
.totalRevenueList .rightContent h5 {
margin: 0 15px 0 0;
font-size: 12px;
color: #5B5B98;
}
.totalRevenueList .rightContent i {
position: relative;
top: 2px;
}
/* For dark mode */
[class="dark"] .totalRevenueList {
border-bottom: 1px solid var(--borderColor);
}
[class="dark"] .totalRevenueList:last-child {
border-bottom: none;
}
@@ -0,0 +1,162 @@
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 RevenueChart from "./RevenueChart";
import styles from "@/components/Dashboard/Analytics/TotalRevenue/TotalRevenueList.module.css";
const TotalRevenue = () => {
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",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
Total Revenue
</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>
{/* RevenueChart */}
<RevenueChart />
<>
<div className={styles.totalRevenueList}>
<p>Avg. Session</p>
<div className={styles.rightContent}>
<h5>972</h5>
<p>
<i className="ri-arrow-right-up-line successColor"></i> 49%
</p>
</div>
</div>
<div className={styles.totalRevenueList}>
<p>Conversion Rate</p>
<div className={styles.rightContent}>
<h5>102</h5>
<p>
<i className="ri-arrow-right-up-line successColor"></i> 18%
</p>
</div>
</div>
<div className={styles.totalRevenueList}>
<p>Avg. Duration</p>
<div className={styles.rightContent}>
<h5>3m</h5>
<p>
<i className="ri-arrow-right-up-line successColor"></i> 42%
</p>
</div>
</div>
<div className={styles.totalRevenueList}>
<p>Weekly Earning</p>
<div className={styles.rightContent}>
<h5>$972</h5>
<p>
<i className="ri-arrow-right-down-line dangerColor"></i> 28%
</p>
</div>
</div>
<div className={styles.totalRevenueList}>
<p>Monthly Revenue</p>
<div className={styles.rightContent}>
<h5>50k</h5>
<p>
<i className="ri-arrow-right-up-line successColor"></i> 70%
</p>
</div>
</div>
</>
</Card>
</>
);
};
export default TotalRevenue;
@@ -0,0 +1,112 @@
import React from "react";
import { Box, Typography } from "@mui/material";
import Card from "@mui/material/Card";
import dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
const TotalTransactions = () => {
// Chart
const series = [
{
name: 'This Week',
data: [30, 35, 40, 50, 55, 60, 65]
},
{
name: 'Last Week',
data: [65, 60, 55, 50, 40, 35, 30]
},
{
name: 'Performance',
data: [30, 35, 40, 50, 55, 60, 65]
},
{
name: 'Cost',
data: [65, 60, 55, 50, 40, 35, 30]
}
];
const options = {
chart: {
stacked: true,
toolbar: {
show: false
},
},
colors: ["#1CCAB8", "#FFBC2B", "#818093", "#EE368C"],
plotOptions: {
bar: {
horizontal: false,
columnWidth: "30%",
endingShape: "rounded",
},
},
xaxis: {
type: 'datetime',
categories: ['01/01/2011 GMT', '01/02/2011 GMT', '01/03/2011 GMT', '01/04/2011 GMT',
'01/05/2011 GMT', '01/06/2011 GMT', '01/07/2011 GMT'
],
labels: {
show: false,
},
},
yaxis: {
show: false,
},
legend: {
position: 'bottom',
offsetY: 8,
fontSize: '11px',
},
fill: {
opacity: 1
},
grid: {
borderColor: '#F7FAFF',
},
tooltip: {
y: {
formatter: function (val) {
return "$" + val + "k";
},
},
},
}
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px 0 15px",
mb: "15px",
}}
>
<Box
sx={{
borderBottom: "1px solid #EEF0F7",
paddingBottom: "10px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
p: "0 20px 0",
}}
>
Total Transactions
</Typography>
</Box>
<Chart options={options} series={series} type="bar" height={325} />
</Card>
</>
);
};
export default TotalTransactions;
@@ -0,0 +1,65 @@
.infoList {
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid #F7FAFF;
margin-bottom: 13px;
padding-bottom: 13px;
position: relative;
padding-left: 15px;
}
.infoList::before {
content: '';
background: #F765A3;
box-shadow: 0px 2.98686px 13.4409px rgba(126, 172, 235, 0.25);
width: 10px;
height: 10px;
border-radius: 100%;
position: absolute;
left: 0;
top: 5px;
}
.infoList:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
.infoList p {
font-size: 13px;
margin: 0;
}
.infoList .rightContent {
display: flex;
align-items: center;
justify-content: space-between;
}
.infoList h5 {
margin: 0 15px 0 0;
font-size: 12px;
color: #5B5B98;
}
.infoList .rightContent i {
position: relative;
top: 2px;
}
/* For RTL Style */
[dir="rtl"] .infoList {
padding-left: 0;
padding-right: 15px;
}
[dir="rtl"] .infoList::before {
left: auto;
right: 0;
}
[dir="rtl"] .infoList h5 {
margin: 0 0 0 15px;
}
/* For dark mode */
[class="dark"] .infoList {
border-bottom: 1px solid var(--borderColor);
}
[class="dark"] .infoList:last-child {
border-bottom: none;
}
@@ -0,0 +1,105 @@
import React, { Component } from "react";
import { Box, Typography } from "@mui/material";
import Card from "@mui/material/Card";
import dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
import styles from "@/components/Dashboard/Analytics/VisitorsAge/VisitorsAge.module.css";
class VisitorsAge extends Component {
constructor(props) {
super(props);
this.state = {
series: [40],
options: {
plotOptions: {
radialBar: {
hollow: {
size: "50%",
},
track: {
background: "rgba(247, 101, 163, 0.5)",
},
dataLabels: {
name: {
show: false,
},
value: {
offsetY: 4,
color: "#F765A3",
fontSize: "16px",
fontWeight: "500",
},
},
},
},
fill: {
colors: ["#F765A3"],
},
},
};
}
render() {
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px 20px",
mb: "15px",
}}
>
<Box
sx={{
borderBottom: "1px solid #EEF0F7",
paddingBottom: "10px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
Visitors Age
</Typography>
</Box>
<Chart
options={this.state.options}
series={this.state.series}
type="radialBar"
/>
<>
<div className={styles.infoList}>
<p>Under 30</p>
<h5>16,868</h5>
<div className={styles.rightContent}>
<p>
<i className="ri-bar-chart-fill"></i> 32%
</p>
</div>
</div>
<div className={styles.infoList}>
<p>Over 30</p>
<h5>31,868</h5>
<div className={styles.rightContent}>
<p>
<i className="ri-bar-chart-fill"></i> 68%
</p>
</div>
</div>
</>
</Card>
</>
);
}
}
export default VisitorsAge;
@@ -0,0 +1,123 @@
import React from "react";
import Grid from "@mui/material/Grid";
import Box from "@mui/material/Box";
import Typography from "@mui/material/Typography";
import {
BarChart,
Bar,
XAxis,
Tooltip,
ResponsiveContainer,
} from "recharts";
const data = [
{
name: "Sat",
income: 24,
},
{
name: "Sun",
income: 13,
},
{
name: "Mon",
income: 98,
},
{
name: "Tue",
income: 39,
},
{
name: "Wed",
income: 48,
},
{
name: "Thu",
income: 38,
},
{
name: "Fri",
income: 43,
},
];
const NetIncome = () => {
return (
<>
<Grid container alignItems="center" sx={{ marginTop: '20px' }} rowSpacing={1} columnSpacing={{ xs: 1, sm: 2, md: 2 }}>
<Grid item xs={6} md={7} lg={6}>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<Box
sx={{
width: "46px",
height: "54px",
lineHeight: "54px",
borderRadius: "8px",
fontSize: "25px",
background: "#FFFFFF",
boxShadow: "0px 4px 20px rgba(117, 127, 239, 0.15)",
color: "#757FEF",
textAlign: "center",
}}
className='mr-15px'
>
<i className="ri-bar-chart-fill"></i>
</Box>
<Box>
<Typography variant="p" sx={{ fontSize: 13 }}>
Net Income
</Typography>
<Typography
variant="h1"
sx={{ fontSize: 22, fontWeight: 700, mt: "5px" }}
>
$438.5k
</Typography>
</Box>
</Box>
</Grid>
<Grid item xs={6} md={5} lg={6}>
<ResponsiveContainer width="100%" aspect={2.0 / 0.9}>
<BarChart
width={500}
height={300}
data={data}
margin={{
top: 5,
right: 10,
left: 10,
bottom: 5,
}}
barSize={8}
>
<XAxis
dataKey="name"
scale="point"
fontSize={9}
stroke="#A9A9C8"
/>
<Tooltip wrapperStyle={{fontSize: "14px"}} />
<Bar
dataKey="income"
fill="#757FEF"
background={{ fill: "#DBDFF1" }}
unit="k"
/>
</BarChart>
</ResponsiveContainer>
</Grid>
</Grid>
</>
);
};
export default NetIncome;
@@ -0,0 +1,136 @@
import React from "react";
import {
BarChart,
Bar,
XAxis,
Tooltip,
ResponsiveContainer,
} from "recharts";
import Grid from "@mui/material/Grid";
import Card from "@mui/material/Card";
import Box from "@mui/material/Box";
import Typography from "@mui/material/Typography";
import NetIncome from "./NetIncome";
const data = [
{
name: "Sat",
visited: 2400,
},
{
name: "Sun",
visited: 1398,
},
{
name: "Mon",
visited: 9800,
},
{
name: "Tue",
visited: 3908,
},
{
name: "Wed",
visited: 4800,
},
{
name: "Thu",
visited: 3800,
},
{
name: "Fri",
visited: 4300,
},
];
const VisitsByDayAndNetIncome = () => {
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "30px 20px 20px",
mb: "15px",
}}
>
<Grid container alignItems="center" rowSpacing={1} columnSpacing={{ xs: 1, sm: 2, md: 2 }}>
<Grid item xs={6} md={7} lg={6}>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<Box
sx={{
width: "46px",
height: "54px",
lineHeight: "54px",
borderRadius: "8px",
fontSize: "25px",
background: "#FFFFFF",
boxShadow: "0px 4px 20px rgba(117, 127, 239, 0.15)",
color: "#757FEF",
textAlign: "center",
}}
className="mr-15px"
>
<i className="ri-pie-chart-line"></i>
</Box>
<Box>
<Typography variant="p" sx={{ fontSize: 13 }}>
Visits By Day
</Typography>
<Typography
variant="h1"
sx={{ fontSize: 22, fontWeight: 700, mt: "5px" }}
>
1,802
</Typography>
</Box>
</Box>
</Grid>
<Grid item xs={6} md={5} lg={6}>
<ResponsiveContainer width="100%" aspect={2.0 / 0.9}>
<BarChart
width={500}
height={300}
data={data}
margin={{
top: 5,
right: 10,
left: 10,
bottom: 5,
}}
barSize={8}
>
<XAxis
dataKey="name"
scale="point"
fontSize={9}
stroke="#A9A9C8"
/>
<Tooltip wrapperStyle={{fontSize: "14px"}} />
<Bar
dataKey="visited"
fill="#FFBA69"
background={{ fill: "#DBDFF1" }}
/>
</BarChart>
</ResponsiveContainer>
</Grid>
</Grid>
{/* NetIncome */}
<NetIncome />
</Card>
</>
);
};
export default VisitsByDayAndNetIncome;
@@ -0,0 +1,62 @@
import React, { Component } from "react";
import dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
class ActiveCourseChart extends Component {
constructor(props) {
super(props);
this.state = {
series: [72, 56, 50],
options: {
chart: {
type: "donut",
},
legend: {
offsetY: 2,
position: "bottom",
horizontalAlign: "center",
},
labels: ["Courses Done", "On Progress", "To Do"],
colors: ["#757FEF", "#EE368C", "#00B69B"],
tooltip: {
y: {
formatter: function (val) {
return "" + val + "%";
},
},
},
responsive: [
{
breakpoint: 480,
options: {
chart: {
width: 200,
},
legend: {
position: "bottom",
},
},
},
],
},
};
}
render() {
return (
<>
<Chart
options={this.state.options}
series={this.state.series}
height="350"
type="donut"
/>
</>
);
}
}
export default ActiveCourseChart;
@@ -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 ActiveCourseChart from "./ActiveCourseChart";
const ActiveCourse = () => {
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,
}}
>
Active Course
</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 */}
<ActiveCourseChart />
</Card>
</>
);
};
export default ActiveCourse;
@@ -0,0 +1,241 @@
import React, { Component } from "react";
import { Box, Typography } from "@mui/material";
import Link from "@mui/material/Link";
import dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
class CourseCompletionList extends Component {
constructor(props) {
super(props);
this.state = {
series: [25],
series2: [50],
series3: [30],
series4: [50],
options: {
chart: {
offsetX: -8,
},
plotOptions: {
radialBar: {
hollow: {
size: "50%",
},
track: {
background: "#A9C8FB",
},
dataLabels: {
name: {
show: false,
},
value: {
offsetY: 3,
color: "#757FEF",
fontSize: "13px",
fontWeight: "500",
},
},
},
},
fill: {
colors: ["#757FEF"],
opacity: 1,
},
},
};
}
render() {
return (
<>
{/* Course completion 1 */}
<Box
sx={{
background: "#FAFAFA",
borderRadius: "15px",
padding: "5px 20px",
display: "flex",
alignItems: "center",
justifyContent: "space-between",
mt: "15px",
}}
className="dark-BG-101010"
>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
}}
>
<Box className="mr-1">
<Chart
options={this.state.options}
series={this.state.series}
type="radialBar"
height={110}
width={70}
/>
</Box>
<Box>
<Typography as="h3" fontSize="14px" fontWeight="500">
Data With Python
</Typography>
<Typography fontSize="13px" color="#A9A9C8">
5 Lessons
</Typography>
</Box>
</Box>
<Box color="#A9A9C8" fontSize="25px">
<Link href="#" underline="none">
<i className="ri-arrow-right-s-line"></i>
</Link>
</Box>
</Box>
{/* Course completion 2 */}
<Box
sx={{
background: "#FAFAFA",
borderRadius: "15px",
padding: "5px 20px",
display: "flex",
alignItems: "center",
justifyContent: "space-between",
mt: "15px",
}}
className="dark-BG-101010"
>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
}}
>
<Box>
<Chart
options={this.state.options}
series={this.state.series2}
type="radialBar"
height={110}
width={70}
/>
</Box>
<Box>
<Typography as="h3" fontSize="14px" fontWeight="500">
Code Foundation
</Typography>
<Typography fontSize="13px" color="#A9A9C8">
15 Lessons
</Typography>
</Box>
</Box>
<Box color="#A9A9C8" fontSize="25px">
<Link href="#" underline="none">
<i className="ri-arrow-right-s-line"></i>
</Link>
</Box>
</Box>
{/* Course completion 3 */}
<Box
sx={{
background: "#FAFAFA",
borderRadius: "15px",
padding: "5px 20px",
display: "flex",
alignItems: "center",
justifyContent: "space-between",
mt: "15px",
}}
className="dark-BG-101010"
>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
}}
>
<Box>
<Chart
options={this.state.options}
series={this.state.series3}
type="radialBar"
height={110}
width={70}
/>
</Box>
<Box>
<Typography as="h3" fontSize="14px" fontWeight="500">
Styling With CSS
</Typography>
<Typography fontSize="13px" color="#A9A9C8">
13 Lessons
</Typography>
</Box>
</Box>
<Box color="#A9A9C8" fontSize="25px">
<Link href="#" underline="none">
<i className="ri-arrow-right-s-line"></i>
</Link>
</Box>
</Box>
{/* Course completion 4 */}
<Box
sx={{
background: "#FAFAFA",
borderRadius: "15px",
padding: "5px 20px",
display: "flex",
alignItems: "center",
justifyContent: "space-between",
mt: "15px",
}}
className="dark-BG-101010"
>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
}}
>
<Box>
<Chart
options={this.state.options}
series={this.state.series4}
type="radialBar"
height={110}
width={70}
/>
</Box>
<Box>
<Typography as="h3" fontSize="14px" fontWeight="500">
Code Learn
</Typography>
<Typography fontSize="13px" color="#A9A9C8">
15 Lessons
</Typography>
</Box>
</Box>
<Box color="#A9A9C8" fontSize="25px">
<Link href="#" underline="none">
<i className="ri-arrow-right-s-line"></i>
</Link>
</Box>
</Box>
</>
);
}
}
export default CourseCompletionList;
@@ -0,0 +1,111 @@
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 CourseCompletionList from "./CourseCompletionList";
const CourseCompletion = () => {
// 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,
}}
>
Course Completion
</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>
{/* CourseCompletionList */}
<CourseCompletionList />
</Card>
</>
);
};
export default CourseCompletion;
@@ -0,0 +1,380 @@
import * as React from "react";
import { Box } from "@mui/material";
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";
import Link from "@mui/material/Link";
function CreatedCourse(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>
);
}
CreatedCourse.propTypes = {
count: PropTypes.number.isRequired,
onPageChange: PropTypes.func.isRequired,
page: PropTypes.number.isRequired,
rowsPerPage: PropTypes.number.isRequired,
};
function createData(
courseName,
courseLink,
image,
result,
badgeClass,
expirationTime,
endTime
) {
return {
courseName,
courseLink,
image,
result,
badgeClass,
expirationTime,
endTime,
};
}
const rows = [
createData(
"Build an iOS Application in Swift Learn the fundamentals",
"#",
"/images/course-brand3.png",
"Passed",
"successBadge",
"2021-12-19 02:00 PM",
"2021-12-19 04:00 PM"
),
createData(
"Node.js for Beginners: Go From Zero to Hero with Node.js",
"#",
"/images/course-brand1.png",
"87%",
"primaryBadge",
"2021-12-19 10:00 AM",
"2021-12-19 12:00 PM"
),
createData(
"Learn the fundamentals of working with Angular and how to create",
"#",
"/images/course-brand2.png",
"Failed",
"dangerBadge",
"2021-12-19 11:00 AM",
"2021-12-19 01:00 PM"
),
createData(
"Programming Language Become a React Native Developer",
"#",
"/images/course-brand4.png",
"90%",
"primaryBadge",
"2021-12-19 04:00 PM",
"2021-12-19 06:00 PM"
),
createData(
"Build an iOS Application in Swift Learn the fundamentals",
"#",
"/images/course-brand3.png",
"Passed",
"successBadge",
"2021-12-19 02:00 PM",
"2021-12-19 04:00 PM"
),
createData(
"Node.js for Beginners: Go From Zero to Hero with Node.js",
"#",
"/images/course-brand1.png",
"87%",
"primaryBadge",
"2021-12-19 10:00 AM",
"2021-12-19 12:00 PM"
),
createData(
"Learn the fundamentals of working with Angular and how to create",
"#",
"/images/course-brand2.png",
"Failed",
"dangerBadge",
"2021-12-19 11:00 AM",
"2021-12-19 01:00 PM"
),
createData(
"Programming Language Become a React Native Developer",
"#",
"/images/course-brand4.png",
"90%",
"primaryBadge",
"2021-12-19 04:00 PM",
"2021-12-19 06:00 PM"
),
].sort((a, b) => (a.courseName < b.courseName ? -1 : 1));
export default function CreatedCourses() {
// 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 (
<>
<TableContainer
component={Paper}
sx={{
boxShadow: "none",
}}
>
<Table
sx={{ minWidth: 650 }}
aria-label="custom pagination table"
className="dark-table"
>
<TableHead sx={{ background: "#F7FAFF" }}>
<TableRow>
<TableCell
style={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
}}
>
Courses
</TableCell>
<TableCell
align="center"
style={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
}}
>
Result
</TableCell>
<TableCell
style={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
}}
>
Start Time
</TableCell>
<TableCell
align="right"
style={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
}}
>
End Time
</TableCell>
</TableRow>
</TableHead>
<TableBody>
{(rowsPerPage > 0
? rows.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
: rows
).map((row) => (
<TableRow key={row.courseName}>
<TableCell
style={{
width: 350,
borderBottom: "1px solid #F7FAFF",
paddingTop: "13px",
paddingBottom: "13px",
}}
>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<img
src={row.image}
alt="Product Img"
width={65}
className="borderRadius10"
/>
<Typography
sx={{
fontWeight: "500",
fontSize: "13.5px",
}}
className="ml-10px"
>
<Link
href={row.courseLink}
underline="none"
color="#260944"
>
{row.courseName}
</Link>
</Typography>
</Box>
</TableCell>
<TableCell
align="center"
style={{
fontWeight: 500,
borderBottom: "1px solid #F7FAFF",
fontSize: "12px",
paddingTop: "13px",
paddingBottom: "13px",
}}
>
<span className={row.badgeClass}>{row.result}</span>
</TableCell>
<TableCell
style={{
width: 120,
borderBottom: "1px solid #F7FAFF",
fontSize: "13px",
paddingTop: "13px",
paddingBottom: "13px",
fontSize: "13px",
}}
>
{row.expirationTime}
</TableCell>
<TableCell
align="right"
style={{
width: 120,
borderBottom: "1px solid #F7FAFF",
fontSize: "13px",
paddingTop: "13px",
paddingBottom: "13px",
fontSize: "13px",
}}
>
{row.endTime}
</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={CreatedCourse}
style={{ borderBottom: "none" }}
/>
</TableRow>
</TableFooter>
</Table>
</TableContainer>
</>
);
}
@@ -0,0 +1,366 @@
import * as React from "react";
import { Box } from "@mui/material";
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";
import Link from "@mui/material/Link";
function EnrolledCourse(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>
);
}
EnrolledCourse.propTypes = {
count: PropTypes.number.isRequired,
onPageChange: PropTypes.func.isRequired,
page: PropTypes.number.isRequired,
rowsPerPage: PropTypes.number.isRequired,
};
function createData(
courseName,
courseLink,
image,
result,
badgeClass,
expirationTime,
endTime
) {
return {
courseName,
courseLink,
image,
result,
badgeClass,
expirationTime,
endTime,
};
}
const rows = [
createData(
"Node.js for Beginners: Go From Zero to Hero with Node.js",
"#",
"/images/course-brand1.png",
"87%",
"primaryBadge",
"2021-12-19 10:00 AM",
"2021-12-19 12:00 PM"
),
createData(
"Learn the fundamentals of working with Angular and how to create",
"#",
"/images/course-brand2.png",
"Failed",
"dangerBadge",
"2021-12-19 11:00 AM",
"2021-12-19 01:00 PM"
),
createData(
"Build an iOS Application in Swift Learn the fundamentals",
"#",
"/images/course-brand3.png",
"Passed",
"successBadge",
"2021-12-19 02:00 PM",
"2021-12-19 04:00 PM"
),
createData(
"Programming Language Become a React Native Developer",
"#",
"/images/course-brand4.png",
"90%",
"primaryBadge",
"2021-12-19 04:00 PM",
"2021-12-19 06:00 PM"
),
createData(
"Node.js for Beginners Go From Zero to Hero with Node.js",
"#",
"/images/course-brand1.png",
"87%",
"primaryBadge",
"2021-12-19 10:00 AM",
"2021-12-19 12:00 PM"
),
createData(
"Learn the fundamentals of working with React and how to create",
"#",
"/images/course-brand2.png",
"Failed",
"dangerBadge",
"2021-12-19 11:00 AM",
"2021-12-19 01:00 PM"
),
createData(
"Build an Android Application in Swift Learn the fundamentals",
"#",
"/images/course-brand3.png",
"Passed",
"successBadge",
"2021-12-19 02:00 PM",
"2021-12-19 04:00 PM"
),
createData(
"Programming Language Become a React.js Developer",
"#",
"/images/course-brand4.png",
"90%",
"primaryBadge",
"2021-12-19 04:00 PM",
"2021-12-19 06:00 PM"
),
].sort((a, b) => (a.courseName < b.courseName ? -1 : 1));
export default function EnrolledCourses() {
// 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 (
<>
<TableContainer
component={Paper}
sx={{
boxShadow: "none",
}}
>
<Table
sx={{ minWidth: 650 }}
aria-label="custom pagination table"
className="dark-table"
>
<TableHead sx={{ background: "#F7FAFF" }}>
<TableRow>
<TableCell
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
>
Courses
</TableCell>
<TableCell
align="center"
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
>
Result
</TableCell>
<TableCell
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
>
Start Time
</TableCell>
<TableCell
align="right"
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
>
End Time
</TableCell>
</TableRow>
</TableHead>
<TableBody>
{(rowsPerPage > 0
? rows.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
: rows
).map((row) => (
<TableRow key={row.courseName}>
<TableCell
style={{
width: 350,
borderBottom: "1px solid #F7FAFF",
paddingTop: "13px",
paddingBottom: "13px",
}}
>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<img
src={row.image}
alt="Product Img"
width={65}
className="borderRadius10"
/>
<Typography
sx={{
fontWeight: "500",
fontSize: "13.5px",
}}
className="ml-10px"
>
<Link
href={row.courseLink}
underline="none"
color="#260944"
>
{row.courseName}
</Link>
</Typography>
</Box>
</TableCell>
<TableCell
align="center"
style={{
fontWeight: 500,
borderBottom: "1px solid #F7FAFF",
fontSize: "12px",
paddingTop: "13px",
paddingBottom: "13px",
}}
>
<span className={row.badgeClass}>{row.result}</span>
</TableCell>
<TableCell
style={{
width: 120,
borderBottom: "1px solid #F7FAFF",
fontSize: "13px",
paddingTop: "13px",
paddingBottom: "13px",
}}
>
{row.expirationTime}
</TableCell>
<TableCell
align="right"
style={{
width: 120,
borderBottom: "1px solid #F7FAFF",
fontSize: "13px",
paddingTop: "13px",
paddingBottom: "13px",
}}
>
{row.endTime}
</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={EnrolledCourse}
style={{ borderBottom: "none" }}
/>
</TableRow>
</TableFooter>
</Table>
</TableContainer>
</>
);
}
@@ -0,0 +1,20 @@
.tabs ul {
border-bottom: 1px solid #EEF0F7;
}
.tabs ul li {
color: #260944;
font-weight: 500;
font-size: 16px;
background: #F5F7FA;
padding: 8px 25px;
border-radius: 5px 5px 0px 0px;
outline: 0;
}
.tabs ul li:focus:after {
background: transparent;
}
/* For dark mode */
[class="dark"] .tabs ul {
border-bottom: 1px solid var(--borderColor);
}
@@ -0,0 +1,38 @@
import React from "react";
import Card from "@mui/material/Card";
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';
import EnrolledCourses from "./EnrolledCourses";
import CreatedCourses from "./CreatedCourses";
import styles from '@/components/Dashboard/LMSCourses/Courses/Tabs.module.css';
const Courses = () => {
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px 25px 15px",
mb: "15px",
}}
>
<Tabs className={styles.tabs}>
<TabList>
<Tab>Enrolled</Tab>
<Tab>Created</Tab>
</TabList>
<TabPanel>
<EnrolledCourses />
</TabPanel>
<TabPanel>
<CreatedCourses />
</TabPanel>
</Tabs>
</Card>
</>
);
};
export default Courses;
@@ -0,0 +1,123 @@
import React from "react";
import { Box } from "@mui/material";
import Card from "@mui/material/Card";
import { Typography } from "@mui/material";
import Grid from "@mui/material/Grid";
const CurrentCoursesData = [
{
id: "1",
title: "C++",
subTitle: "It & Software",
image: "/images/c+.png",
score: "4.5 Score",
duration: "37 Days Left",
},
{
id: "2",
title: "JavaScript",
subTitle: "Web Development",
image: "/images/js.png",
score: "4.5 Score",
duration: "35 Days Left",
},
{
id: "3",
title: "Haskell",
subTitle: "Programming",
image: "/images/haskell.png",
score: "4.5 Score",
duration: "30 Days Left",
},
];
const CurrentCourses = () => {
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px",
mb: "15px",
}}
>
<Box
sx={{
borderBottom: "1px solid #EEF0F7",
paddingBottom: "10px",
marginBottom: "20px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
Current Courses
</Typography>
</Box>
<Grid container rowSpacing={1} columnSpacing={{ xs: 1, sm: 2, md: 2 }}>
{CurrentCoursesData.map((course) => (
<Grid item xs={12} md={12} lg={4} key={course.id}>
<Box
sx={{
background: "#F7F7FC",
borderRadius: "10px",
padding: "25px 20px",
}}
className="dark-BG-101010"
>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
}}
>
<Box>
<Typography as="h3" fontSize="18px" fontWeight="700">
{course.title}
</Typography>
<Typography
textTransform="uppercase"
color="primary"
fontSize="12px"
mt="5px"
>
{course.subTitle}
</Typography>
</Box>
<img src={course.image} alt="" />
</Box>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
marginTop: "25px",
}}
>
<Typography fontSize="13px" fontWeight="500">
{course.score}
</Typography>
<Typography fontSize="13px" color="#A9A9C8">
{course.duration}
</Typography>
</Box>
</Box>
</Grid>
))}
</Grid>
</Card>
</>
);
};
export default CurrentCourses;
@@ -0,0 +1,161 @@
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 Chart from "chart.js/auto";
import { Bar } from "react-chartjs-2";
const options = {
indexAxis: "y",
elements: {
bar: {
// borderWidth: 1,
},
},
responsive: true,
plugins: {
legend: {
position: "bottom",
},
},
};
const labels = [
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
];
const data = {
labels,
datasets: [
{
label: "Achivement",
data: [90, 80, 85, 70, 60, 50, 40, 60,],
borderColor: "#F765A3",
backgroundColor: "#FFA5CB",
},
{
label: "Learning Path",
data: [80, 70, 75, 65, 55, 45, 35, 55,],
borderColor: "#A155B9",
backgroundColor: "#E697FF",
},
{
label: "IQ Test Score",
data: [70, 60, 70, 60, 50, 40, 30, 50,],
borderColor: "#757FEF",
backgroundColor: "#2DB6F5",
},
],
};
const ExperienceIQ = () => {
// 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: "10px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
Experience IQ
</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>
<Bar options={options} data={data} height={340} />
</Card>
</>
);
};
export default ExperienceIQ;
@@ -0,0 +1,91 @@
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";
const FeaturesData = [
{
id: "1",
title: "120",
subTitle: "Enrolled Courses",
image: "/images/icon1.png",
},
{
id: "2",
title: "17",
subTitle: "Active Courses",
image: "/images/icon2.png",
},
{
id: "3",
title: "64",
subTitle: "Completed Courses",
image: "/images/icon3.png",
},
{
id: "4",
title: "2.1M",
subTitle: "Total Students",
image: "/images/icon4.png",
},
];
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={6} lg={6} xl={3} key={feature.id}>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px",
mb: "15px",
}}
>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<Box
sx={{
width: "84px",
height: "84px",
borderRadius: "100%",
}}
className="mr-15px"
>
<img src={feature.image} alt="Icon" />
</Box>
<Box>
<Typography
variant="h1"
sx={{ fontSize: 28, fontWeight: 700, mb: "5px" }}
>
{feature.title}
</Typography>
<Typography variant="p" sx={{ fontSize: 14 }}>
{feature.subTitle}
</Typography>
</Box>
</Box>
</Card>
</Grid>
))}
</Grid>
</>
);
};
export default Features;
@@ -0,0 +1,155 @@
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 dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
const HoursSpent = () => {
// Select Form
const [select, setSelect] = React.useState("");
const handleChange = (event) => {
setSelect(event.target.value);
};
// Chart
const series = [
{
name: "Spent",
data: [21, 22, 10, 28, 16, 20, 25],
},
];
const options = {
chart: {
toolbar: {
show: false,
},
events: {
click: function (chart, w, e) {
// console.log(chart, w, e)
},
},
},
colors: ["#757FEF"],
plotOptions: {
bar: {
columnWidth: "40%",
distributed: true,
},
},
dataLabels: {
enabled: false,
},
legend: {
show: false,
},
xaxis: {
categories: [
["Sat"],
["Sun"],
["Mon"],
["Tue"],
["Wed"],
["Thu"],
["Fri"],
],
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 + " Hours";
},
},
},
grid: {
show: true,
borderColor: "#EDEFF5",
strokeDashArray: 5,
},
};
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",
marginBottom: "10px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
Hours Spent
</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' }}>This Week</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="bar" height={250} />
</Card>
</>
);
};
export default HoursSpent;
@@ -0,0 +1,24 @@
.messagesList {
border-bottom: 1px solid #F7FAFF;
border-right: 2px solid transparent;
padding-left: 12px;
padding-right: 12px;
padding-top: 15px;
padding-bottom: 10px;
margin-bottom: 15px;
}
.messagesList:last-child {
margin-bottom: 0;
}
.messagesList:hover {
background: #FAFAFA;
border-right: 2px solid #757FEF;
}
/* For dark mode */
[class="dark"] .messagesList {
border-bottom: 1px solid var(--borderColor);
}
[class="dark"] .messagesList:hover {
background: var(--colorBlack);
}
@@ -0,0 +1,248 @@
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 Badge from '@mui/material/Badge';
import styles from "@/components/Dashboard/LMSCourses/Messages/Messages.module.css";
const MessagesData = [
{
id: "1",
name: "Johen Mandel",
text: "Hi, i want make enquiries...",
image: "/images/user15.png",
badgeBgColor: "#5570F1",
newTag: "New",
number: "1",
time: "12:55 AM"
},
{
id: "2",
name: "Thomas Albart",
text: "Hi, i want make enquiries...",
image: "/images/user16.png",
badgeBgColor: "#5570F1",
newTag: "New",
number: "2",
time: "6:55 AM"
},
{
id: "3",
name: "Maical Doe",
text: "Hi, i want make enquiries...",
image: "/images/user17.png",
badgeBgColor: "#5570F1",
newTag: "New",
number: "3",
time: "8:00 AM"
},
];
const Messages = () => {
// 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: "20px",
mb: "15px",
}}
>
<Box
sx={{
display: "flex",
justifyContent: "space-between",
alignItems: "center",
borderBottom: "1px solid #EEF0F7",
paddingBottom: "10px",
mb: "10px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 17,
fontWeight: 500,
}}
>
Messages
</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>
{MessagesData.slice(0, 3).map((message) => (
<div className={styles.messagesList} key={message.id}>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
}}
>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
}}
>
<Box
sx={{
position: "relative"
}}
>
<div>
<img
src={message.image}
alt="User"
width="45"
height="45"
className="borderRadius10"
/>
</div>
<Badge
style={{ backgroundColor: `${message.badgeBgColor}` }}
sx={{
width: '13px',
height: '13px',
position: 'absolute',
borderRadius: '100%',
border: '2px solid #fff',
top: '0',
right: '-5px'
}}
></Badge>
</Box>
<Box className="ml-1">
<Typography as="h4" fontSize="13px" fontWeight="500" mb="5px">
{message.name}
</Typography>
<Typography fontSize="12px">
{message.text}
</Typography>
</Box>
</Box>
<Box textAlign="right">
<Typography component="div">
<Typography
component="span"
sx={{
background: "#FEF5EA",
color: "#260944",
borderRadius: "8px",
fontSize: "10px",
padding: "2px 7px",
display: "inline-block",
}}
className="mr-10px"
>
{message.newTag}
</Typography>
<Typography
component="span"
sx={{
background: "#FFCC91",
color: "#260944",
borderRadius: "8px",
fontSize: "10px",
width: "20px",
height: "20px",
display: "inline-block",
lineHeight: "20px",
textAlign: "center",
borderRadius: "100px",
}}
>
{message.number}
</Typography>
</Typography>
<Typography
sx={{
color: "#A9A9C8",
fontSize: "11px",
marginTop: "5px",
}}
>
{message.time}
</Typography>
</Box>
</Box>
</div>
))}
</Box>
</Card>
</>
);
};
export default Messages;
@@ -0,0 +1,166 @@
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";
const MyPlanningData = [
{
id: "1",
image: "/images/3d1.png",
title: "Animation Learning",
dateTime: "Dec 14, 08:30 PM",
},
{
id: "2",
image: "/images/3d2.png",
title: "UI/UX Research",
dateTime: "Dec 15, 09:30 PM",
},
{
id: "3",
image: "/images/3d3.png",
title: "Machine Learning",
dateTime: "Dec 16, 10:30 PM",
},
{
id: "4",
image: "/images/3d4.png",
title: "Web Development",
dateTime: "Dec 17, 11:30 PM",
},
];
const MyPlanning = () => {
// 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 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,
}}
>
My Planning
</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>
{MyPlanningData.map((plan) => (
<Box
sx={{
display: "flex",
alignItems: "center",
backgroundColor: "#F7F7FC",
borderRadius: '10px',
p: "25px 15px",
mt: "15px"
}}
key={plan.id}
className="dark-BG-101010"
>
<img
src={plan.image}
alt="Image"
width="40px"
height="40px"
className="borderRadius10"
/>
<Box className="ml-1">
<Typography as="h4" fontWeight={500} fontSize="13px">
{plan.title}
</Typography>
<Typography color="#A9A9C8;" fontSize="12px">
{plan.dateTime}
</Typography>
</Box>
</Box>
))}
</Card>
</>
);
};
export default MyPlanning;
@@ -0,0 +1,173 @@
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 Grid from "@mui/material/Grid";
import Button from "@mui/material/Button";
const TopInstructorData = [
{
id: "1",
image: "/images/user9.png",
name: "Melanie Grutt",
userName: "@melgrutt",
},
{
id: "2",
image: "/images/user10.png",
name: "Theron Trump",
userName: "@therontrump",
},
{
id: "3",
image: "/images/user11.png",
name: "Johen Mark",
userName: "@johenmark",
},
{
id: "4",
image: "/images/user12.png",
name: "Nicholas Tanner",
userName: "@nilyeager",
},
{
id: "5",
image: "/images/user13.png",
name: "Tyler Mark",
userName: "@tylemark",
},
{
id: "6",
image: "/images/user14.png",
name: "Martina Albart",
userName: "@martina",
},
];
const TopInstructor = () => {
// Select Form
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",
marginBottom: "10px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
Top Instructor
</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' }}>This Week</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>
<Grid container rowSpacing={1} columnSpacing={{ xs: 1, sm: 2, md: 2 }}>
{TopInstructorData.map((instructor) => (
<Grid item xs={12} md={12} lg={6} key={instructor.id}>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
backgroundColor: "#F7F7FC",
borderRadius: "10px",
p: "18px 15px",
mt: "5px",
}}
className="dark-BG-101010"
>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<img
src={instructor.image}
alt="Image"
width="45px"
height="45px"
className="borderRadius10"
/>
<Box className="ml-1">
<Typography as="h4" fontWeight={500} fontSize="13px">
{instructor.name}
</Typography>
<Typography color="#A9A9C8;" fontSize="12px">
{instructor.userName}
</Typography>
</Box>
</Box>
<Box>
<Button
sx={{
background: "#fff",
color: "#A9A9C8",
width: "30px",
height: "30px",
p: "0",
minWidth: "auto",
fontSize: "17px",
borderRadius: "100%",
}}
>
<i className="ri-add-line"></i>
</Button>
</Box>
</Box>
</Grid>
))}
</Grid>
</Card>
</>
);
};
export default TopInstructor;
@@ -0,0 +1,155 @@
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 Grid from "@mui/material/Grid";
const TopStudentsData = [
{
id: "1",
image: "/images/user18.png",
name: "Melanie Grutt",
userName: "@melgrutt",
},
{
id: "2",
image: "/images/user19.png",
name: "Theron Trump",
userName: "@therontrump",
},
{
id: "3",
image: "/images/user20.png",
name: "Johen Mark",
userName: "@johenmark",
},
{
id: "4",
image: "/images/user21.png",
name: "Nicholas Tanner",
userName: "@nilyeager",
},
{
id: "5",
image: "/images/user22.png",
name: "Tyler Mark",
userName: "@tylemark",
},
{
id: "6",
image: "/images/user23.png",
name: "Martina Albart",
userName: "@martina",
},
];
const TopStudents = () => {
// Select Form
const [select, setSelect] = React.useState("");
const handleChange = (event) => {
setSelect(event.target.value);
};
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px 20px",
mb: "15px",
}}
>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
borderBottom: "1px solid #EEF0F7",
paddingBottom: "10px",
marginBottom: "10px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 17,
fontWeight: 500,
}}
>
Top Students
</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' }}>This Week</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>
<Grid container rowSpacing={1} columnSpacing={{ xs: 1, sm: 2, md: 2 }}>
{TopStudentsData.map((student) => (
<Grid item xs={12} md={6} lg={6} key={student.id}>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
backgroundColor: "#F7F7FC",
borderRadius: "10px",
p: "15px 12px",
mt: "10px",
}}
className="dark-BG-101010"
>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<img
src={student.image}
alt="Image"
width="35px"
height="35px"
className="borRadius100"
/>
<Box className="ml-1">
<Typography as="h4" fontWeight={500} fontSize="12.5px">
{student.name}
</Typography>
<Typography color="#A9A9C8;" fontSize="12px">
{student.userName}
</Typography>
</Box>
</Box>
</Box>
</Grid>
))}
</Grid>
</Card>
</>
);
};
export default TopStudents;
@@ -0,0 +1,44 @@
.box {
background: #757FEF;
border-radius: 10px;
padding: 25px 20px;
margin-bottom: 15px;
}
.boxList {
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
padding-left: 17px;
border-bottom: 1px solid #878fe5;
padding-bottom: 18px;
margin-bottom: 18px;
}
.boxList:last-child {
border-bottom: none;
padding-bottom: 0;
margin-bottom: 0;
}
.boxList::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;
position: absolute;
left: 0;
top: 5px;
border-radius: 100px;
}
.boxList h4 {
margin: 0;
color: #fff;
font-size: 13px;
font-weight: 500;
}
.boxList p {
margin: 0;
color: #fff;
font-size: 12px;
font-weight: 500;
}
@@ -0,0 +1,34 @@
import React from "react";
import styles from "@/components/Dashboard/LMSCourses/TotalWatched/TotalWatched.module.css";
const TotalWatched = () => {
return (
<>
<div className={styles.box}>
<div className={styles.boxList}>
<h4>Total Watched</h4>
<p>
<i className="ri-bar-chart-line"></i> 66:15h
</p>
</div>
<div className={styles.boxList}>
<h4>Assignment Completed</h4>
<p>81%</p>
</div>
<div className={styles.boxList}>
<h4>Monthly Progress</h4>
<p>81%</p>
</div>
<div className={styles.boxList}>
<h4>Overall Pass Percentage</h4>
<p>81%</p>
</div>
</div>
</>
);
};
export default TotalWatched;
@@ -0,0 +1,138 @@
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 {
LineChart,
Line,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
Legend,
ResponsiveContainer
} from "recharts";
const data = [
{
name: "01 Jan",
Practice: 15,
Theory: 10,
},
{
name: "02 Jan",
Practice: 11,
Theory: 16,
},
{
name: "03 Jan",
Practice: 17,
Theory: 12,
},
{
name: "04 Jan",
Practice: 13,
Theory: 18,
},
{
name: "05 Jan",
Practice: 19,
Theory: 14,
},
{
name: "06 Jan",
Practice: 15,
Theory: 20,
},
{
name: "07 Jan",
Practice: 16,
Theory: 22,
},
];
const YourProgress = () => {
// Select Form
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",
marginBottom: "30px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
Your Progress
</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' }}>This Week</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>
<ResponsiveContainer width="100%" aspect={2.0/1.0}>
<LineChart data={data}>
<CartesianGrid strokeDasharray="3 3" stroke="#EDEFF5" />
<XAxis dataKey="name" padding={{ left: 30, right: 30 }} stroke="#A9A9C8" fontSize={14} />
<YAxis unit=" Hr" stroke="#A9A9C8" fontSize={14} />
<Tooltip />
<Legend />
<Line
type="monotone"
dataKey="Theory"
stroke="#757FEF"
activeDot={{ r: 8 }}
unit=" Hours"
/>
<Line type="monotone" dataKey="Practice" stroke="#2DB6F5" unit=" Hours" />
</LineChart>
</ResponsiveContainer>
</Card>
</>
);
};
export default YourProgress;
@@ -0,0 +1,56 @@
.timelineList .tList {
position: relative;
margin-bottom: 15px;
padding-bottom: 15px;
border-bottom: 1px solid #F7FAFF;
display: flex;
align-items: center;
justify-content: space-between;
}
.timelineList .tList:last-child {
border: none;
padding-bottom: 0;
margin-bottom: 0;
}
.timelineList .tList .content {
display: flex;
align-items: center;
}
.timelineList .tList .content img {
margin-right: 10px;
width: 27px;
}
.timelineList .tList .content h5 {
margin: 0;
color: #5B5B98;
font-size: 13px;
font-weight: 500;
}
.timelineList .tList .date {
color: #A9A9C8;
font-size: 12px;
margin: 0;
}
@media only screen and (min-width: 1800px) {
.timelineList .tList {
margin-bottom: 16.5px;
padding-bottom: 16.5px;
}
}
[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 .content h5 {
color: var(--darkHeadingTextColor);
}
@@ -0,0 +1,158 @@
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/ProjectManagement/ActivityTimeline/ActivityTimeline.module.css";
const ActivityTimelineData = [
{
id: "1",
image: '/images/pdf-icon.png',
title: "Donald updated the status",
time: "54 min ago",
},
{
id: "2",
image: '/images/man.png',
title: "Design new UI and check sales",
time: "10 hours ago",
},
{
id: "3",
title: "James Bangs Client Meeting",
image: '/images/small-product-img.png',
time: "5 min ago",
},
{
id: "4",
title: "Joseph Rust opened new showcase",
image: '/images/small-product-img2.png',
time: "10 min ago",
},
{
id: "5",
title: "Brust opened new showcase",
image: '/images/small-product-img3.png',
time: "15 min ago",
},
{
id: "6",
title: "Create a new project for client",
image: '/images/man.png',
time: "20 min ago",
},
];
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",
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,
}}
>
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, 6).map((timeline) => (
<div className={styles.tList} key={timeline.id}>
<div className={styles.content}>
<img src={timeline.image} alt="Icon" />
<h5>{timeline.title}</h5>
</div>
<p className={styles.date}>{timeline.time}</p>
</div>
))}
</div>
</Card>
</>
);
};
export default ActivityTimeline;
@@ -0,0 +1,10 @@
.members {
display: flex;
align-items: center;
position: relative;
}
.members img {
border-radius: 100%;
border: 2px solid #fff;
margin-left: -6px;
}
@@ -0,0 +1,566 @@
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 TableHead from "@mui/material/TableHead";
import TableRow from "@mui/material/TableRow";
import Paper from "@mui/material/Paper";
import { styled } from "@mui/material/styles";
import LinearProgress, {
linearProgressClasses,
} from "@mui/material/LinearProgress";
import styles from "@/components/Dashboard/ProjectManagement/AllProjects/AllProjects.module.css";
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" : "#308fe8",
},
}));
const AllProjects = () => {
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",
marginBottom: "15px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
All Projects
</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: "13px" }}>
Today
</MenuItem>
<MenuItem value={1} sx={{ fontSize: "13px" }}>
Last 7 Days
</MenuItem>
<MenuItem value={2} sx={{ fontSize: "13px" }}>
This Month
</MenuItem>
<MenuItem value={3} sx={{ fontSize: "13px" }}>
Last 12 Months
</MenuItem>
<MenuItem value={4} sx={{ fontSize: "13px" }}>
All Time
</MenuItem>
</Select>
</FormControl>
</Box>
</Box>
<TableContainer
component={Paper}
sx={{
boxShadow: "none",
maxHeight: "370px",
overflowY: "auto",
}}
>
<Table
sx={{ minWidth: 700 }}
aria-label="simple table"
className="dark-table"
>
<TableHead sx={{ background: "#F7FAFF" }}>
<TableRow>
<TableCell
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
>
Project Name
</TableCell>
<TableCell
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
>
Members
</TableCell>
<TableCell
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
align="center"
>
Budget
</TableCell>
<TableCell
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
align="center"
>
Status
</TableCell>
<TableCell
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
>
Completion
</TableCell>
<TableCell
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
align="right"
>
Due Date
</TableCell>
</TableRow>
</TableHead>
<TableBody>
<TableRow
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<img
src="/images/project-logo1.png"
alt="Image"
width="25px"
/>
<Typography
as="h5"
fontWeight="500"
fontSize="13px"
className="ml-1"
>
Product UI/UX Design
</Typography>
</Box>
</TableCell>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<div className={styles.members}>
<img
src="/images/user1.png"
alt="Image"
width="28px"
height="28px"
/>
<img
src="/images/user2.png"
alt="Image"
width="28px"
height="28px"
/>
<img
src="/images/user3.png"
alt="Image"
width="28px"
height="28px"
/>
</div>
</TableCell>
<TableCell
align="center"
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
>
$14,000
</TableCell>
<TableCell
align="center"
sx={{
fontWeight: 500,
borderBottom: "1px solid #F7FAFF",
fontSize: "11px",
}}
>
<span className="successBadge">Active</span>
</TableCell>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<Box>
<Typography fontSize="12px">70%</Typography>
<BorderLinearProgress variant="determinate" value={70} />
</Box>
</TableCell>
<TableCell
align="right"
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
>
08 Mar 2021
</TableCell>
</TableRow>
<TableRow
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<img
src="/images/project-logo2.png"
alt="Image"
width="25px"
/>
<Typography
as="h5"
fontWeight="500"
fontSize="13px"
className="ml-1"
>
Public Beta Release
</Typography>
</Box>
</TableCell>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<div className={styles.members}>
<img
src="/images/user4.png"
alt="Image"
width="28px"
height="28px"
/>
<img
src="/images/user5.png"
alt="Image"
width="28px"
height="28px"
/>
</div>
</TableCell>
<TableCell
align="center"
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
>
$14,000
</TableCell>
<TableCell
align="center"
sx={{
fontWeight: 500,
borderBottom: "1px solid #F7FAFF",
fontSize: "11px",
}}
>
<span className="primaryBadge">Complete</span>
</TableCell>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<Box>
<Typography fontSize="12px">100%</Typography>
<BorderLinearProgress variant="determinate" value={100} />
</Box>
</TableCell>
<TableCell
align="right"
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
>
17 Apr 2021
</TableCell>
</TableRow>
<TableRow
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<img
src="/images/project-logo3.png"
alt="Image"
width="25px"
/>
<Typography
as="h5"
fontWeight="500"
fontSize="13px"
className="ml-1"
>
SEO Marketing
</Typography>
</Box>
</TableCell>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<div className={styles.members}>
<img
src="/images/user6.png"
alt="Image"
width="28px"
height="28px"
/>
<img
src="/images/user7.png"
alt="Image"
width="28px"
height="28px"
/>
</div>
</TableCell>
<TableCell
align="center"
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
>
$12,000
</TableCell>
<TableCell
align="center"
sx={{
fontWeight: 500,
borderBottom: "1px solid #F7FAFF",
fontSize: "11px",
}}
>
<span className="primaryBadge">Complete</span>
</TableCell>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<Box>
<Typography fontSize="12px">100%</Typography>
<BorderLinearProgress variant="determinate" value={100} />
</Box>
</TableCell>
<TableCell
align="right"
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
>
10 Sep 2021
</TableCell>
</TableRow>
<TableRow
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<img
src="/images/project-logo4.png"
alt="Image"
width="25px"
/>
<Typography
as="h5"
fontWeight="500"
fontSize="13px"
className="ml-1"
>
New Office Building
</Typography>
</Box>
</TableCell>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<div className={styles.members}>
<img
src="/images/user1.png"
alt="Image"
width="28px"
height="28px"
/>
<img
src="/images/user2.png"
alt="Image"
width="28px"
height="28px"
/>
<img
src="/images/user3.png"
alt="Image"
width="28px"
height="28px"
/>
</div>
</TableCell>
<TableCell
align="center"
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
>
$9,000
</TableCell>
<TableCell
align="center"
sx={{
fontWeight: 500,
borderBottom: "1px solid #F7FAFF",
fontSize: "11px",
}}
>
<span className="dangerBadge">Pending</span>
</TableCell>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<Box>
<Typography fontSize="12px">0%</Typography>
<BorderLinearProgress variant="determinate" value={0} />
</Box>
</TableCell>
<TableCell
align="right"
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
>
06 Aug 2022
</TableCell>
</TableRow>
<TableRow
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<img
src="/images/project-logo5.png"
alt="Image"
width="25px"
/>
<Typography
as="h5"
fontWeight="500"
fontSize="13px"
className="ml-1"
>
Product Devlopment
</Typography>
</Box>
</TableCell>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<div className={styles.members}>
<img
src="/images/user7.png"
alt="Image"
width="28px"
height="28px"
/>
<img
src="/images/user8.png"
alt="Image"
width="28px"
height="28px"
/>
<img
src="/images/user9.png"
alt="Image"
width="28px"
height="28px"
/>
</div>
</TableCell>
<TableCell
align="center"
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
>
$16,000
</TableCell>
<TableCell
align="center"
sx={{
fontWeight: 500,
borderBottom: "1px solid #F7FAFF",
fontSize: "11px",
}}
>
<span className="successBadge">Active</span>
</TableCell>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<Box>
<Typography fontSize="12px">80%</Typography>
<BorderLinearProgress variant="determinate" value={80} />
</Box>
</TableCell>
<TableCell
align="right"
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
>
08 Mar 2022
</TableCell>
</TableRow>
</TableBody>
</Table>
</TableContainer>
</Card>
</>
);
};
export default AllProjects;
@@ -0,0 +1,224 @@
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 ArrowDownwardIcon from "@mui/icons-material/ArrowDownward";
import ArrowUpwardIcon from "@mui/icons-material/ArrowUpward";
import dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
const CompletedTasks = () => {
const [anchorEl, setAnchorEl] = React.useState(null);
const open = Boolean(anchorEl);
const handleClick = (event) => {
setAnchorEl(event.currentTarget);
};
const handleClose = () => {
setAnchorEl(null);
};
// Chart
const series = [
{
name: "Task",
data: [21, 22, 10, 28, 16, 21, 13, 30],
},
];
const options = {
chart: {
toolbar: {
show: false,
},
events: {
click: function (chart, w, e) {
// console.log(chart, w, e)
},
},
},
colors: ["#757FEF"],
plotOptions: {
bar: {
columnWidth: "30%",
distributed: true,
borderRadius: 6,
},
},
dataLabels: {
enabled: false,
},
legend: {
show: false,
},
xaxis: {
categories: [
["1 Jan"],
["2 Jan"],
["3 Jan"],
["4 Jan"],
["5 Jan"],
["6 Jan"],
["7 Jan"],
["8 Jan"],
],
labels: {
show: false,
},
axisTicks: {
show: false,
},
},
yaxis: {
show: false,
},
grid: {
show: false,
},
fill: {
opacity: 1,
},
};
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,
}}
>
Completed Tasks
</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>
<Chart options={options} series={series} type="bar" height={320} />
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
textAlign: "center",
mt: "22px",
}}
>
<Box>
<Typography color="#A9A9C8" mb={1} fontSize="14px">
Target
</Typography>
<Typography fontWeight="500" fontSize="18px" as="h4">
<ArrowDownwardIcon
color="danger"
style={{ position: "relative", top: "3px" }}
/>{" "}
20k
</Typography>
</Box>
<Box>
<Typography color="#A9A9C8" mb={1} fontSize="14px">
Last Week
</Typography>
<Typography fontWeight="500" fontSize="18px" as="h4">
<ArrowUpwardIcon
color="success"
style={{ position: "relative", top: "3px" }}
/>{" "}
5.50k
</Typography>
</Box>
<Box>
<Typography color="#A9A9C8" mb={1} fontSize="14px">
Last Month
</Typography>
<Typography fontWeight="500" fontSize="18px" as="h4">
<ArrowUpwardIcon
color="success"
style={{ position: "relative", top: "3px" }}
/>{" "}
50k
</Typography>
</Box>
</Box>
</Card>
</>
);
};
export default CompletedTasks;
@@ -0,0 +1,150 @@
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";
const FeaturesData = [
{
id: "1",
subTitle: "Due Tasks",
title: "41",
iconName: "ri-pie-chart-2-line",
badgeProgress: "5.80%",
badgeClass: "successBadge",
badgeIcon: "ri-arrow-up-s-fill",
growthText: "Completed: 13 Projects this month",
},
{
id: "2",
subTitle: "Active Projects",
title: "65",
iconName: "ri-briefcase-line",
badgeProgress: "1.04%",
badgeClass: "dangerBadge",
badgeIcon: "ri-arrow-down-s-fill",
growthText: "Projects this month",
},
{
id: "3",
subTitle: "Total Hours",
title: "599",
iconName: "ri-time-line",
badgeProgress: "5.80%",
badgeClass: "successBadge",
badgeIcon: "ri-arrow-up-s-fill",
growthText: "Projects this month",
},
{
id: "4",
subTitle: "Total Projects",
title: "24k",
iconName: "ri-shield-check-line",
badgeProgress: "7.80%",
badgeClass: "successBadge",
badgeIcon: "ri-arrow-up-s-fill",
growthText: "Completed: 13 Projects this month",
},
];
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={6} lg={6} xl={3} key={feature.id}>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "20px 15px",
mb: "15px",
}}
>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
}}
>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<Box
sx={{
width: "58px",
height: "58px",
lineHeight: "58px",
background: "#757FEF",
color: "#fff",
fontSize: "30px",
borderRadius: "8px",
textAlign: "center",
}}
className="mr-10px"
>
<i className={feature.iconName}></i>
</Box>
<Box>
<Typography sx={{ fontSize: "13px" }}>
{feature.subTitle}
</Typography>
<Typography
variant="h1"
sx={{ fontSize: 25, fontWeight: 700, marginTop: '4px' }}
>
{feature.title}
</Typography>
</Box>
</Box>
<Box>
<span
className={feature.badgeClass}
style={{ fontSize: "13px", fontWeight: "500" }}
>
{feature.badgeProgress}
<i
className={feature.badgeIcon}
style={{
fontSize: "13px",
position: "relative",
top: "2px",
lineHeight: "1",
}}
></i>
</span>
</Box>
</Box>
<Box mt={2}>
<Typography
sx={{
fontSize: "13px",
display: "flex",
alignItems: "center",
}}
>
<span className="successColor mr-5px">{feature.icon}</span>
{feature.growthText}
</Typography>
</Box>
</Card>
</Grid>
))}
</Grid>
</>
);
};
export default Features;
@@ -0,0 +1,472 @@
import React, { Component } from "react";
import dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
class IssuesSummaryChart extends Component {
constructor(props) {
super(props);
this.state = {
series: [
{
data: [
[1327359500000, 30.95],
[1327445000000, 31.34],
[1327532400000, 31.18],
[1327618800000, 31.05],
[1327878000000, 31.0],
[1327964400000, 30.95],
[1328050800000, 31.24],
[1328137200000, 31.29],
[1328223500000, 31.85],
[1328482800000, 31.86],
[1328569200000, 32.28],
[1328655500000, 32.1],
[1328742000000, 32.65],
[1328828400000, 32.21],
[1329087500000, 32.35],
[1329174000000, 32.44],
[1329260400000, 32.46],
[1329346800000, 32.86],
[1329433200000, 32.75],
[1329778800000, 32.54],
[1329865200000, 32.33],
[1329951500000, 32.97],
[1330038000000, 33.41],
[1330297200000, 33.27],
[1330383500000, 33.27],
[1330470000000, 32.89],
[1330556400000, 33.1],
[1330642800000, 33.73],
[1330902000000, 33.22],
[1330988400000, 31.99],
[1331074800000, 32.41],
[1331161200000, 33.05],
[1331247500000, 33.64],
[1331506800000, 33.56],
[1331593200000, 34.22],
[1331679500000, 33.77],
[1331765000000, 34.17],
[1331852400000, 33.82],
[1332111500000, 34.51],
[1332198000000, 33.16],
[1332284400000, 33.56],
[1332370800000, 33.71],
[1332457200000, 33.81],
[1332712800000, 34.4],
[1332799200000, 34.63],
[1332885500000, 34.46],
[1332972000000, 34.48],
[1333058400000, 34.31],
[1333317500000, 34.7],
[1333404000000, 34.31],
[1333490400000, 33.46],
[1333576800000, 33.59],
[1333922400000, 33.22],
[1334008800000, 32.61],
[1334095200000, 33.01],
[1334181500000, 33.55],
[1334268000000, 33.18],
[1334527200000, 32.84],
[1334613500000, 33.84],
[1334700000000, 33.39],
[1334786400000, 32.91],
[1334872800000, 33.06],
[1335132000000, 32.62],
[1335218400000, 32.4],
[1335304800000, 33.13],
[1335391200000, 33.26],
[1335477500000, 33.58],
[1335736800000, 33.55],
[1335823200000, 33.77],
[1335909500000, 33.76],
[1335995000000, 33.32],
[1336082400000, 32.61],
[1336341500000, 32.52],
[1336428000000, 32.67],
[1336514400000, 32.52],
[1336500800000, 31.92],
[1336687200000, 32.2],
[1336946400000, 32.23],
[1337032800000, 32.33],
[1337119200000, 32.36],
[1337205500000, 32.01],
[1337292000000, 31.31],
[1337551200000, 32.01],
[1337637500000, 32.01],
[1337724000000, 32.18],
[1337810400000, 31.54],
[1337896800000, 31.6],
[1338242400000, 32.05],
[1338328800000, 31.29],
[1338415200000, 31.05],
[1338501500000, 29.82],
[1338760800000, 30.31],
[1338847200000, 30.7],
[1338933500000, 31.69],
[1339020000000, 31.32],
[1339106400000, 31.65],
[1339365500000, 31.13],
[1339452000000, 31.77],
[1339538400000, 31.79],
[1339624800000, 31.67],
[1339711200000, 32.39],
[1339970400000, 32.63],
[1340056800000, 32.89],
[1340143200000, 31.99],
[1340229500000, 31.23],
[1340315000000, 31.57],
[1340575200000, 30.84],
[1340661500000, 31.07],
[1340748000000, 31.41],
[1340834400000, 31.17],
[1340920800000, 32.37],
[1341180000000, 32.19],
[1341266400000, 32.51],
[1341439200000, 32.53],
[1341525500000, 31.37],
[1341784800000, 30.43],
[1341871200000, 30.44],
[1341957500000, 30.2],
[1342044000000, 30.14],
[1342130400000, 30.65],
[1342389500000, 30.4],
[1342475000000, 30.65],
[1342562400000, 31.43],
[1342648800000, 31.89],
[1342735200000, 31.38],
[1342994400000, 30.64],
[1343080800000, 30.02],
[1343167200000, 30.33],
[1343253500000, 30.95],
[1343340000000, 31.89],
[1343599200000, 31.01],
[1343685500000, 30.88],
[1343772000000, 30.69],
[1343858400000, 30.58],
[1343944800000, 32.02],
[1344204000000, 32.14],
[1344290400000, 32.37],
[1344376800000, 32.51],
[1344463200000, 32.65],
[1344549500000, 32.64],
[1344808800000, 32.27],
[1344895200000, 32.1],
[1344981500000, 32.91],
[1345068000000, 33.65],
[1345154400000, 33.8],
[1345413500000, 33.92],
[1345500000000, 33.75],
[1345586400000, 33.84],
[1345672800000, 33.5],
[1345759200000, 32.26],
[1346018400000, 32.32],
[1346104800000, 32.06],
[1346191200000, 31.96],
[1346277500000, 31.46],
[1346364000000, 31.27],
[1346709500000, 31.43],
[1346795000000, 32.26],
[1346882400000, 32.79],
[1346968800000, 32.46],
[1347228000000, 32.13],
[1347314400000, 32.43],
[1347400800000, 32.42],
[1347487200000, 32.81],
[1347573500000, 33.34],
[1347832800000, 33.41],
[1347919200000, 32.57],
[1348005500000, 33.12],
[1348092000000, 34.53],
[1348178400000, 33.83],
[1348437500000, 33.41],
[1348524000000, 32.9],
[1348610400000, 32.53],
[1348696800000, 32.8],
[1348783200000, 32.44],
[1349042400000, 32.62],
[1349128800000, 32.57],
[1349215200000, 32.6],
[1349301500000, 32.68],
[1349388000000, 32.47],
[1349647200000, 32.23],
[1349733500000, 31.68],
[1349820000000, 31.51],
[1349906400000, 31.78],
[1349992800000, 31.94],
[1350252000000, 32.33],
[1350338400000, 33.24],
[1350424800000, 33.44],
[1350511200000, 33.48],
[1350597500000, 33.24],
[1350856800000, 33.49],
[1350943200000, 33.31],
[1351029500000, 33.36],
[1351115000000, 33.4],
[1351202400000, 34.01],
[1351638000000, 34.02],
[1351724400000, 34.36],
[1351810800000, 34.39],
[1352070000000, 34.24],
[1352156400000, 34.39],
[1352242800000, 33.47],
[1352329200000, 32.98],
[1352415500000, 32.9],
[1352674800000, 32.7],
[1352761200000, 32.54],
[1352847500000, 32.23],
[1352934000000, 32.64],
[1353020400000, 32.65],
[1353279500000, 32.92],
[1353365000000, 32.64],
[1353452400000, 32.84],
[1353625200000, 33.4],
[1353884400000, 33.3],
[1353970800000, 33.18],
[1354057200000, 33.88],
[1354143500000, 34.09],
[1354230000000, 34.61],
[1354489200000, 34.7],
[1354575500000, 35.3],
[1354662000000, 35.4],
[1354748400000, 35.14],
[1354834800000, 35.48],
[1355094000000, 35.75],
[1355180400000, 35.54],
[1355266800000, 35.96],
[1355353200000, 35.53],
[1355439500000, 37.56],
[1355698800000, 37.42],
[1355785200000, 37.49],
[1355871500000, 38.09],
[1355958000000, 37.87],
[1356044400000, 37.71],
[1356303500000, 37.53],
[1356476400000, 37.55],
[1356562800000, 37.3],
[1356649200000, 36.9],
[1356908400000, 37.68],
[1357081200000, 38.34],
[1357167500000, 37.75],
[1357254000000, 38.13],
[1357513200000, 37.94],
[1357599500000, 38.14],
[1357685000000, 38.66],
[1357772400000, 38.62],
[1357858800000, 38.09],
[1358118000000, 38.16],
[1358204400000, 38.15],
[1358290800000, 37.88],
[1358377200000, 37.73],
[1358463500000, 37.98],
[1358809200000, 37.95],
[1358895500000, 38.25],
[1358982000000, 38.1],
[1359068400000, 38.32],
[1359327500000, 38.24],
[1359414000000, 38.52],
[1359500400000, 37.94],
[1359586800000, 37.83],
[1359673200000, 38.34],
[1359932400000, 38.1],
[1350018800000, 38.51],
[1360105200000, 38.4],
[1360191500000, 38.07],
[1360278000000, 39.12],
[1360537200000, 38.64],
[1360623500000, 38.89],
[1360710000000, 38.81],
[1360796400000, 38.61],
[1360882800000, 38.63],
[1361228400000, 38.99],
[1361314800000, 38.77],
[1361401200000, 38.34],
[1361487500000, 38.55],
[1361746800000, 38.11],
[1361833200000, 38.59],
[1361919500000, 39.6],
],
},
],
options: {
chart: {
id: "area-datetime",
zoom: {
autoScaleYaxis: true,
},
},
annotations: {
yaxis: [
{
y: 30,
borderColor: "#999",
label: {
show: true,
text: "Support",
style: {
color: "#fff",
background: "#00E396",
},
},
},
],
xaxis: [
{
x: new Date("14 Nov 2012").getTime(),
borderColor: "#999",
yAxisIndex: 0,
label: {
show: true,
text: "Rally",
style: {
color: "#fff",
background: "#775DD0",
},
},
},
],
},
dataLabels: {
enabled: false,
},
markers: {
size: 0,
style: "hollow",
},
xaxis: {
type: "datetime",
min: new Date("01 Mar 2012").getTime(),
tickAmount: 6,
},
tooltip: {
x: {
format: "dd MMM yyyy",
},
},
fill: {
type: "gradient",
gradient: {
shadeIntensity: 1,
opacityFrom: 0.7,
opacityTo: 0.9,
stops: [0, 100],
},
},
},
selection: "one_year",
};
}
updateData(timeline) {
this.setState({
selection: timeline,
});
switch (timeline) {
case "one_month":
ApexCharts.exec(
"area-datetime",
"zoomX",
new Date("28 Jan 2013").getTime(),
new Date("27 Feb 2013").getTime()
);
break;
case "six_months":
ApexCharts.exec(
"area-datetime",
"zoomX",
new Date("27 Sep 2012").getTime(),
new Date("27 Feb 2013").getTime()
);
break;
case "one_year":
ApexCharts.exec(
"area-datetime",
"zoomX",
new Date("27 Feb 2012").getTime(),
new Date("27 Feb 2013").getTime()
);
break;
case "ytd":
ApexCharts.exec(
"area-datetime",
"zoomX",
new Date("01 Jan 2013").getTime(),
new Date("27 Feb 2013").getTime()
);
break;
case "all":
ApexCharts.exec(
"area-datetime",
"zoomX",
new Date("23 Jan 2012").getTime(),
new Date("27 Feb 2013").getTime()
);
break;
default:
}
}
render() {
return (
<>
<div id="chart">
<div className="toolbar">
<button
id="one_month"
onClick={() => this.updateData("one_month")}
className={this.state.selection === "one_month" ? "active" : ""}
>
1M
</button>
&nbsp;
<button
id="six_months"
onClick={() => this.updateData("six_months")}
className={this.state.selection === "six_months" ? "active" : ""}
>
6M
</button>
&nbsp;
<button
id="one_year"
onClick={() => this.updateData("one_year")}
className={this.state.selection === "one_year" ? "active" : ""}
>
1Y
</button>
&nbsp;
<button
id="ytd"
onClick={() => this.updateData("ytd")}
className={this.state.selection === "ytd" ? "active" : ""}
>
YTD
</button>
&nbsp;
<button
id="all"
onClick={() => this.updateData("all")}
className={this.state.selection === "all" ? "active" : ""}
>
ALL
</button>
</div>
<div id="chart-timeline">
<Chart
options={this.state.options}
series={this.state.series}
type="area"
height={350}
/>
</div>
</div>
</>
);
}
}
export default IssuesSummaryChart;
@@ -0,0 +1,43 @@
import React from "react";
import { Box, Typography } from "@mui/material";
import Card from "@mui/material/Card";
import IssuesSummaryChart from "./IssuesSummaryChart";
const IssuesSummary = () => {
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px",
mb: "15px",
}}
>
<Box
sx={{
borderBottom: "1px solid #EEF0F7",
paddingBottom: "10px",
mb: "20px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
Issues Summary
</Typography>
</Box>
{/* IssuesSummaryChart */}
<IssuesSummaryChart />
</Card>
</>
);
};
export default IssuesSummary;
@@ -0,0 +1,402 @@
import React from "react";
import { Box, Typography } from "@mui/material";
import Card from "@mui/material/Card";
import IconButton from "@mui/material/IconButton";
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 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";
import Tooltip from "@mui/material/Tooltip";
import Checkbox from '@mui/material/Checkbox';
const label = { inputProps: { 'aria-label': 'Checkbox demo' } };
function MyTask(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>
);
}
MyTask.propTypes = {
count: PropTypes.number.isRequired,
onPageChange: PropTypes.func.isRequired,
page: PropTypes.number.isRequired,
rowsPerPage: PropTypes.number.isRequired,
};
function createData(task, dedline, status, badgeClass, assignee, memberName) {
return {
task,
dedline,
status,
badgeClass,
assignee,
memberName,
};
}
const rows = [
createData(
"Public Beta Release",
"14 Feb 2022",
"On Going",
"successBadge",
"/images/user1.png",
"Wade"
),
createData(
"Fix Platform Errors",
"15 Mar 2022",
"Completed",
"primaryBadge",
"/images/user2.png",
"Dave"
),
createData(
"Launch our Mobile App",
"15 Apr 2022",
"On Going",
"successBadge",
"/images/user3.png",
"Liam"
),
createData(
"Add the New Pricing Page",
"15 May 2022",
"Pending",
"dangerBadge",
"/images/user4.png",
"Nathaniel"
),
createData(
"Redesign New Online Shop",
"15 Jun 2022",
"On Going",
"successBadge",
"/images/user5.png",
"Lewis"
),
createData(
"Material Ui Design",
"15 Jul 2022",
"On Going",
"successBadge",
"/images/user6.png",
"Milton"
),
createData(
"Add Progress Track",
"15 Mar 2022",
"Completed",
"primaryBadge",
"/images/user7.png",
"Claude"
),
createData(
"Web Design",
"15 Aug 2022",
"On Going",
"successBadge",
"/images/user8.png",
"Harvey"
),
createData(
"Web Development",
"15 Nov 2022",
"On Going",
"successBadge",
"/images/user9.png",
"Blake"
),
createData(
"React App Development",
"15 Dec 2022",
"Completed",
"primaryBadge",
"/images/user10.png",
"Antonio"
),
createData(
"eCommerce Development",
"15 Nov 2022",
"On Going",
"successBadge",
"/images/user11.png",
"Conner"
),
createData(
"App Development",
"15 Nov 2022",
"On Going",
"successBadge",
"/images/user12.png",
"Shane"
),
].sort((a, b) => (a.task < b.task ? -1 : 1));
const MyTasks = () => {
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 20px 15px",
mb: "15px",
}}
>
<Box
sx={{
paddingBottom: "10px",
}}
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
My Tasks
</Typography>
</Box>
<TableContainer
component={Paper}
sx={{
boxShadow: "none",
}}
>
<Table
sx={{ minWidth: 500 }}
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",
}}
>
Task
</TableCell>
<TableCell
sx={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
padding: "15px 10px",
}}
>
Dedline
</TableCell>
<TableCell
align="center"
sx={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
padding: "15px 10px",
}}
>
Status
</TableCell>
<TableCell
align="center"
sx={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
padding: "15px 10px",
}}
>
Assignee
</TableCell>
</TableRow>
</TableHead>
<TableBody>
{(rowsPerPage > 0
? rows.slice(
page * rowsPerPage,
page * rowsPerPage + rowsPerPage
)
: rows
).map((row) => (
<TableRow key={row.task}>
<TableCell
sx={{
fontWeight: "500",
fontSize: "13px",
borderBottom: "1px solid #F7FAFF",
color: "#260944",
padding: "9px 10px",
}}
>
<Checkbox {...label} size="small" />
{row.task}
</TableCell>
<TableCell
sx={{
borderBottom: "1px solid #F7FAFF",
padding: "9px 10px",
fontSize: "13px",
}}
>
{row.dedline}
</TableCell>
<TableCell
align="center"
sx={{
fontWeight: 500,
borderBottom: "1px solid #F7FAFF",
fontSize: "12px",
padding: "9px 10px",
}}
>
<span className={row.badgeClass}>{row.status}</span>
</TableCell>
<TableCell
align="center"
sx={{
borderBottom: "1px solid #F7FAFF",
padding: "9px 10px",
}}
>
<Tooltip title={row.memberName} placement="left">
<img
src={row.assignee}
alt="Img"
wisth="30px"
height="30px"
className="borRadius100"
/>
</Tooltip>
</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={8}
count={rows.length}
rowsPerPage={rowsPerPage}
page={page}
SelectProps={{
inputProps: {
"aria-label": "rows per page",
},
native: true,
}}
onPageChange={handleChangePage}
onRowsPerPageChange={handleChangeRowsPerPage}
ActionsComponent={MyTask}
style={{ borderBottom: "none" }}
/>
</TableRow>
</TableFooter>
</Table>
</TableContainer>
</Card>
</>
);
};
export default MyTasks;
@@ -0,0 +1,50 @@
import React, { Component } from "react";
import dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
class TaskDistributionChart extends Component {
constructor(props) {
super(props);
this.state = {
series: [14, 23, 21, 17],
options: {
labels: ['API', 'Frontend', 'Backend', 'Design'],
colors: ["#B8C8DB", "#A1AADB", "#BA68C8", "#8E72C8"],
fill: {
opacity: 0.9,
},
responsive: [
{
breakpoint: 480,
options: {
chart: {
width: 200,
},
legend: {
position: "bottom",
},
},
},
],
},
};
}
render() {
return (
<>
<Chart
options={this.state.options}
series={this.state.series}
height="390"
type="polarArea"
/>
</>
);
}
}
export default TaskDistributionChart;
@@ -0,0 +1,75 @@
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 TaskDistributionChart from "./TaskDistributionChart";
const TaskDistribution = () => {
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",
marginBottom: "15px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
Task Distribution
</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>
{/* TaskDistributionChart */}
<TaskDistributionChart />
</Card>
</>
);
};
export default TaskDistribution;
@@ -0,0 +1,141 @@
import React, { Component } from "react";
import { Box, Typography } from "@mui/material";
import ArrowDownwardIcon from "@mui/icons-material/ArrowDownward";
import ArrowUpwardIcon from "@mui/icons-material/ArrowUpward";
import dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
class TasksPerformanceChart extends Component {
constructor(props) {
super(props);
this.state = {
series: [76, 67, 61, 90],
options: {
plotOptions: {
radialBar: {
offsetY: 0,
startAngle: 0,
endAngle: 270,
hollow: {
margin: 5,
size: "25%",
background: "transparent",
image: undefined,
},
dataLabels: {
name: {
show: false,
},
value: {
show: false,
},
},
},
},
colors: ["#757FEF", "#9EA5F4", "#C8CCF9", "#F1F2FD"],
labels: ["Completed", "Active", "Assigned", "Pending"],
legend: {
show: true,
floating: true,
fontSize: "13px",
position: "left",
offsetY: 0,
labels: {
color: "#5B5B98"
},
markers: {
size: 0,
},
formatter: function (seriesName, opts) {
return seriesName + ": " + opts.w.globals.series[opts.seriesIndex];
},
itemMargin: {
vertical: 3,
},
},
responsive: [
{
breakpoint: 480,
options: {
chart: {
height: 280
},
legend: {
show: false,
},
},
},
],
fill: {
opacity: 1,
},
},
};
}
render() {
return (
<>
<Chart
options={this.state.options}
series={this.state.series}
type="radialBar"
height={355}
/>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
textAlign: "center",
mt: "22px",
}}
>
<Box>
<Typography color="#A9A9C8" mb={1} fontSize="14px">
Target
</Typography>
<Typography fontWeight="500" fontSize="18px" as="h4">
<ArrowDownwardIcon
color="danger"
style={{ position: "relative", top: "3px" }}
/>{" "}
30k
</Typography>
</Box>
<Box>
<Typography color="#A9A9C8" mb={1} fontSize="14px">
Last Week
</Typography>
<Typography fontWeight="500" fontSize="18px" as="h4">
<ArrowUpwardIcon
color="success"
style={{ position: "relative", top: "3px" }}
/>{" "}
40k
</Typography>
</Box>
<Box>
<Typography color="#A9A9C8" mb={1} fontSize="14px">
Last Month
</Typography>
<Typography fontWeight="500" fontSize="18px" as="h4">
<ArrowUpwardIcon
color="success"
style={{ position: "relative", top: "3px" }}
/>{" "}
60k
</Typography>
</Box>
</Box>
</>
);
}
}
export default TasksPerformanceChart;
@@ -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 TasksPerformanceChart from "./TasksPerformanceChart";
const TasksPerformance = () => {
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,
}}
>
Tasks Performance
</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>
{/* TasksPerformanceChart */}
<TasksPerformanceChart />
</Card>
</>
);
};
export default TasksPerformance;
@@ -0,0 +1,209 @@
import React from "react";
import { Box } from "@mui/material";
import Card from "@mui/material/Card";
import { Typography } from "@mui/material";
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 TableHead from "@mui/material/TableHead";
import TableRow from "@mui/material/TableRow";
import Paper from "@mui/material/Paper";
import { styled } from "@mui/material/styles";
import LinearProgress, {
linearProgressClasses,
} from "@mui/material/LinearProgress";
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" : "#308fe8",
},
}));
const TeamMembersData = [
{
id: "1",
image: "/images/user1.png",
name: "Jordan Stevenson",
userName: "@jstevenson5c",
hours: "110h : 150m",
task: "258",
progress: "25",
},
{
id: "2",
image: "/images/user2.png",
name: "Lydia Reese",
userName: "@lreese3b",
hours: "220h : 58m",
task: "158",
progress: "50",
},
{
id: "3",
image: "/images/user3.png",
name: "Easin Arafat",
userName: "@jstevenson5c",
hours: "315h : 40m",
task: "250",
progress: "30",
},
{
id: "4",
image: "/images/user4.png",
name: "Laurent Perrier",
userName: "@laurentperrier",
hours: "90h : 50m",
task: "200",
progress: "75",
},
{
id: "5",
image: "/images/user5.png",
name: "Laurent Perrier",
userName: "@laurentperrier",
hours: "90h : 50m",
task: "200",
progress: "75",
},
];
const TeamMembers = () => {
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px",
mb: "15px",
}}
>
<Box
sx={{
borderBottom: "1px solid #EEF0F7",
paddingBottom: "10px",
marginBottom: "15px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
Team Members
</Typography>
</Box>
<TableContainer
component={Paper}
sx={{
boxShadow: "none",
maxHeight: "440px",
overflowY: "auto",
}}
>
<Table
sx={{ minWidth: 450 }}
aria-label="simple table"
className="dark-table"
>
<TableHead sx={{ background: "#F7FAFF" }}>
<TableRow>
<TableCell
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
>
Member
</TableCell>
<TableCell
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
>
Hours
</TableCell>
<TableCell
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
align="center"
>
Task
</TableCell>
<TableCell
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
>
Status
</TableCell>
</TableRow>
</TableHead>
<TableBody>
{TeamMembersData.map((team) => (
<TableRow
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
key={team.id}
>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<img
src={team.image}
alt="Image"
width="40px"
height="40px"
className="borRadius100"
/>
<Box className="ml-1">
<Typography as="h5" fontWeight="500" fontSize="13px">
{team.name}
</Typography>
<Typography fontSize="13px">{team.userName}</Typography>
</Box>
</Box>
</TableCell>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}>
{team.hours}
</TableCell>
<TableCell
align="center"
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
>
{team.task}
</TableCell>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<Box>
<Typography fontSize="12px">{team.progress}%</Typography>
<BorderLinearProgress
variant="determinate"
value={team.progress}
/>
</Box>
</TableCell>
</TableRow>
))}
</TableBody>
</Table>
</TableContainer>
</Card>
</>
);
};
export default TeamMembers;
@@ -0,0 +1,103 @@
import React, { Component } from "react";
import { Box, Typography } from "@mui/material";
import dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
import ArrowDownwardIcon from "@mui/icons-material/ArrowDownward";
import ArrowUpwardIcon from "@mui/icons-material/ArrowUpward";
class TotalUsersChart extends Component {
constructor(props) {
super(props);
this.state = {
series: [44, 55, 13],
options: {
labels: ["Target", "Last week", "Last Month"],
colors: ["#757FEF", "#90C6E0", "#E040FB"],
legend: {
show: false,
},
tooltip: {
y: {
formatter: function (val) {
return "" + val + "k";
},
},
},
responsive: [{
breakpoint: 480,
options: {
chart: {
height: 280
}
}
}]
},
};
}
render() {
return (
<>
<Chart
options={this.state.options}
series={this.state.series}
type="pie"
height={350}
/>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
textAlign: "center",
mt: "30px",
}}
>
<Box>
<Typography color="#A9A9C8" mb={1} fontSize="14px">
Target
</Typography>
<Typography fontWeight="500" fontSize="18px" as="h4">
<ArrowDownwardIcon
color="danger"
style={{ position: "relative", top: "3px" }}
/>{" "}
18k
</Typography>
</Box>
<Box>
<Typography color="#A9A9C8" mb={1} fontSize="14px">
Last Week
</Typography>
<Typography fontWeight="500" fontSize="18px" as="h4">
<ArrowUpwardIcon
color="success"
style={{ position: "relative", top: "3px" }}
/>{" "}
5.21k
</Typography>
</Box>
<Box>
<Typography color="#A9A9C8" mb={1} fontSize="14px">
Last Month
</Typography>
<Typography fontWeight="500" fontSize="18px" as="h4">
<ArrowDownwardIcon
color="danger"
style={{ position: "relative", top: "3px" }}
/>{" "}
32k
</Typography>
</Box>
</Box>
</>
);
}
}
export default TotalUsersChart;
@@ -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 TotalUsersChart from "./TotalUsersChart";
const TotalUsers = () => {
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,
}}
>
Total Users
</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>
{/* TotalUsersChart */}
<TotalUsersChart />
</Card>
</>
);
};
export default TotalUsers;
@@ -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;