diff --git a/public/media/avatars/avatar1.jpg b/public/media/avatars/avatar1.jpg new file mode 100755 index 0000000..699f262 Binary files /dev/null and b/public/media/avatars/avatar1.jpg differ diff --git a/src/_digifi/layout/components/paginatedListing/RecentBVNList.tsx b/src/_digifi/layout/components/paginatedListing/RecentBVNList.tsx index c3967c4..075ce30 100644 --- a/src/_digifi/layout/components/paginatedListing/RecentBVNList.tsx +++ b/src/_digifi/layout/components/paginatedListing/RecentBVNList.tsx @@ -57,7 +57,7 @@ export default function RecentBVNList({ },[itemsPerPage]) return ( -
+

{tableTitle}

{data.length > 0 && filterItem && ( @@ -86,7 +86,7 @@ export default function RecentBVNList({ {/* show prev and next button if data exist */} {(data.length > 0 && data.length > itemsPerPage) && ( -
+
*/} - {/* */} - {/* end::Menu */} -
+ + +
*/} + {/* end::Menu */}
{/* end::Header */} {/* begin::Body */} -
+
{dashData?.loading ? null : dashData?.data?.recent_bvn && dashData?.data?.recent_bvn.length ? {(data:RecentBVNProps) => ( <> {data?.map(item => (
{/* begin::Bullet */} - + {/* end::Bullet */} {/* begin::Checkbox */} -
+ {/*
-
+
*/} {/* end::Checkbox */} {/* begin::Description */}
- + {item?.bvn} - + {NewDateTimeFormatter(item?.added)}
{/* end::Description */} - New + status: {item?.status}
))} diff --git a/src/_digifi/partials/widgets/tables/TablesWidget10.tsx b/src/_digifi/partials/widgets/tables/TablesWidget10.tsx index 03188af..178f79a 100644 --- a/src/_digifi/partials/widgets/tables/TablesWidget10.tsx +++ b/src/_digifi/partials/widgets/tables/TablesWidget10.tsx @@ -1,10 +1,10 @@ import { FC } from 'react' import {KTIcon, toAbsoluteUrl} from '../../../helpers' -import { DashDataProps, RecentApplicationsProps } from '../../../../app/pages/dashboard/model' +import { DashDataProps } from '../../../../app/pages/dashboard/model' import { NewDateTimeFormatter } from '../../../lib/NewDateTimeFormatter' -import RecentLoanAppList from '../../../layout/components/paginatedListing/RecentLoanAppList' - +import { Link } from 'react-router-dom' +import { AmountTo2DP } from '../../../lib/AmountFormatter' type Props = { className: string @@ -15,11 +15,12 @@ const TablesWidget10: FC = ({className, dashData}) => { return (
{/* begin::Header */} -
-

- Recent Loan Application - {/* Over 500 members */} -

+
+

Recent Loan Application

+ {/*

+ Recent Loan Application + Over 500 members +

*/} {/*
= ({className, dashData}) => { {dashData?.loading ? null : dashData?.data?.recent_applications ? - - {(data:RecentApplicationsProps)=>( - <> -
- {/* begin::Table container */} -
- {/* begin::Table */} - - {/* begin::Table head */} - - - - - - - - - - {/* end::Table head */} - {/* begin::Table body */} - - {data && data.length ? - data.map(item => ( - - - + + + } + + {/* end::Table body */} +
-
- -
-
AuthorsAmountProgressActions
-
- -
-
-
-
- + <> +
+ {/* begin::Table container */} +
+ {/* begin::Table */} + + {/* begin::Table head */} + + + + + + + + + + {/* end::Table head */} + {/* begin::Table body */} + + {dashData?.data?.recent_applications && dashData?.data?.recent_applications.length ? + dashData?.data?.recent_applications.map((item, index:any) => { + if(index < 6){ + return ( + + + + + + - - - - - )) - : - - - + + + ) } - - {/* end::Table body */} -
+
+ +
+
AuthorsAmount (NGN)ProgressActions
+
+
-
+
+
+ +
+
+ + {item?.firstname} {item?.lastname} + + + {NewDateTimeFormatter(item?.added)} + +
+
+
+ + {AmountTo2DP(item.loan_amount)} + + + {item?.sales_agent? `Agent: ${item?.sales_agent}` : ``} + + +
+
+ 50% +
+
+
+
+
+
+
+ + + + + + + + - - {NewDateTimeFormatter(item?.added)} -
- -
- - {item.loan_amount} - - - {item?.sales_agent? `Agent: ${item?.sales_agent}` : ``} - - -
-
- 50% -
-
-
-
-
-
- -
No data found!
- {/* end::Table */} -
- {/* end::Table container */} -
- - )} - + }) + : +
No data found!
+ {/* end::Table */} +

+ more applications +

+
+ {/* end::Table container */} +
+ : null }