diff --git a/public/learn-road-safety.mp4 b/public/learn-road-safety.mp4
new file mode 100644
index 0000000..8511000
Binary files /dev/null and b/public/learn-road-safety.mp4 differ
diff --git a/src/components/dashboard/roadSafety/operator/Learn/index.jsx b/src/components/dashboard/roadSafety/operator/Learn/index.jsx
new file mode 100644
index 0000000..8ea5000
--- /dev/null
+++ b/src/components/dashboard/roadSafety/operator/Learn/index.jsx
@@ -0,0 +1,39 @@
+"use client";
+import { useTheme } from "@emotion/react";
+import { OndemandVideo } from "@mui/icons-material";
+import { Button, IconButton, useMediaQuery } from "@mui/material";
+
+const Learn = () => {
+ const theme = useTheme();
+ const isMobile = useMediaQuery(theme.breakpoints.down("sm"));
+
+ const handleClick = () => {
+ const link = document.createElement("a");
+ link.href = `/v3/learn-road-safety.mp4`;
+ link.download = "آموزش بخش نگهداری حریم راه - سامانه جامع راهداری.mp4";
+ document.body.appendChild(link);
+ link.click();
+ document.body.removeChild(link);
+ }
+
+ return (
+ <>
+ {isMobile ? (
+
+
+
+ ) : (
+ }
+ onClick={handleClick}
+ >
+ آموزش
+
+ )}
+ >
+ );
+};
+export default Learn;
\ No newline at end of file
diff --git a/src/components/dashboard/roadSafety/operator/Toolbar.jsx b/src/components/dashboard/roadSafety/operator/Toolbar.jsx
index fe8ff36..0f96d53 100644
--- a/src/components/dashboard/roadSafety/operator/Toolbar.jsx
+++ b/src/components/dashboard/roadSafety/operator/Toolbar.jsx
@@ -2,6 +2,7 @@ import { Stack } from "@mui/material";
import StepOne from "./Form/StepOne";
import PrintExcel from "./ExcelPrint";
import { usePermissions } from "@/lib/hooks/usePermissions";
+import Learn from "./Learn";
const Toolbar = ({ table, filterData, mutate }) => {
const { data: userPermissions } = usePermissions();
@@ -10,6 +11,7 @@ const Toolbar = ({ table, filterData, mutate }) => {
{hasCreatePermission && }
+
);
};
diff --git a/src/components/dashboard/roadSafety/supervisor/Learn/index.jsx b/src/components/dashboard/roadSafety/supervisor/Learn/index.jsx
new file mode 100644
index 0000000..8ea5000
--- /dev/null
+++ b/src/components/dashboard/roadSafety/supervisor/Learn/index.jsx
@@ -0,0 +1,39 @@
+"use client";
+import { useTheme } from "@emotion/react";
+import { OndemandVideo } from "@mui/icons-material";
+import { Button, IconButton, useMediaQuery } from "@mui/material";
+
+const Learn = () => {
+ const theme = useTheme();
+ const isMobile = useMediaQuery(theme.breakpoints.down("sm"));
+
+ const handleClick = () => {
+ const link = document.createElement("a");
+ link.href = `/v3/learn-road-safety.mp4`;
+ link.download = "آموزش بخش نگهداری حریم راه - سامانه جامع راهداری.mp4";
+ document.body.appendChild(link);
+ link.click();
+ document.body.removeChild(link);
+ }
+
+ return (
+ <>
+ {isMobile ? (
+
+
+
+ ) : (
+ }
+ onClick={handleClick}
+ >
+ آموزش
+
+ )}
+ >
+ );
+};
+export default Learn;
\ No newline at end of file
diff --git a/src/components/dashboard/roadSafety/supervisor/Toolbar.jsx b/src/components/dashboard/roadSafety/supervisor/Toolbar.jsx
index 88f55fb..0ea09ad 100644
--- a/src/components/dashboard/roadSafety/supervisor/Toolbar.jsx
+++ b/src/components/dashboard/roadSafety/supervisor/Toolbar.jsx
@@ -1,10 +1,12 @@
import { Stack } from "@mui/material";
import PrintExcel from "./ExcelPrint";
+import Learn from "./Learn";
const Toolbar = ({ table, filterData, mutate }) => {
return (
+
);
};