<?php include('common/header.php'); ?>
  <!-- Main Sidebar Container -->
<?php include('common/sidenav.php'); ?>




 <?php
//vendor
include('includes/config.php');
$v = '';

$query = "SELECT * FROM `vendors` where vs_status='0' ORDER BY company_name ASC";
$result = mysqli_query($con, $query);
while($row = mysqli_fetch_array($result))
{
 $v .= '<option value="'.$row["company_name"].'">'.$row["company_name"].' </option>';
}
?>



  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
  

    <!-- Content Header (Page header) -->
    <section class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1>Reports</h1>
          </div>
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="receivable.php">Dataview</a></li>
             <li class="breadcrumb-item active"><a href="dashboard.php">Dashboard</a></li>
            </ol>
          </div>
        </div>
      </div><!-- /.container-fluid -->
    </section>

    <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
        <div class="row">
          <div class="col-12">


            <div class="card">
              <div class="card-header">
                <h3 class="card-title">Payment Ledger</h3>
              </div>
        
              <!-- /.card-header -->
              <div class="card-body">

                
                  <form method="GET" action="exportledger.php" id="cart">     
     <h4>Add Info</h4>
                 <div class="row">
                
                   
                      
                    
                    <div class="col-md-4">
                        <div class="form-group">
                              <label>Vendor</label>
                             <select style="width:100%;" class="form-control select2bs4 action2" id="vendor" name="vendor">
                                    <option value="">Select Vendor</option>
                                    <?php echo $v; ?>
                            </select>   
                            
                        </div>
                        
                    </div>
                    <div class="col-md-4">
                        <div class="form-group">
                              <label>From Date </label>
                              <input type="date" required="required" name="from_date" class="form-control" >
                         </div>
                         </div>
                         <div class="col-md-4">
                          <div class="form-group">
                              <label>To Date </label>
                              <input type="date" required="required" name="to_date" class="form-control" >
                         </div>
                        
                    </div>
                   <!-- <div class="col-md-2">
                        <div class="form-group">
                    <label>Order Status</label>
                    <select class="form-control" name="order_status" required="required">
                        <option value="">Select Status</option>
                        <?php //echo $ors;?>
                    </select>
                        </div>
                    </div>-->
              </div>
              
            
                 
                <div class="row">
                     <div class="col-md-4">
                  <div classs="form-group">
              <fieldset>
           

            <div classs="form-group">
            <input type="checkbox" id="logo_hide" name="hide_logo">
            <label for="scales">Check it to hide the logo.</label>
            </div>
          </fieldset>
    </div> </div>
              </div>
              
           
             <div class="row">
                <!-- /.form-group -->
               <div class="col-md-2">
                    <div class="form-group">
                 <button type="submit" name="search" class="btn btn-danger btn-icon-notika waves-effect"><i class="fas fa-search"></i></button>
     
           
     
              </div>
            </div>
             
            </div>
            
        
          
                
               </div></div>
               </div>
           </form>




    











      </div>
              <!-- /.card-body -->
            </div>
            <!-- /.card -->
          </div>
          <!-- /.col -->
        </div>
        <!-- /.row -->
      </div>
      <!-- /.container-fluid -->
    </section>
    <!-- /.content -->











  </div>
  <!-- /.content-wrapper -->


<?php include('common/footer.php'); ?>