<?php include("includes/header.php"); ?>
<?php include("includes/auto_out.php"); ?>
<!DOCTYPE html>
<html>
<head>
  <title>Admin Dashboard | <?php echo $sitename;  ?> HQ</title>
    <link rel="stylesheet" href="bootstrap/css/bootstrap.css">
    <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
  <link rel="stylesheet" href="bootstrap/css/bootstrap-theme.css">
  <link rel="stylesheet" href="bootstrap/css/bootstrap-theme.min.css">

   <!--CSS-->
  <link rel="stylesheet" href="style.css">
  <link rel="stylesheet" href="bootstrap/css/bootstrap.css">
  <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
  <link rel="stylesheet" href="bootstrap/css/bootstrap-theme.css">
  <link rel="stylesheet" href="bootstrap/css/bootstrap-theme.min.css">

    <!-- Bootstrap Core CSS -->
      <link href="css/bootstrap.min.css" rel="stylesheet">

     <!-- Font Awesome -->
    <link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">

      <!-- Custom CSS -->
      <link href="css/blog-home.css" rel="stylesheet">

      <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
      <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
      <!--[if lt IE 9]-->
          <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
          <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
          <script src="js/jquery.js"></script>
          <script src="js/bootstrap.js"></script>





          <!----MODAL-------------------->
          <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
            <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
            <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>



</head>

<body>
  <?php  include("includes/dashboard_navbar.php"); ?>
  <!-- DESTOP Side bar starts here--><!-- DESTOP Side bar starts here--><!-- DESTOP Side bar starts here-->
  <style>
    body{
      background-color: #f5f5f5;
    }
    .destop-siderbar{
      background-color: #131e2a;
      height: 100%;
      width:240px;
      box-shadow: 0 0 4px 0 rgba(0,0,0,.50), 0 2px 4px 0 rgba(0,0,0,.50);
      position: fixed;
      margin-left:-20px;
      padding:50px 25px;
    }
    .destop-siderbar li{
       padding: 30px 20px;
       list-style: none;
    }
    .destop-siderbar li a{
      color: #fff;
      font-size: 17px;
      padding:10px 0px;
    }
    .destop-siderbar li a i{
      color:rgb(45, 156, 219);
      font-weight: lighter;
    }
    .destop-siderbar .active {
      background-color:#123962;
      box-shadow: 0 0 4px 0 rgba(0,0,0,.50), 0 2px 4px 0 rgba(0,0,0,.50);
      
    }
    .destop-siderbar .active a{
      color:#fff;
    }
    .destop-siderbar .active a:hover{
      color:#fff;
    }
    .destop-siderbar li a:hover{
      color: #a5bdd9;
      text-decoration: none;
    }
    .panel{
      border-radius: 0px;
      border-color: transparent;
    }
    .input-danger{
       border:1px solid darkred;
       color:darkred;
     }
     .input-danger::placeholder{
       opacity: 0.6;
       color:darkred;
     }
  </style>

  <div class="container-fluid">
    <div class="row">
      <!-- DESTOP Side bar starts here--><!-- DESTOP Side bar starts here--><!-- DESTOP Side bar starts here-->
      <div class="col-sm-2 hidden-xs" style="height: 100%;">
              <ul class="destop-siderbar">
                <br><br>
                 <li><a href="dashboard.php"><i class="fa fa-th-large"></i>&nbsp;&nbsp;Dashboard</a></li><br><br>

                 <li><a href="all-users.php"><i class="fa fa-users"></i>&nbsp;&nbsp;All Users</a></li><br><br>
                 <li><a href="all-transactions.php"><i class="fa fa-exchange"></i>&nbsp;&nbsp;All Transactions</a></li><br><br>
                 <li><a href="airtime-bonus.php"><i class="fa fa-gift"></i>&nbsp;&nbsp;Airtime Bonus</a></li><br><br>
                 <li><a href="naira-requests.php"><i class="fa fa-google-wallet"></i>&nbsp;&nbsp;Naira Requests <sup><span style="font-size: 12px; color: #00d67d;"> ₦</span></sup></a></li><br><br>
                 <li><a href="deposit-proofs.php"><i class="fa fa-money"></i>&nbsp;&nbsp;Deposit Proofs <sup><span style="font-size:12px; color: #00d67d;"> ₦</span></sup></a></li><br><br>
                 <li><a href="selling-receipts.php"><i class="fa fa-btc"></i>&nbsp;&nbsp;Selling Receipts <sup><span style="font-size: 10px; color: #00d67d;"> <i class="fa fa-btc"></i></span></sup></a></li><br><br>
                 <li><a href="buying-request.php"><i class="fa fa-shopping-cart"></i>&nbsp;&nbsp;Buying Request <sup><span style="font-size: 10px; color: #00d67d;"> <i class="fa fa-btc"></i></span></sup></a></li><br><br>
                 <li><a href="settings.php"><i class="fa fa-cog"></i>&nbsp;&nbsp;Settings</a></li><br><br>
                 <!--<li><a href="security.php"><i class="fa fa-shield"></i>&nbsp;&nbsp;Security</a></li><br><br>
                 <li><a href="live-chat.php"><i class="fa fa-comments-o"></i>&nbsp;&nbsp;Live Chat</a></li><br><br>-->
                 <li><a href="logout.php"><i class="fa fa-power-off"></i>&nbsp;&nbsp;Logout</a></li>
                 <br><br><br><br><br><br><br>
               </ul>
      </div>
      <!--/////////////////////// DESTOP Side bar starts here--><!-- DESTOP Side bar starts here--><!-- DESTOP Side bar starts here-->
      <div class="col-sm-10">
        <br><br><br><br>

        <!----------------------------------------------------------------------------------->

        <div class="row">
          <div class="col-sm-12">
            <div class="row">


              <div class="col-sm-9">
                 <div class="panel panel-default">
                  <div class="panel-body">
                       <span style="font-size: 16px; font-weight: bold;"><i class="fa fa-caret-left" style="font-size: 18px;"></i> <i class="fa fa-caret-right" style="font-size: 18px;"></i> ALL BANK DEPOSIT RECEIPTS</span>

                       <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">
                          
                          <div class="hidden-lg hidden-md" align="left" style="font-size: 15px; margin-left: 10px; color: red;"><img src="images/swipe-left.gif" class="img-responsive" width="45"> Swipe left to view full transaction details.</div>
                          <hr>
                         <table class="table table-bordered table-striped">
                             <thead>
                               <tr>
                                <th>USERNAME</th>
                                 <th>ACCOUNT NUMBER<span style="color:#000; font-size: 12px; font-weight: normal;"></span></th>
                                 <th>PAYMENT SLIP</th>
                               </tr>
                            
                       <?php
                        $query = mysqli_query($conn, "SELECT * FROM bank_receipts ORDER BY id DESC");
                        $numrow = mysqli_num_rows($query);
                        if($numrow >= 1){
                          while($row = mysqli_fetch_assoc($query)){

                            $zux_username = $row["zux_username"];
                            $bank_details = $row["bank_details"];
                            $bank_screenshot = $row["bank_screenshot"];  ?>
                                 
                                 </thead>
                                 <tbody class="tbody">
                                 <tr>

                                  

                                  <td><?php echo $zux_username; ?></td>

                                  
                                   <td><?php echo $bank_details; ?></td>

                                   <td><a href="../bank_photos/<?php echo $bank_screenshot; ?>" target="blank" class="btn btn-sm" style="border-radius: 0px; background-color:#ffb900; color:#000; padding:1px 4px;">VIEW</a></td>

                                   
                                   
                                 </tr>
                               



                        <?php  }
                        }else{
                          echo ' <br><br>
                    <div align="center">
                    <img src="images/empty.png" width="80" class="img-responsive">
                    <br>
                    <span style="font-size: 18px;">What\'s Up Comrade</span><br><br>
                    <span style="font-size: 15px;">You have not traded crypto with btczux, <a href="sell-bitcoin.php">Trade Now <i class="fa fa-caret-right"></i></a></span>
                    </div>

                    <br><br><br><br><br>';
                        }
                       ?>

                           </tbody>
                         </table>

                       </div>

                       
                            
                   
                    <br>
                  </div>
                </div>
              </div>
              

              <div class="col-sm-3">
                 <div class="panel panel-default">
                  <div class="panel-body">
                    <img src="images/naira1.svg" width="50px">&nbsp;&nbsp;<b>DEPOSITS</b>
                    <br><hr><br>
                    <span style="font-size: 16px;">All Deposits Receipts:</span>
                    <br>
                    <span style="color: #ff9800; font-size: 23px;"><?php echo $deposits_numrow; ?></span>
                    <br>
                    <div align="right">
                    </div>
                  </div>
                </div>
              </div>

            </div>

            

            <!--------------------------->

            






          </div>








          </div>
        </div>
        
        
        
        
        
        
      </div>
    </div>
  </div>
</body>
</html>