<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1>EFD Update Status</h1>
          </div>
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="#">Home</a></li>
              <li class="breadcrumb-item active">EFD List</li>
            </ol>
          </div>
        </div>
      </div><!-- /.container-fluid -->
    </section>

    <!-- Main content -->	
	<section class="content">
      <div class="container-fluid">
        <div class="row">
          <!-- left column -->
          <div class="col-md-12">
            
            <div class="card card-info">
              <div class="card-header">
                <h3 class="card-title">EFD List</h3>
              </div>
              <!-- /.card-header -->
              <!-- form start -->
           
           
		   
		   
		   
		     <div class="card">
             
              <!-- /.card-header -->
              <div class="card-body">
                <table id="example1" class="table table-bordered table-striped">
                  <thead>
                 	<tr height='50'>
                    <th>S/N
			
					</th>
                   
                    <th>MODEL</th>
                    <th>AMOUNT</th>
					<th>INVOICE</th>
					<th>DATE</th>
					<th>COSTOMER NAME
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					</th>
					<th>CUSTOMER TIN</th>
					<th>PHONE</th>
			
					<th>TAX Region</th>
					<th>Purchased From</th>
					<th>Payment Mode</th>
					<th>ADDRESS</th>
					<th>EFD STATUS</th>					
					<th>ACTION</th>
				
                   
					
                  </tr>
                  </thead>
                  <tbody>
                 
<?php				
				include"config.php";

//$sql="select * from defd where EfdPurchaseDate > '2025-06-20'";
$sql="select * from defd";
$result=mysqli_query($conn,$sql);

if(mysqli_num_rows($result)>0)
{
	while($row=mysqli_fetch_assoc($result))
	{
		
	echo"
   <tr>
                     <td>". $row['EfdSN']."</td>
                    <td>". $row['Model']."</td>
                    <td>". $row['Amount']."</td>
					<td>". $row['EfdDescription']."</td>
					<td>". $row['EfdPurchaseDate']."</td>
					<td>". $row['CustomerName']."</td>
					<td>". $row['CustomerTin']."</td>
					<td>". $row['Phone']."</td>
					<td>". $row['Street']."</td>
					<td>". $row['soldfrom']."</td>
					<td>". $row['PaymentMode']."</td>
					<td>". $row['TaxOffice']."</td>
					<td>". $row['EfdStatus']."</td>

					<td>
					<form action='EfdStutusDetails.php' method='post'>
					<input type='submit' class='btn btn-info' value='Change Status' >
					<input type='hidden' name='hidden' value='".$row['DEfdId']."'>
					</form>
				
					</button>
                
					</td>
                   
</tr>
						";
}}
						?>
				 
				 
				 
				 
               
                     <tfoot>
                
					<tr height='50'>
                    <th>S/N
			
					</th>
                   
                    <th>MODEL</th>
                    <th>AMOUNT</th>
					<th>INVOICE</th>
					<th>DATE</th>
					<th>COSTOMER NAME
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					</th>
					<th>CUSTOMER TIN</th>
					<th>PHONE</th>
			
					<th>TAX Region</th>
					<th>Purchased From</th>
					<th>Payment Mode</th>
					<th>ADDRESS</th>
					<th>EFD STATUS</th>					
					<th>ACTION</th>
				
                   
					
                  </tr>
                  </tfoot>
                </table>
              </div>
              <!-- /.card-body -->
            </div>
            <!-- /.card -->
          </div>
          <!-- /.col -->
        </div>
        <!-- /.row -->
      </div>
      <!-- /.container-fluid -->
    </section>
    <!-- /.content -->
  </div>
		   
		   
		   
		   
		   
		   
		   
		   
		   
                <!-- /.card-body -->
              
                <!-- /.card-footer -->
         
            </div>
            <!-- /.card -->

          </div>
          <!--/.col (left) -->
          <!-- right column -->
         
          <!--/.col (right) -->
        </div>
        <!-- /.row -->
      </div><!-- /.container-fluid -->
    </section>
	    <!-- /.content -->
  </div>    