<?php include "layouts/menu.php"; ?> <div class="right_col" role="main">
            
            <div class="row">
                <div class="col-lg-12">
                    <!-- Form Elements -->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                     Repledge  Action   Customer Details
                        </div>
                        <div class="panel-body">
                            <div class="row">
 

                    <?php
					
						$qry=mysqli_query($conn, "select * from fincust where mfin='$mfin' && status='Action'");
						$n=mysqli_num_rows($qry);
						if($n==0)
						{
						echo "Nothing To Display";
						}
						else
					        { 
						?></p>
					<div class="table-responsive">
  <table id="datatable-buttons" id="datatable-buttons" class="table table-striped table-bordered">
					<thead>
						<tr>
						<th>Hpl</th>
						<th>Name</th><th>Fin</th>
						<th>Image</th>
				
						<th>Status</th>
						<th>-</th>
						<th>Phone No</th>
						<th>L.Amount</th>
						<th>L.Date</th>
						
					</tr></thead><tbody>
					<?php 
					while($row=mysqli_fetch_array($qry))
						{
							$mfin2 = $row['mfin']; 	$model = $row['model'];
					?>
					
				<tr>
				
						<td><b><?php echo $row['hpl'];?></b></td>
						<td><b><?php echo $row['name']; ?></b></td>	
						
						<td><b><?php $fin = $row['mfin']; 
						$sql44 = mysqli_query($conn, "select * from mfin where name='$fin'");
						$row44 = mysqli_fetch_array($sql44);
						echo $row44['name2'];
						?></b></td>
						
						
					<?php $dddd = $row['uimg']; if($dddd!= NULL) { ?>	<td><img src="finuser/<?php echo $row['uimg'];?>" width="40" height="40"/></td> <?php } else { ?>
					<td><img src="111.png" width="40" height="40"/></td> <?php } ?>
					
						<?php $hpl = $row['hpl'];
						$n10 = $row['duemnt']; //$n11 = 0;
						//$qry125=mysqli_query($conn, "select sum(paymnt) from user where mfin='$mfin2' &&  hpl=$hpl");
						//$row44 = mysqli_fetch_array($qry125);
						//$n11 = $row44[0];
				//$qry12=mysqli_query($conn, "select * from net where mfin='$mfin2' &&  hpl=$hpl");
				//$n5=mysqli_num_rows($qry12); 
					//$qry122=mysqli_query($conn, "select * from sizzing where mfin='$mfin2' &&  hpl=$hpl");
				//$n55=mysqli_num_rows($qry122); 
				$sts = $row['status'];
	if($sts == 'Closed') {
						?>
									<td><button class="btn btn-block"><b>Closed</b></button></td> 	<td>
<a href="fineditled.php?id=<?php echo $row['id'];?>&mfin=<?php echo $row['mfin'];?>" data-toggle="tooltip" title="Led Edit!"><i class="fa fa-edit fa-2x" style="color:blue;"  aria-hidden="true"></i></a>&nbsp;&nbsp;

<a href="finudelete.php?id=<?php echo $row['id'];?>&mfin2=<?php echo $row['mfin']; ?>"  data-toggle="tooltip" title="Full View!"><i class="fa fa-feed fa-2x" style="color:navi;" aria-hidden="true"></i></a>
		<?php $ff = $row['lat']; if($ff>0) { ?>	<a href="https://www.google.com/maps/?q=<?php echo $row['lat'];?>,<?php echo $row['lang'];?>"  data-toggle="tooltip" title="Google Map !" title="Full View!" target="_blank"><i class="fa fa-map-marker fa-2x" style="color:purple;" aria-hidden="true"></i></a> <?php } ?>
	</td>
			
		
				
				<?php }
				
				else {?>
					<td><button class="btn btn-success"><b>Active</b></button></td>
						<td>
<a href="finregisterf2.php?hpl=<?php echo $row['hpl'];?>&mfin2=<?php echo $row['mfin'];?>" data-toggle="tooltip" title="Receipt!"><i class="fa fa-print fa-2x"  style="color:green;" aria-hidden="true"></i></a>&nbsp;&nbsp;
<a href="fineditled.php?id=<?php echo $row['id'];?>&mfin=<?php echo $row['mfin'];?>" data-toggle="tooltip" title="Led Edit!"><i class="fa fa-edit fa-2x" style="color:blue;"  aria-hidden="true"></i></a>&nbsp;&nbsp;
<a href="finfullsettle2.php?hpl=<?php echo $row['hpl'];?>&mfin2=<?php echo $row['mfin'];?>" data-toggle="tooltip" title="Full Settlement!"><i class="fa fa-close fa-2x" style="color:red;"  aria-hidden="true"></i></a>&nbsp;&nbsp;	

<a href="finudelete.php?id=<?php echo $row['id'];?>&mfin2=<?php echo $row['mfin']; ?>"  data-toggle="tooltip" title="Full View!"><i class="fa fa-feed fa-2x" style="color:navi;" aria-hidden="true"></i></a>
		<?php $ff = $row['lat']; if($ff>0) { ?>	<a href="https://www.google.com/maps/?q=<?php echo $row['lat'];?>,<?php echo $row['lang'];?>"  data-toggle="tooltip" title="Google Map !" title="Full View!" target="_blank"><i class="fa fa-map-marker fa-2x" style="color:purple;" aria-hidden="true"></i></a> <?php } ?>
	</td>
			
			 <?php }?>
				
				
						<td><b><?php echo $row['pno'];?></b></td>
						<td><b><?php echo $row['hpamount'];?></b></td><td><b><?php echo $row['hpdate'];?></b></td>
						
					</tr>
					<?php
						}
					}
				
					?>
				</tbody>	</table>
					
 
</div>
</div></div>
</div></div></div> <?php include "layouts/footert.php"; ?> </body></html>