Compare commits

..

3 Commits

Author SHA1 Message Date
victorAnumudu 251fe95a6b updated loan details page 2024-07-15 17:57:01 +01:00
victorAnumudu ca7db4b0aa updated loan details page 2024-07-15 17:38:11 +01:00
ameye 5fe90c3ead Merge branch 'loan-process-page' of DigiFi/digifi-bko into master 2024-07-15 16:14:17 +00:00
@@ -72,20 +72,34 @@ export default function ApproveRejectPage() {
</button>
</div>
</div>
<div className="card card-flash flex flex-col p-4 h-md-50 mb-5 mb-xl-10 bg-secondary">
<div className="card card-flash flex flex-col p-4 h-md-50 mb-5 mb-xl-10 bg-secondary overflow-scroll">
<h3 className='card-title text-gray-800 fw-bold mb-5'>Verification details</h3>
<div className='w-100'>
{loanDetails?.data?.verification.length > 0 ?
<table className='w-100'>
<tr>
<th>UID</th>
<th>EMPLOYER NAME</th>
</tr>
{loanDetails?.data?.verification?.map((item:any) => (
<tr key={item.uid || item.id}>
<td>{item.uid}</td>
<td>{item.employers_name}</td>
</tr>
<tbody key={item.uid || item.id}>
<tr>
<th className='text-uppercase py-3'>uid</th>
<td>{item.uid}</td>
</tr>
<tr>
<th className='text-uppercase py-3'>Designation</th>
<td>{item.designation}</td>
</tr>
<tr>
<th className='text-uppercase py-3'>Employers Name</th>
<td>{item.employers_name}</td>
</tr>
<tr>
<th className='text-uppercase py-3'>Grade</th>
<td>{item.grade}</td>
</tr>
<tr>
<th className='text-uppercase py-3'>Status</th>
<td>{item.status}</td>
</tr>
</tbody>
))}
</table>
:
@@ -103,15 +117,41 @@ export default function ApproveRejectPage() {
<div className='w-100'>
{loanDetails?.data?.application.length > 0 ?
<table className='w-100'>
<tr>
<th>UID</th>
<th>AMOUNT</th>
</tr>
{loanDetails?.data?.application?.map((item:any) => (
<tr key={item.uid || item.id}>
<td>{item.uid}</td>
<td>{item.loan_amount}</td>
</tr>
<tbody key={item.uid || item.id}>
<tr>
<th className='text-uppercase py-3'>uid</th>
<td>{item.uid}</td>
</tr>
<tr>
<th className='text-uppercase py-3'>Amount</th>
<td>{item.loan_amount}</td>
</tr>
<tr>
<th className='text-uppercase py-3'>Payment Month</th>
<td>{item.loan_amount}</td>
</tr>
<tr>
<th className='text-uppercase py-3'>Sales Agent</th>
<td>{item.sales_agent}</td>
</tr>
<tr>
<th className='text-uppercase py-3'>Gender</th>
<td>{item.gender || 'Others'}</td>
</tr>
<tr>
<th className='text-uppercase py-3'>Marital Status</th>
<td>{item.marital_status}</td>
</tr>
<tr>
<th className='text-uppercase py-3'>Email</th>
<td>{item.email}</td>
</tr>
<tr>
<th className='text-uppercase py-3'>Address</th>
<td>{item.address}</td>
</tr>
</tbody>
))}
</table>
: