<style>
  table thead tr th{
    font-size: 13px;
    font-weight: bolder;
  }
  table tbody tr td{
    font-size: 13px;
    font-weight:;
  }
</style>
<div class="table-responsive">
  <table class="table table-striped table-bordered">
    <div class="hidden-lg hidden-md" align="left" style="font-size: 15px; margin-left: 10px; color: blue;"><img src="images/swipe-left.gif" class="img-responsive" width="45"> Swipe left to view full card application details.</div>

    <thead>
      <tr>
        <th>Date</th>
        <th>ACCOUNT</th>
        <th>CARD</th>
        <th>ADDRESS</th>
        <th>STATUS</th>

      </tr>
    </thead>
    <tbody>
<?php

while($row = mysqli_fetch_assoc($query)){

$card_date = $row["card_date"];
$my_account = $row["my_account"];
$card_name = $row["card_name"];
$card_type = $row["card_type"];
$card_shipment_address = $row["card_shipment_address"];
$card_status = $row["card_status"];  ?>

<tr>
  <td style="font-size:12px;"><?php echo $card_date; ?></td>
  <td style="font-size:12px;"><?php echo $my_account; ?></td>


  <td style="font-size:12px;">
    <?php
     if($card_name == "VISA"){
      $card_name = '<img src="images/349221.png" class="img-responsive" style="margin-top:0px;" width="30">';
     }elseif($card_name == "MAESTRO"){
      $card_name = '<img src="images/147258.png" class="img-responsive" style="margin-top:0px;" width="30">';
     }elseif($card_name == "AMEX"){
      $card_name = '<img src="images/349228.png" class="img-responsive" style="margin-top:0px;" width="30">';
     }else{
      $card_name = '<img src="images/349230.png" class="img-responsive" style="margin-top:0px;" width="30">';
     }
    ?>
    <?php echo $card_name; ?>
      
  </td>


  <td style="font-size:12px;"><?php echo $card_shipment_address; ?></td>

  <td style="font-size:12px;">
    <?php
      if($card_status == "PENDING"){
         $card_status = "<a class='btn btn-warning btn-sm' style='border-radius:0px;'>PENDING</a>";
      }elseif($card_status == "APPROVED"){
         $card_status = "<a class='btn btn-success'>APPROVED</a>";
      }else{
         $card_status = "<a class='btn btn-danger btn-sm' style='border-radius:0px;'>DECLINED</a>";
      }
    ?>
    <a><?php echo $card_status; ?></a>
  </td>
</tr>

<?php

}

?>
      </tbody>
    </table>
</div>
