From 34442740e22afa875e9df0e2cc5ce21b02221313 Mon Sep 17 00:00:00 2001 From: efrilm Date: Thu, 11 Sep 2025 18:38:27 +0700 Subject: [PATCH] Report Cash FLow --- .../(private)/apps/report/cash-flow/page.tsx | 4 +- .../apps/report/cash-flow/ReportCashCard.tsx | 62 -------- .../report/cash-flow/ReportCashFlowCard.tsx | 62 ++++++++ .../cash-flow/ReportCashFlowContent.tsx | 147 ++++++++++-------- 4 files changed, 148 insertions(+), 127 deletions(-) delete mode 100644 src/views/apps/report/cash-flow/ReportCashCard.tsx create mode 100644 src/views/apps/report/cash-flow/ReportCashFlowCard.tsx diff --git a/src/app/[lang]/(dashboard)/(private)/apps/report/cash-flow/page.tsx b/src/app/[lang]/(dashboard)/(private)/apps/report/cash-flow/page.tsx index 41d04bf..a544810 100644 --- a/src/app/[lang]/(dashboard)/(private)/apps/report/cash-flow/page.tsx +++ b/src/app/[lang]/(dashboard)/(private)/apps/report/cash-flow/page.tsx @@ -1,5 +1,5 @@ import ReportTitle from '@/components/report/ReportTitle' -import ReportCashCard from '@/views/apps/report/cash-flow/ReportCashCard' +import ReportCashFlowCard from '@/views/apps/report/cash-flow/ReportCashFlowCard' import ReportCashFlowContent from '@/views/apps/report/cash-flow/ReportCashFlowContent' import Grid from '@mui/material/Grid2' @@ -10,7 +10,7 @@ const CashFlowPage = () => { - + diff --git a/src/views/apps/report/cash-flow/ReportCashCard.tsx b/src/views/apps/report/cash-flow/ReportCashCard.tsx deleted file mode 100644 index b44195f..0000000 --- a/src/views/apps/report/cash-flow/ReportCashCard.tsx +++ /dev/null @@ -1,62 +0,0 @@ -// MUI Imports -import Grid from '@mui/material/Grid2' - -// Type Imports -import type { UserDataType } from '@components/card-statistics/HorizontalWithSubtitle' - -// Component Imports -import HorizontalWithSubtitle from '@components/card-statistics/HorizontalWithSubtitle' - -// Vars -const data: UserDataType[] = [ - { - title: 'Quick Ratio', - stats: '2,4', - avatarIcon: 'tabler-gauge', - avatarColor: 'success', - trend: 'positive', - trendNumber: 'Target 0,2', - subtitle: 'Hari Ini' - }, - { - title: 'Current Ratio', - stats: '1,09', - avatarIcon: 'tabler-trending-down', - avatarColor: 'error', - trend: 'negative', - trendNumber: '7,6%', - subtitle: 'vs bulan sebelumnya' - }, - { - title: 'Debt Equity Ratio', - stats: '0', - avatarIcon: 'tabler-trending-up', - avatarColor: 'success', - trend: 'positive', - trendNumber: '0%', - subtitle: 'vs bulan sebelumnya' - }, - { - title: 'Equity Ratio', - stats: '0,65', - avatarIcon: 'tabler-trending-down', - avatarColor: 'error', - trend: 'negative', - trendNumber: '4,4%', - subtitle: 'vs bulan sebelumnya' - } -] - -const ReportCashCard = () => { - return ( - - {data.map((item, i) => ( - - - - ))} - - ) -} - -export default ReportCashCard diff --git a/src/views/apps/report/cash-flow/ReportCashFlowCard.tsx b/src/views/apps/report/cash-flow/ReportCashFlowCard.tsx new file mode 100644 index 0000000..8c5e707 --- /dev/null +++ b/src/views/apps/report/cash-flow/ReportCashFlowCard.tsx @@ -0,0 +1,62 @@ +// MUI Imports +import Grid from '@mui/material/Grid2' + +// Type Imports +import type { UserDataType } from '@components/card-statistics/HorizontalWithSubtitle' + +// Component Imports +import HorizontalWithSubtitle from '@components/card-statistics/HorizontalWithSubtitle' + +// Vars +const data: UserDataType[] = [ + { + title: 'PERUBAHAN KAS', + stats: '14.784.651', + avatarIcon: 'tabler-trending-up', + avatarColor: 'success', + trend: 'positive', + trendNumber: '50,2%', + subtitle: 'Bulan Ini vs bulan sebelumnya' + }, + { + title: 'SALDO PENUTUPAN', + stats: '73.041.637', + avatarIcon: 'tabler-trending-up', + avatarColor: 'success', + trend: 'positive', + trendNumber: '100%', + subtitle: 'Bulan Ini vs 1 bulan lalu' + }, + { + title: 'KAS KELUAR', + stats: '11.484.350', + avatarIcon: 'tabler-trending-up', + avatarColor: 'success', + trend: 'positive', + trendNumber: '93,3%', + subtitle: 'Bulan Ini vs bulan sebelumnya' + }, + { + title: 'KAS MASUK', + stats: '26.269.001', + avatarIcon: 'tabler-trending-up', + avatarColor: 'success', + trend: 'positive', + trendNumber: '92,5%', + subtitle: 'Bulan Ini vs bulan sebelumnya' + } +] + +const ReportCashFlowCard = () => { + return ( + + {data.map((item, i) => ( + + + + ))} + + ) +} + +export default ReportCashFlowCard diff --git a/src/views/apps/report/cash-flow/ReportCashFlowContent.tsx b/src/views/apps/report/cash-flow/ReportCashFlowContent.tsx index 5606849..4d96599 100644 --- a/src/views/apps/report/cash-flow/ReportCashFlowContent.tsx +++ b/src/views/apps/report/cash-flow/ReportCashFlowContent.tsx @@ -30,80 +30,101 @@ const ReportCashFlowContent = () => { - - - {}} /> - {}} /> - {}} /> - {}} /> - - - - - {}} /> - {}} /> - {}} /> - {}} /> - {}} /> + {}} /> - - - - - {}} /> - {}} /> - - - - {}} /> - {}} /> - - - - - - - - - - - - - {}} /> - {}} /> - {}} /> - - - - - - - - - {}} /> {}} /> - {}} /> - {}} /> - + {}} + /> + {}} + /> + {}} + /> + - + + {}} + /> + {}} + /> + + + + + {}} + /> + {}} /> + + + + + + + + {}} + /> + {}} + /> +