Merge branch 'loan-details-update' of DigiFi/digifi-bko into master

This commit is contained in:
2024-07-15 17:00:34 +00:00
committed by Gogs
@@ -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>
: