Subversion Repositories SmartDukaan

Rev

Rev 19892 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
19892 manas 1
<div class="container">
2
	<div class="row">
3
		<div class="col-lg-12 table-responsive">
4
			<h3>Loan Outstanding Payments</h3>
5
			<table class="table table-striped">
6
				<thead>
7
					<tr>
8
						<th><?php echo ('User Name');?></th>
9
						<th><?php echo ('Email Id');?></th>
10
						<th><?php echo ('Counter Name');?></th>
11
						<th><?php echo ('Creditor Id');?></th>
12
						<th><?php echo ('Payment Id');?></th>
13
						<th><?php echo ('Total Amount');?></th>
14
						<th><?php echo ('Due Date');?></th>
15
						<th><?php echo ('Repayment Date');?></th>
16
						<th><?php echo ('Amount To Be Paid');?></th>
17
					</tr>
18
				</thead>
19
				<tbody>
20
					<?php foreach($outstandingPayments AS $loanH):?>
21
						<tr>
22
							<td><?php echo $usersName[$loanH['user_id']];?></td>
23
							<td><?php echo $usersMap[$loanH['user_id']]; ?></td>
24
							<td><?php echo $loanH['counter_name'];?></td>
25
							<td><?php echo $loanH['creditor_id'];?></td>
26
							<td><?php echo $loanH['payment_id'];?></td>
27
							<td><?php echo $loanH['totalAmount'];?></td>
28
							<td><?php echo date('Y-m-d H:i:s', $loanH['created']/1000);?></td>
19929 manas 29
							<form action="/admin/users/marksettlement" method="POST" id="MarkSettlementForm">
30
							<input type="hidden" value=<?php echo $loanH['payment_id']?> name=data[payment_id] />
31
							<input type="hidden" value=<?php echo $loanH['user_id']?> name=data[userId]"/> 
32
							<td style='width: 20px'><input type="date" name=data[repayment_date] value="Date"/></td>
33
							<td style='width: 20px'><input type="number" name=data[amount] value="amount"/></td>
19892 manas 34
							<td><input type="submit" value="Mark as Settled"/></td>
19929 manas 35
							</form>
19892 manas 36
						</tr>
37
					<?php endforeach;?>
38
				</tbody>
39
			</table>
40
		</div>
41
	</div>
42
</div>