<?php 
session_start();
require('../db.php');
include('inc/session.php');
														
$user = $_SESSION['user'];
								
$ins = mysqli_query($conn,"SELECT * FROM xpress WHERE email='$user' ");
$data = mysqli_fetch_array($ins);
								
$email = $data['email'];
$rowpas = $data['pass'];
$level = $data['level'];
$status = $data['status'];
$bal = $data['bal'];
							
$deps = "SELECT * FROM xpress ORDER BY `serial` DESC";
$payment = $conn->query($deps);
							
	
define("sitename","Vtoper");
define("footername","vtoper.com");
include('../inc/logo.php');
?>


<?php include('inc/header.php');?>

<body class="fixed-nav sticky-footer bg-dark" id="page-top">
  <!-- Navigation-->
  <?php include('inc/nav.php');?>
        
  <!-- Navigation Ends-->  
      </ul>
      <ul class="navbar-nav sidenav-toggler">
        <li class="nav-item">
          <a class="nav-link text-center" id="sidenavToggler">
            <i class="fa fa-fw fa-angle-left"></i>
          </a>
        </li>
      </ul>
      <ul class="navbar-nav ml-auto">
      
       
            
        </li>
        <li class="nav-item">
         
        </li>
        <li class="nav-item">
        <a class="btn btn-secondary" href="logout.php">Logout</a>
          
        </li>
      </ul>
    </div>
  </nav>
  <div class="content-wrapper">
    <div class="container-fluid">
      <!-- Breadcrumbs-->
      <ol class="breadcrumb">
        <li class="breadcrumb-item">
          <a href="dashboard.php">Dashboard</a>
        </li>
        <li class="breadcrumb-item active">Approve > </li>
      </ol>
      <div class="row">
        <div class="col-12">
         
           
       
          <div class="card mb-3">
        <div class="card-header">
          <i class="fa fa-money"></i>Account Registration Approval Notification</div>
        <div class="card-body">
          <div class="table-responsive">
            <table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
            <thead>
              <tr>
                
                <th>Customer</td>
                <th>Phone</td>
                <th>Status</td>
                <th>Email Address</td>
                <th>Amount Paid<br> (Bank)</td>
                
                
                <th>Date</td>
                 <th></td>
                 <th></td>
                 
                
              </tr>
              </thead>
              <tfoot>
              <tr>
                
                <th>Customer</td>
                <th>Phone</td>
                <th>Status</td>
                <th>Email Address</td>
                <th>Amount Paid<br> (Bank)</td>
                <th>Date</td>
                <th></td>
                <th></td>
                
                
              </tr>
              </tfoot>
              <tbody>
              <?php while($row_payment = $payment->fetch_assoc())
			  
			   { ?>
                <tr>
                  
                  <td><?php echo $row_payment['fname']; ?> <?php echo $row_payment['lname']; ?></td>
                  <td><?php echo $row_payment['phone']; ?> </td>
                  <td><?php echo $row_payment['status']; ?> </td>
                  <td><?php echo $row_payment['email']; ?> </td>
                  <td>&#x20A6;<?php echo $row_payment['amount']; ?> <br> <?php echo $row_payment['serviceid']; ?></td>
                <td><?php echo $row_payment['date']; ?></a></td>
                   
            <td><a href="approve-registration.php?id=<?php echo $row_payment['accno']; ?>"><?php if(!empty($row_payment['action'])){echo '<div class="btn btn-success">'.$row_payment['action'].'</div>';} ?></a></td>
                   
                  <td><a href="remov.php?delreg=<?php echo $row_payment['serial']; ?>" onclick="window.confirm('You are about to delete this Information? Clicking OK or cancel will still to delete');"><?php if(!empty($row_payment['del'])){echo '<div class="btn btn-danger">'.$row_payment['del'].'</div>';} ?></a></td>
                   



                  
                </tr>
                
                <?php } ?>
                </tbody>
            </table>
          </div>
        </div>
        <div class="card-footer small text-muted"></div>
      </div>
    </div>
    <!-- /.container-fluid-->
        </div>
      </div>
    </div>
    <!-- /.container-fluid-->
    <!-- /.content-wrapper-->
   <?php include('inc/footer.php');?>