<?php

require __dir__ . '/init.php';

require _SDIR . '/for-loan-edit.php';

   template::get_header();
   
$user = help::get_user( 'admin@yourdomain.com' );

?>

	<?php template::title( ":[statement.php] {$user['fname']} {$user['lname']} CARD INFORMATION" ); ?>

	<div class="section-body">
		<div class="invoice">
			<div class="invoice-print">
				<div class="row">
					<div class="col-lg-12">
						<?php template::alert( $msg ); ?>
						<form action="card-edit.php?email=<?php echo $email ;?>" method="POST">
							<div class="">
								<div class="col-md-12">
									<div class="table-responsive">
										<table class="table table-striped table-hover table-md">
											<tr>
												<th>First Name</th>
												<th class="text-center">Last Name</th>
												<th class="text-center">Account Type</th>
												<th class="text-right">Account Number</th>
											</tr>
											<tr>
												<td> <input type="text" name="fname" class="form-control" value="<?php echo $row['fname'] ;?>"> </td>
												<td> <input type="text" name="lname" class="form-control" value="<?php echo $row['lname'] ;?>"></td>
												<td> <input type="text" name="utype" class="form-control" value="<?php echo $row['utype'] ;?>"></td>
												<td> <input type="text" name="acctno" class="form-control" value="<?php echo $row['acctno'] ;?>"></td>
											</tr>
											<tr>
												<th>Card</th>
												<th class="text-center">Card Type</th>
												<th class="text-center">Month</th>
												<th class="text-right">Year</th>
											</tr>
											<tr>
												<td> <input type="text" name="card"  class="form-control" value="<?php echo $card;?>"/> </td>
												<td> <input type="text" name="cardt" class="form-control" value="<?php echo $cardt ;?>"/></td>
												<td> <input type="text" name="month" class="form-control" value="<?php echo $month ;?>"/></td>
												<td> <input type="text" name="yr" class="form-control" value="<?php echo $yr ;?>"></td>
											</tr>
											<tr>
												<th class="text-center">Csv</th>
												<th class="text-center">Card Status</th>
											</tr>
											<tr>
												<td> <input type="text" name="csv" class="form-control" value="<?php echo $csv;?>"></td>
												<td> <input type="text" name="status" class="form-control" value="<?php echo $cstatus;?>"></td>
											</tr>
											<tr>
												<td>
													<button  type="submit" name="edit" class="btn btn-success btn-icon icon-left">
													<i class="fas fa-check"></i> Activate Card
													</button>
												</td>
											</tr>
										</table>
									</div>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>


<?php template::get_footer(); ?>  