<?php 
  include 'header.php';
?>

<!-- Card start -->
     <div class="card">
                  <div class="card-header">
                    <div class="card-title"></div>
                  </div>
                  <div class="card-body">
                    <div class="table-responsive">
                      <table id="scrollVertical" class="table custom-table">
                        <thead>
                          <tr>
                            <th>#</th>
                            <th>Full Name</th>
                            <th>Email</th>
                            <th>Username</th>
                            <th>User Image</th>
                            <th>Date Registerd</th>
                            <th>Action</th>
                          </tr>
                        </thead>
                        <tbody>
                 <?php
                      $i = 0;
                        $select = mysqli_query($link, "SELECT * FROM  users WHERE status = 'Verified'  ");
                          if (mysqli_num_rows($select) > 0) {
                            while ($row = mysqli_fetch_assoc($select)) {
                              $id = $row ['id'];
                             
                     $i++         
                   ?>  
                          <tr>
                            <td><?php echo $i  ?></td>
                            <td><?php echo $row['fname']  ?></td>
                            <td><?php echo $row['email']  ?></td>
                            <td><?php echo $row['username']  ?></td>
                            <td><a target="_blank" href="../wallet/upload/<?php echo $row['photo']  ?>"><img height="80" width="80" src="../wallet/upload/<?php echo $row['photo']  ?>"></a>
                            </td>	
                            <td><?php echo $row['date']?></td>
                            
                        
                            <td>
                               <a class="btn btn-sm btn-success" style="color: white;" href="edituser.php?edit=<?php echo $id  ?>">Edit</a>
                            </td>
                            
                            <td>
                               <a class="btn btn-sm btn-primary" style="color: white;" href="funduser.php?fund=<?php echo $row['email'] ?>">Fund Account</a>
                            </td>

                           <td>
                               <a class="btn btn-sm btn-danger" style="color: white;" href="all-menu.php?delete=<?php echo $id  ?>">Delete</a>
                          </td>


                          
                     
                        </tr>
                    
                      <?php }} ?>
                      </tbody>
                  </table>
              </div>
          </div>
      </div>
  </div>
<?php
    include 'footer.php';
?>