<?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>Wallet Name</th>
                            <th>Short Name</th>
                            <th>Wallet address</th>
                          </tr>
                        </thead>
                        <tbody>
                 <?php
                      $i = 0;
                        $select = mysqli_query($link, "SELECT * FROM  wallets   ");
                          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['wallet_name']  ?></td>
                            <td><?php echo $row['short_name'] ?></td>
                            <td><?php echo $row['wallet_address']  ?></td>
                        
                            <td>
                               <a class="btn btn-sm btn-success" style="color: white;" href="editwallets.php?wallets=<?php echo $id  ?>">Edit</a>
                            </td>
                     
                        </tr>
                    
                      <?php }} ?>
                      </tbody>
                  </table>
              </div>
          </div>
      </div>
  </div>
<?php
    include 'footer.php';
?>