+>(({ className, ...props }, ref) => (
+ [role=checkbox]]:translate-y-[2px]",
+ className
+ )}
+ {...props}
+ />
+))
+TableCell.displayName = "TableCell"
+
+const TableCaption = React.forwardRef<
+ HTMLTableCaptionElement,
+ React.HTMLAttributes
+>(({ className, ...props }, ref) => (
+
+))
+TableCaption.displayName = "TableCaption"
+
+export {
+ Table,
+ TableHeader,
+ TableBody,
+ TableFooter,
+ TableHead,
+ TableRow,
+ TableCell,
+ TableCaption,
+}
diff --git a/components/ui/tabs.tsx b/components/ui/tabs.tsx
new file mode 100644
index 0000000..850853a
--- /dev/null
+++ b/components/ui/tabs.tsx
@@ -0,0 +1,55 @@
+"use client"
+
+import * as React from "react"
+import * as TabsPrimitive from "@radix-ui/react-tabs"
+
+import { cn } from "@/lib/utils"
+
+const Tabs = TabsPrimitive.Root
+
+const TabsList = React.forwardRef<
+ React.ElementRef,
+ React.ComponentPropsWithoutRef
+>(({ className, ...props }, ref) => (
+
+))
+TabsList.displayName = TabsPrimitive.List.displayName
+
+const TabsTrigger = React.forwardRef<
+ React.ElementRef,
+ React.ComponentPropsWithoutRef
+>(({ className, ...props }, ref) => (
+
+))
+TabsTrigger.displayName = TabsPrimitive.Trigger.displayName
+
+const TabsContent = React.forwardRef<
+ React.ElementRef,
+ React.ComponentPropsWithoutRef
+>(({ className, ...props }, ref) => (
+
+))
+TabsContent.displayName = TabsPrimitive.Content.displayName
+
+export { Tabs, TabsList, TabsTrigger, TabsContent }
diff --git a/constants/index.tsx b/constants/index.tsx
index c5b47c8..c778255 100644
--- a/constants/index.tsx
+++ b/constants/index.tsx
@@ -1,21 +1,41 @@
-
import { LuMapPin } from "react-icons/lu";
import { HiOutlineMail } from "react-icons/hi";
import { FiPhone } from "react-icons/fi";
export const menuItems = [
- { id: 1, name: "صفحه اصلی" , href:"/" },
- { id: 2, name: "اخبار" , href:"/" },
- { id: 3, name: "درباره ما" , href:"/" },
- { id: 4, name: "تماس با ما" , href:"/CallUs" },
- { id: 5, name: "پیگیری" , href:"/" },
- { id: 6, name: "ورود به پنل کاربری" , href:"/Login" },
-];
+ { id: 1, name: "صفحه اصلی", href: "/" },
+ { id: 2, name: "اخبار", href: "/" },
+ { id: 3, name: "درباره ما", href: "/" },
+ { id: 4, name: "تماس با ما", href: "/CallUs" },
+ { id: 5, name: "پیگیری", href: "/" },
+ { id: 6, name: "ورود به پنل کاربری", href: "/Login" },
+];
export const boxItems = [
- { id: 1, name: "ثبت شکایت", icon: "/img/box1.svg" , icon2: "/img/box1-hover.svg" , description:"ارسال درخواست نارضایتی از پرسنل", link:"/RequestStep1"},
- { id: 2, name: "پیگیری شکایت", icon: "/img/box2.svg" , icon2: "/img/box2-hover.svg" , description:"پیگیری درخواست ارسال شده" , link:"/FollowUp"},
- { id: 3, name: "مشاهده آمار", icon: "/img/box3.svg" , icon2: "/img/box3-hover.svg" , description:"مشاهده آمار و گزارشات درخواست ها" , link:"/"},
+ {
+ id: 1,
+ name: "ثبت شکایت",
+ icon: "/img/box1.svg",
+ icon2: "/img/box1-hover.svg",
+ description: "ارسال درخواست نارضایتی از پرسنل",
+ link: "/RequestStep1",
+ },
+ {
+ id: 2,
+ name: "پیگیری شکایت",
+ icon: "/img/box2.svg",
+ icon2: "/img/box2-hover.svg",
+ description: "پیگیری درخواست ارسال شده",
+ link: "/FollowUp",
+ },
+ {
+ id: 3,
+ name: "مشاهده آمار",
+ icon: "/img/box3.svg",
+ icon2: "/img/box3-hover.svg",
+ description: "مشاهده آمار و گزارشات درخواست ها",
+ link: "/",
+ },
];
export const newsItems = [
@@ -57,34 +77,107 @@ export const requestItems = [
{ id: 4, name: " اعلام نتیجه درخواست" },
];
-
-
export const aboutFooterItems = [
- { id: 1, name: "لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و بااستفاده از طراحان گرافیک است. چاپگرها و متون بلکه روزنامه و مجلهدر ستون و سطرآنچنان که لازم است لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ " },
+ {
+ id: 1,
+ name: "لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و بااستفاده از طراحان گرافیک است. چاپگرها و متون بلکه روزنامه و مجلهدر ستون و سطرآنچنان که لازم است لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ ",
+ },
];
export const footerItems = [
- { id: 1, name: "قوانین مربوط به سوت زنی" , href:"/"},
- { id: 2, name: "ارسال گزارش در سامانه سوت زنی قوه قضاییه", href:"/" },
- { id: 3, name: "وب سایت قوه قضاییه" , href:"/"},
- { id: 4, name: " وب سایت ریاست جمهوری" , href:"/"},
+ { id: 1, name: "قوانین مربوط به سوت زنی", href: "/" },
+ { id: 2, name: "ارسال گزارش در سامانه سوت زنی قوه قضاییه", href: "/" },
+ { id: 3, name: "وب سایت قوه قضاییه", href: "/" },
+ { id: 4, name: " وب سایت ریاست جمهوری", href: "/" },
];
-
export const callUsItems = [
- { id: 1, title: "نشانی", icon: , description:" نشانی ما جهت ارتباط ", description2:"google map"},
- { id: 2, title: "نشانی الکترونیک", icon: , description:"جهت ارتباط ما با باا شماره" , description2:"sotzani@gamil.com"},
- { id: 3, title: "تماس با ما ", icon: , description:"جهت ارتباط ما با باا شماره" , description2:"03531234567"},
+ {
+ id: 1,
+ title: "نشانی",
+ icon: ,
+ description: " نشانی ما جهت ارتباط ",
+ description2: "google map",
+ },
+ {
+ id: 2,
+ title: "نشانی الکترونیک",
+ icon: ,
+ description: "جهت ارتباط ما با باا شماره",
+ description2: "sotzani@gamil.com",
+ },
+ {
+ id: 3,
+ title: "تماس با ما ",
+ icon: ,
+ description: "جهت ارتباط ما با باا شماره",
+ description2: "03531234567",
+ },
];
-
export const ControllerMenuItems = [
- { id: 1, name: "داشبورد" , href:"/" },
- { id: 2, name: "شکایات" , href:"/" },
- { id: 3, name: "گزارشات و آمار" , href:"/" },
-];
+ { id: 1, name: "داشبورد", href: "/UserPanel/ControllerDashboard" },
+ { id: 2, name: "شکایات", href: "/UserPanel/ControllerDashboard/Complaints" },
+ {
+ id: 3,
+ name: "گزارشات و آمار",
+ href: "/UserPanel/ControllerDashboard/Reports",
+ },
+];
export const AdminMenuItems = [
- { id: 1, name: "داشبورد" , href:"/" },
- { id: 2, name: "شکایات" , href:"/" },
- { id: 3, name: "گزارشات و آمار" , href:"/" },
-];
+ { id: 1, name: "داشبورد", href: "/" },
+ { id: 2, name: "شکایات", href: "/" },
+ { id: 3, name: "گزارشات و آمار", href: "/" },
+];
+
+export const ControllerTableItems = [
+ {
+ id: 1,
+ date: "1402/09/05",
+ title: "درخواست رشوه ",
+ content: "واحد روابط عمومی شهرداری",
+ },
+ {
+ id: 2,
+ date: "1402/09/05",
+ title: "درخواست رشوه ",
+ content: "واحد روابط عمومی شهرداری",
+ },
+ {
+ id: 3,
+ date: "1402/09/05",
+ title: "درخواست رشوه ",
+ content: "واحد روابط عمومی شهرداری",
+ },
+];
+
+export const ComplainDetailsItems = [
+ {
+ id: 1,
+ title: "ثبت شکایت",
+ desc: "سند 54841",
+ date: "1402/09/05",
+ time: " 12:58 ",
+ },
+ {
+ id: 2,
+ title: "تایید توسط بازرس ...",
+ desc: "سند 54841",
+ date: "1402/09/05",
+ time: " 12:58 ",
+ },
+ {
+ id: 3,
+ title: "ارجاع به واحد...",
+ desc: "سند 54841",
+ date: "1402/09/05",
+ time: " 12:58 ",
+ },
+ {
+ id: 4,
+ title: "پاسخ",
+ desc: "سند 54841",
+ date: "1402/09/05",
+ time: " 12:58 ",
+ },
+];
diff --git a/package-lock.json b/package-lock.json
index 278b2a9..43cc5ef 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -12,9 +12,11 @@
"@radix-ui/react-alert-dialog": "^1.0.5",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-slot": "^1.0.2",
+ "@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-toast": "^1.1.5",
"@tanstack/react-query": "^5.8.7",
"@uidotdev/usehooks": "^2.4.1",
+ "chart.js": "^4.4.1",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
"framer-motion": "^10.16.16",
@@ -24,6 +26,7 @@
"lucide-react": "^0.292.0",
"next": "14.0.3",
"react": "^18.2.0",
+ "react-chartjs-2": "^5.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.48.2",
"react-icons": "^4.12.0",
@@ -35,6 +38,7 @@
"zod": "^3.22.4"
},
"devDependencies": {
+ "@faker-js/faker": "^8.3.1",
"@types/leaflet": "^1.9.8",
"@types/node": "^20",
"@types/react": "^18.2.43",
@@ -149,6 +153,22 @@
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
}
},
+ "node_modules/@faker-js/faker": {
+ "version": "8.3.1",
+ "resolved": "https://registry.npmjs.org/@faker-js/faker/-/faker-8.3.1.tgz",
+ "integrity": "sha512-FdgpFxY6V6rLZE9mmIBb9hM0xpfvQOSNOLnzolzKwsE1DH+gC7lEKV1p1IbR0lAYyvYd5a4u3qWJzowUkw1bIw==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/fakerjs"
+ }
+ ],
+ "engines": {
+ "node": "^14.17.0 || ^16.13.0 || >=18.0.0",
+ "npm": ">=6.14.13"
+ }
+ },
"node_modules/@googlemaps/js-api-loader": {
"version": "1.16.2",
"resolved": "https://registry.npmjs.org/@googlemaps/js-api-loader/-/js-api-loader-1.16.2.tgz",
@@ -242,6 +262,11 @@
"@jridgewell/sourcemap-codec": "^1.4.14"
}
},
+ "node_modules/@kurkle/color": {
+ "version": "0.3.2",
+ "resolved": "https://registry.npmjs.org/@kurkle/color/-/color-0.3.2.tgz",
+ "integrity": "sha512-fuscdXJ9G1qb7W8VdHi+IwRqij3lBkosAm4ydQtEmbY58OzHXqQhvlxqEkoz0yssNVn38bcpRWgA9PP+OGoisw=="
+ },
"node_modules/@next/env": {
"version": "14.0.3",
"resolved": "https://registry.npmjs.org/@next/env/-/env-14.0.3.tgz",
@@ -555,6 +580,23 @@
}
}
},
+ "node_modules/@radix-ui/react-direction": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.0.1.tgz",
+ "integrity": "sha512-RXcvnXgyvYvBEOhCBuddKecVkoMiI10Jcm5cTI7abJRAHYfFxeu+FBQs/DvdxSYucxR5mna0dNsL6QFlds5TMA==",
+ "dependencies": {
+ "@babel/runtime": "^7.13.10"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
"node_modules/@radix-ui/react-dismissable-layer": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.0.5.tgz",
@@ -735,6 +777,37 @@
}
}
},
+ "node_modules/@radix-ui/react-roving-focus": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-roving-focus/-/react-roving-focus-1.0.4.tgz",
+ "integrity": "sha512-2mUg5Mgcu001VkGy+FfzZyzbmuUWzgWkj3rvv4yu+mLw03+mTzbxZHvfcGyFp2b8EkQeMkpRQ5FiA2Vr2O6TeQ==",
+ "dependencies": {
+ "@babel/runtime": "^7.13.10",
+ "@radix-ui/primitive": "1.0.1",
+ "@radix-ui/react-collection": "1.0.3",
+ "@radix-ui/react-compose-refs": "1.0.1",
+ "@radix-ui/react-context": "1.0.1",
+ "@radix-ui/react-direction": "1.0.1",
+ "@radix-ui/react-id": "1.0.1",
+ "@radix-ui/react-primitive": "1.0.3",
+ "@radix-ui/react-use-callback-ref": "1.0.1",
+ "@radix-ui/react-use-controllable-state": "1.0.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0",
+ "react-dom": "^16.8 || ^17.0 || ^18.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
"node_modules/@radix-ui/react-slot": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.0.2.tgz",
@@ -753,6 +826,36 @@
}
}
},
+ "node_modules/@radix-ui/react-tabs": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-tabs/-/react-tabs-1.0.4.tgz",
+ "integrity": "sha512-egZfYY/+wRNCflXNHx+dePvnz9FbmssDTJBtgRfDY7e8SE5oIo3Py2eCB1ckAbh1Q7cQ/6yJZThJ++sgbxibog==",
+ "dependencies": {
+ "@babel/runtime": "^7.13.10",
+ "@radix-ui/primitive": "1.0.1",
+ "@radix-ui/react-context": "1.0.1",
+ "@radix-ui/react-direction": "1.0.1",
+ "@radix-ui/react-id": "1.0.1",
+ "@radix-ui/react-presence": "1.0.1",
+ "@radix-ui/react-primitive": "1.0.3",
+ "@radix-ui/react-roving-focus": "1.0.4",
+ "@radix-ui/react-use-controllable-state": "1.0.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0",
+ "react-dom": "^16.8 || ^17.0 || ^18.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
"node_modules/@radix-ui/react-toast": {
"version": "1.1.5",
"resolved": "https://registry.npmjs.org/@radix-ui/react-toast/-/react-toast-1.1.5.tgz",
@@ -1593,6 +1696,17 @@
"url": "https://github.com/chalk/chalk?sponsor=1"
}
},
+ "node_modules/chart.js": {
+ "version": "4.4.1",
+ "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-4.4.1.tgz",
+ "integrity": "sha512-C74QN1bxwV1v2PEujhmKjOZ7iUM4w6BWs23Md/6aOZZSlwMzeCIDGuZay++rBgChYru7/+QFeoQW0fQoP534Dg==",
+ "dependencies": {
+ "@kurkle/color": "^0.3.0"
+ },
+ "engines": {
+ "pnpm": ">=7"
+ }
+ },
"node_modules/chokidar": {
"version": "3.5.3",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",
@@ -4157,6 +4271,15 @@
"node": ">=0.10.0"
}
},
+ "node_modules/react-chartjs-2": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/react-chartjs-2/-/react-chartjs-2-5.2.0.tgz",
+ "integrity": "sha512-98iN5aguJyVSxp5U3CblRLH67J8gkfyGNbiK3c+l1QI/G4irHMPQw44aEPmjVag+YKTyQ260NcF82GTQ3bdscA==",
+ "peerDependencies": {
+ "chart.js": "^4.1.1",
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
"node_modules/react-dom": {
"version": "18.2.0",
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz",
diff --git a/package.json b/package.json
index da8406e..294ca98 100644
--- a/package.json
+++ b/package.json
@@ -13,9 +13,11 @@
"@radix-ui/react-alert-dialog": "^1.0.5",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-slot": "^1.0.2",
+ "@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-toast": "^1.1.5",
"@tanstack/react-query": "^5.8.7",
"@uidotdev/usehooks": "^2.4.1",
+ "chart.js": "^4.4.1",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
"framer-motion": "^10.16.16",
@@ -25,6 +27,7 @@
"lucide-react": "^0.292.0",
"next": "14.0.3",
"react": "^18.2.0",
+ "react-chartjs-2": "^5.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.48.2",
"react-icons": "^4.12.0",
@@ -36,6 +39,7 @@
"zod": "^3.22.4"
},
"devDependencies": {
+ "@faker-js/faker": "^8.3.1",
"@types/leaflet": "^1.9.8",
"@types/node": "^20",
"@types/react": "^18.2.43",
diff --git a/public/img/bluepoint.svg b/public/img/bluepoint.svg
new file mode 100644
index 0000000..7f30273
--- /dev/null
+++ b/public/img/bluepoint.svg
@@ -0,0 +1,3 @@
+
+
+
diff --git a/public/img/greenPoint.png b/public/img/greenPoint.png
new file mode 100644
index 0000000..20f3e6b
Binary files /dev/null and b/public/img/greenPoint.png differ
diff --git a/public/img/greenPoint.svg b/public/img/greenPoint.svg
new file mode 100644
index 0000000..7791d76
--- /dev/null
+++ b/public/img/greenPoint.svg
@@ -0,0 +1,3 @@
+
+
+
diff --git a/public/img/tracker-event.png b/public/img/tracker-event.png
new file mode 100644
index 0000000..3cb96a7
Binary files /dev/null and b/public/img/tracker-event.png differ