<div class="nk-content">
   <div class="container-xl wide-lg">
      <div class="row">
         <div class="col-lg-12">
            <ul class="pagination">
               <li class="page-item">
                  <!-- <a href="javascript:history.back()">Go back</a> -->
                  <a class="btn btn-primary btn-sm" href="#">check Deposit</a>
               </li>
            </ul>
            <hr>
            <br>
         </div>
         <div class='col-lg-12'>
         <br>
         <br>
         <br>
         <p style='text-align:center'>User  Check Deposit</p>
         <br>
         <div class="table-responsive">
            <table id="myTable" class="table table-bordered table-striped bg-white text-light">
               <thead style='font-size:13px'>
                  <tr>
                     <th>Check ID</th>
                     <th>User ID</th>
                     <th>Amount</th>
                     <th>Front of check</th>
                     <th>Back of check</th>
                     <th>Action</th>
                     <th>status</th>
                     <th>Date</th>
                  </tr>
               </thead>
               <tbody style='font-size:13px'>
                  <?php if(count($user->getAll('checks')) > 0):?>
                     <?php foreach($user->getAll('checks') as $row):?>
                        <?php 
                           $amount = $row->amount;
                           $id = $row->id;
                           $user_id = $row->user_id;
                        ?>
                        <tr>
                           <td><?php echo $row->id?></a></td>
                           <td><?php echo $row->user_id?></a></td>
                           <td><?php echo $row->amount?></td>
                           <td><img width="320" height='150' src='assets/img/<?php echo $row->front?>'></td>
                           <td><img width="320" height='150' src='assets/img/<?php echo $row->back?>'></td>
                           <td><a class='btn btn-primary btn-sm' href="process/approved?amount=<?php echo $amount?>&id=<?php echo $id?>&user_id=<?php echo $user_id?>">Approved</a></td>
                           <td><?php echo $row->status?></td>
                           <td><?php echo $row->date?></td>
                        </tr>
                     <?php endforeach;?>
                  <?php endif?>
               </tbody>
               <!-- <tr colspan='3'><td><a href="dashboard?users">veiw all</a></td></tr> -->
            </table>
         </div>
      </div>
   </div>
</div> 

