Report
This commit is contained in:
parent
34442740e2
commit
1a9015563f
@ -46,7 +46,7 @@ const ReportCard = (props: ReportCardProps) => {
|
|||||||
<i className={avatarIcon} />
|
<i className={avatarIcon} />
|
||||||
</CustomAvatar>
|
</CustomAvatar>
|
||||||
<div className='flex flex-col items-start gap-1'>
|
<div className='flex flex-col items-start gap-1'>
|
||||||
<Typography variant='h5' className='report-title transition-colors duration-200'>
|
<Typography variant='h6' className='report-title transition-colors duration-200'>
|
||||||
{title}
|
{title}
|
||||||
</Typography>
|
</Typography>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -25,12 +25,17 @@ const ReportFinancialList: React.FC = () => {
|
|||||||
title: 'Neraca',
|
title: 'Neraca',
|
||||||
iconClass: 'tabler-cash',
|
iconClass: 'tabler-cash',
|
||||||
link: getLocalizedUrl(`/apps/report/neraca`, locale as Locale)
|
link: getLocalizedUrl(`/apps/report/neraca`, locale as Locale)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Ringkasan Eksekutif',
|
||||||
|
iconClass: 'tabler-cash',
|
||||||
|
link: getLocalizedUrl(`/apps/report/neraca`, locale as Locale)
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Typography variant='h5' className='mbe-1'>
|
<Typography variant='h5' className='mbe-2'>
|
||||||
Finansial
|
Finansial
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
|
|||||||
58
src/views/apps/report/ReportPurchaseList.tsx
Normal file
58
src/views/apps/report/ReportPurchaseList.tsx
Normal file
@ -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 (
|
||||||
|
<div>
|
||||||
|
<Typography variant='h5' className='mbe-2'>
|
||||||
|
Pembelian
|
||||||
|
</Typography>
|
||||||
|
|
||||||
|
<Grid container spacing={3}>
|
||||||
|
{purchaseReports.map((report, index) => (
|
||||||
|
<Grid key={index} size={{ xs: 12, sm: 4, md: 3 }}>
|
||||||
|
<ReportCard title={report.title} avatarIcon={report.iconClass} href={report.link} />
|
||||||
|
</Grid>
|
||||||
|
))}
|
||||||
|
</Grid>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default ReportPurchaseList
|
||||||
63
src/views/apps/report/ReportSalesList.tsx
Normal file
63
src/views/apps/report/ReportSalesList.tsx
Normal file
@ -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 (
|
||||||
|
<div>
|
||||||
|
<Typography variant='h5' className='mbe-2'>
|
||||||
|
Penjualan
|
||||||
|
</Typography>
|
||||||
|
|
||||||
|
<Grid container spacing={3}>
|
||||||
|
{salesReports.map((report, index) => (
|
||||||
|
<Grid key={index} size={{ xs: 12, sm: 4, md: 3 }}>
|
||||||
|
<ReportCard title={report.title} avatarIcon={report.iconClass} href={report.link} />
|
||||||
|
</Grid>
|
||||||
|
))}
|
||||||
|
</Grid>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default ReportSalesList
|
||||||
@ -1,6 +1,8 @@
|
|||||||
import Grid from '@mui/material/Grid2'
|
import Grid from '@mui/material/Grid2'
|
||||||
import ReportHeader from './ReportHeader'
|
import ReportHeader from './ReportHeader'
|
||||||
import ReportFinancialList from './ReportFinancialList'
|
import ReportFinancialList from './ReportFinancialList'
|
||||||
|
import ReportSalesList from './ReportSalesList'
|
||||||
|
import ReportPurchaseList from './ReportPurchaseList'
|
||||||
|
|
||||||
const ReportList = () => {
|
const ReportList = () => {
|
||||||
return (
|
return (
|
||||||
@ -11,6 +13,12 @@ const ReportList = () => {
|
|||||||
<Grid size={{ xs: 12 }}>
|
<Grid size={{ xs: 12 }}>
|
||||||
<ReportFinancialList />
|
<ReportFinancialList />
|
||||||
</Grid>
|
</Grid>
|
||||||
|
<Grid size={{ xs: 12 }}>
|
||||||
|
<ReportSalesList />
|
||||||
|
</Grid>
|
||||||
|
<Grid size={{ xs: 12 }}>
|
||||||
|
<ReportPurchaseList />
|
||||||
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user