diff --git a/src/views/apps/report/ReportCard.tsx b/src/views/apps/report/ReportCard.tsx index 77e5e68..093ebb6 100644 --- a/src/views/apps/report/ReportCard.tsx +++ b/src/views/apps/report/ReportCard.tsx @@ -46,7 +46,7 @@ const ReportCard = (props: ReportCardProps) => {
- + {title}
diff --git a/src/views/apps/report/ReportFinancialList.tsx b/src/views/apps/report/ReportFinancialList.tsx index 74db207..9c78c5b 100644 --- a/src/views/apps/report/ReportFinancialList.tsx +++ b/src/views/apps/report/ReportFinancialList.tsx @@ -25,12 +25,17 @@ const ReportFinancialList: React.FC = () => { title: 'Neraca', iconClass: 'tabler-cash', link: getLocalizedUrl(`/apps/report/neraca`, locale as Locale) + }, + { + title: 'Ringkasan Eksekutif', + iconClass: 'tabler-cash', + link: getLocalizedUrl(`/apps/report/neraca`, locale as Locale) } ] return (
- + Finansial diff --git a/src/views/apps/report/ReportPurchaseList.tsx b/src/views/apps/report/ReportPurchaseList.tsx new file mode 100644 index 0000000..a28d799 --- /dev/null +++ b/src/views/apps/report/ReportPurchaseList.tsx @@ -0,0 +1,58 @@ +'use client' + +import { Container, Typography } from '@mui/material' +import Grid from '@mui/material/Grid2' +import ReportCard from './ReportCard' +import { getLocalizedUrl } from '@/utils/i18n' +import { Locale } from '@/configs/i18n' +import { useParams } from 'next/navigation' + +const ReportPurchaseList: React.FC = () => { + const { lang: locale } = useParams() + + const purchaseReports = [ + { + title: 'Detail Pembelian', + iconClass: 'tabler-shopping-cart', + link: '' + }, + { + title: 'Tagihan Vendor', + iconClass: 'tabler-shopping-cart', + link: '' + }, + { + title: 'Pembelian per Produk', + iconClass: 'tabler-shopping-cart', + link: '' + }, + { + title: 'Pembelian per Vendor', + iconClass: 'tabler-shopping-cart', + link: '' + }, + { + title: 'Pembelian Produk per Vendor', + iconClass: 'tabler-shopping-cart', + link: '' + } + ] + + return ( +
+ + Pembelian + + + + {purchaseReports.map((report, index) => ( + + + + ))} + +
+ ) +} + +export default ReportPurchaseList diff --git a/src/views/apps/report/ReportSalesList.tsx b/src/views/apps/report/ReportSalesList.tsx new file mode 100644 index 0000000..cdd78cb --- /dev/null +++ b/src/views/apps/report/ReportSalesList.tsx @@ -0,0 +1,63 @@ +'use client' + +import { Container, Typography } from '@mui/material' +import Grid from '@mui/material/Grid2' +import ReportCard from './ReportCard' +import { getLocalizedUrl } from '@/utils/i18n' +import { Locale } from '@/configs/i18n' +import { useParams } from 'next/navigation' + +const ReportSalesList: React.FC = () => { + const { lang: locale } = useParams() + + const salesReports = [ + { + title: 'Detail Penjualan', + iconClass: 'tabler-receipt-2', + link: '' + }, + { + title: 'Tagihan Pelanggan', + iconClass: 'tabler-receipt-2', + link: '' + }, + { + title: 'Penjualan per Produk', + iconClass: 'tabler-receipt-2', + link: '' + }, + { + title: 'Penjualan per Kategori Produk', + iconClass: 'tabler-receipt-2', + link: '' + }, + { + title: 'Penjualan Produk per Pelanggan', + iconClass: 'tabler-receipt-2', + link: '' + }, + { + title: 'Pemesanan per Produk', + iconClass: 'tabler-receipt-2', + link: '' + } + ] + + return ( +
+ + Penjualan + + + + {salesReports.map((report, index) => ( + + + + ))} + +
+ ) +} + +export default ReportSalesList diff --git a/src/views/apps/report/index.tsx b/src/views/apps/report/index.tsx index d99eebc..87c14ae 100644 --- a/src/views/apps/report/index.tsx +++ b/src/views/apps/report/index.tsx @@ -1,6 +1,8 @@ import Grid from '@mui/material/Grid2' import ReportHeader from './ReportHeader' import ReportFinancialList from './ReportFinancialList' +import ReportSalesList from './ReportSalesList' +import ReportPurchaseList from './ReportPurchaseList' const ReportList = () => { return ( @@ -11,6 +13,12 @@ const ReportList = () => { + + + + + + ) }