<?
    include('../../config.php');
?>


    <?php include("inc/header.php") ?>


  <body data-spy="scroll" data-target="#navSection" data-offset="100">

    <?php include("inc/sidebar.php") ?>
    
    
    <!-- sidebar -->

    <div class="content">
      <div class="header">
        <div class="header-left">
          <a href="#" class="burger-menu"><i data-feather="menu"></i></a>

        </div><!-- header-left -->

        <div class="header-right">
         
          <div class="dropdown dropdown-loggeduser">
            <a href="#" class="dropdown-link" data-toggle="dropdown">
              <div class="avatar avatar-sm">
                <img src="https://cdn.iconscout.com/icon/free/png-256/laptop-user-1-1179329.png" class="rounded-circle" alt="">
              </div><!-- avatar -->
            </a>
            <div class="dropdown-menu dropdown-menu-right">
              <div class="dropdown-menu-header">
                <div class="media align-items-center">
                  
                  <div class="media-body mg-l-10">
                    <h6>Louise Kate Lumaad</h6>
                    <span>Administrator</span>
                  </div>
                </div><!-- media -->
              </div>
              <div class="dropdown-menu-body">
                <a href="#" class="dropdown-item"><i data-feather="user"></i> View Profile</a>
                
                <a href="../ " class="dropdown-item"><i data-feather="log-out"></i> Sign Out</a>
              </div>
            </div><!-- dropdown-menu -->
          </div>
        </div><!-- header-right -->
      </div><!-- header -->
      <div class="content-header">
        <div>
          
           <h4 class="content-title" style="padding-left:30px;">   WITHDRAWAL REQUEST</h4>
        </div>
      </div><!-- content-header -->
     
      
	   
	  
	  
       
         
           
            <div class="content-panel" style="padding:30px;">
                <div class="table-responsive">
         <table class="table table-striped table-advance table-hover">
                
                
                <thead>
                  <tr>
                    <th>OrderNo</th>
                    <th class="hidden-phone">Customer Name</th>
                    <th>Amount</th>
                    <th>Method</th>
                   <th>Status</th>
                   <th>Date</th>
                   <th>Action</th>
                  
                  </tr>
                </thead>
                <?
                    
                    $dbo="select * from Withdraw";
                    $query1=mysqli_query($conn, $dbo);
                    
                        while($row=mysqli_fetch_array($query1))
                        {
                            
                            $name=$row['name'];
                            $time=$row['time'];
                            $approve=$row['approve'];
                            $order=$row['exp_id'];
                            $amou=$row['amount'];
                            $method=$row['method'];
                            $with_id = $row['with_id'];
                            
                            if($approve=='pending'){
                                $credit='Awaiting';
                            }else{
                                $credit="Verified";
                            }
                            
                            

                ?>
                <tbody>
                            <tr>
                           <td><? echo $order; ?></td>
                           <td><? echo $name; ?></td>
                           <td><? echo $amou; ?></td>
                           <td><? echo $method; ?></td>
                           <td>	<? echo $approve; ?></td>
                           <td><? echo $time; ?></td>
                            <td>
                                   
                                    <button type="button" class="btn btn-danger">DELETE</button>
                                    
                                  
                            </td>
                            </tr>
                            
                           
                            
                </tbody>
                <? } ?>
              </table>
             
            
             </div>
             
             
             
             
            </div>
          
          
           
          
           
		   

       
     
    </div><!-- content -->

	
    <script src="lib/jquery/jquery.min.js"></script>
    <script src="lib/bootstrap/js/bootstrap.bundle.min.js"></script>
    <script src="lib/feather-icons/feather.min.js"></script>
    <script src="lib/perfect-scrollbar/perfect-scrollbar.min.js"></script>
    <script src="lib/prismjs/prism.js"></script>
    <script src="lib/js-cookie/js.cookie.js"></script>

    <script src="assets/js/cassie.js"></script>
    <script>
      $(function(){

        'use strict'

      })
    </script>
	
	<script>
      $(function(){

        'use strict'

        $('#modal6').on('show.bs.modal', function (event) {

          var animation = $(event.relatedTarget).data('animation');
          $(this).addClass(animation);
        })

        // hide modal with effect
        $('#modal6').on('hidden.bs.modal', function (e) {
          $(this).removeClass (function (index, className) {
              return (className.match (/(^|\s)effect-\S+/g) || []).join(' ');
          });
        });

      })
    </script>
  </body>

</html>
