From 38beac66e10b02c840d7628e342159122cb2dd15 Mon Sep 17 00:00:00 2001 From: naveen prabhu Date: Fri, 22 May 2026 11:23:26 +0530 Subject: [PATCH] export csv --- ipi-survey-platform/src/App.jsx | 13 +- .../src/components/admin/AdminHeader.jsx | 9 ++ .../src/pages/Reports/Reports.jsx | 152 ++++++++++++++++++ 3 files changed, 173 insertions(+), 1 deletion(-) create mode 100644 ipi-survey-platform/src/pages/Reports/Reports.jsx diff --git a/ipi-survey-platform/src/App.jsx b/ipi-survey-platform/src/App.jsx index 6431aba..9fcd4d4 100644 --- a/ipi-survey-platform/src/App.jsx +++ b/ipi-survey-platform/src/App.jsx @@ -19,6 +19,7 @@ import PublicContactForm from '@/pages/PublicContactForm'; import EditCompanyProfile from '@/pages/Admin/configuration/EditCompanyProfile'; import Navbar from './pages/LandingPage/component/Navbar'; import ManufacturingIndex from '@/pages/ManufacturingIndex/ManufacturingIndex'; +import Reports from '@/pages/Reports/Reports'; const RequireOTPVerification = ({ children }) => { const [isVerified, setIsVerified] = useState(false); @@ -315,6 +316,16 @@ function App() { {/* /> */} {/* */} + + + + + } +/> + @@ -400,4 +411,4 @@ function App() { ); } -export default App; \ No newline at end of file +export default App; diff --git a/ipi-survey-platform/src/components/admin/AdminHeader.jsx b/ipi-survey-platform/src/components/admin/AdminHeader.jsx index 56b87fc..10c0012 100644 --- a/ipi-survey-platform/src/components/admin/AdminHeader.jsx +++ b/ipi-survey-platform/src/components/admin/AdminHeader.jsx @@ -2,6 +2,7 @@ import React, { useRef, useEffect } from 'react'; import { NavLink, useNavigate } from 'react-router-dom'; import { logout as logoutApi } from '@/services/auth/authService'; import { TbReport } from "react-icons/tb"; +import { HiOutlineDocumentReport } from "react-icons/hi"; const logoSrc = '/assets/images/FCSCLogo.svg'; const dashboardIconActiveSrc = '/assets/images/cuida_dashboard-outline.svg'; @@ -11,6 +12,8 @@ const configActiveSrc = '/assets/images/configrationicon-active.svg'; const configInactiveSrc = '/assets/images/configrationicon-inactive.svg'; const manufacturingIndexActive = ; const manufacturingIndexInactive = ; +const reportsActive = ; +const reportsInactive = ; const userActiveSrc = '/assets/images/User-active.svg'; const userInactiveSrc = '/assets/images/User-inactive.svg'; const manageSubmissionInactiveSrc = '/assets/images/managesubmission - inactive.svg'; @@ -170,6 +173,12 @@ const AdminHeader = () => { label="Manufacturing Index" iconActive={manufacturingIndexActive} iconInactive={manufacturingIndexInactive} + /> + diff --git a/ipi-survey-platform/src/pages/Reports/Reports.jsx b/ipi-survey-platform/src/pages/Reports/Reports.jsx new file mode 100644 index 0000000..4eb6a5a --- /dev/null +++ b/ipi-survey-platform/src/pages/Reports/Reports.jsx @@ -0,0 +1,152 @@ +import React from 'react'; +import AdminHeader from '@/components/admin/AdminHeader'; + +const reportCards = [ + { + id: 1, + title: 'Establishment Data (Quarterly Format)', + description: 'Export establishment-level structured data in a quarterly format.', + icon: ( + + + + + + + + ), + }, + { + id: 2, + title: 'Product Data (Quarterly Format)', + description: 'Export product data at item level in a quarterly format.', + icon: ( + + + + + + + ), + }, + { + id: 3, + title: 'Value Data (Quarterly Format)', + description: 'Export value data at item level in a quarterly format.', + icon: ( + + + + + + ), + }, +]; + +const ExportIcon = () => ( + + + + + +); + +const Reports = () => { + return ( +
+ + +
+
+

+ Reports +

+ +
+
+
+ + + + +
+ +
+

This section provides reports covering the period from 2022 to the current quarter.

+

+ The reports are generated based on the data submitted during this period and are + available for review and analysis. +

+
+
+
+ +
+ {reportCards.map((card) => ( +
+
+
+ {card.icon} +
+ +
+

+ {card.id}. {card.title} +

+

{card.description}

+
+
+ +
+ +
+
+ ))} +
+
+
+
+ ); +}; + +export default Reports;