<?php include('conn.php');
$page='Bar Auditing';
if(isset($_POST["employee_ids"]))  
{  
     $data=$_POST['employee_ids'];
     }
?>
<?php include("common/head.php");?>


  
  <!-- Modal -->
                  <?php 
$sql = "SELECT * FROM menu WHERE id='$data' ";
$result=mysqli_query($conn,$sql);
    $row=mysqli_fetch_array($result);
        $name=$row['name'];
        $id=$row['id'];
        $data=$row['id'];
          $status=$row['status'];
          $price=$row['price'];
          $itemlocation=$row['itemlocation'];
     

          include("item_data.php");

          $instockQty=$total_remaining_item*15;
        
          $id_users=15*$id_user;
          $ids=$id*15;
?>
    <div class="modal-dialog" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <h4 class="modal-title text-center text-dark" id="exampleModalLabel">Auditing</h4>
          <a href="add_audit" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </a>
        </div>
        <div class="modal-body">


     
            <form  method="post"  class="text-dark">
                <div class="form-group">
                  <label for="exampleFormControlInput1">Item Name</label>
                  <input type="text"  class="form-control" id="exampleFormControlInput1" value="<?php echo $name?>" disabled>
				  <input type="hidden" name="name" class="form-control" id="exampleFormControlInput1" value="<?php echo $name?>" >
                </div> 
               
                

                  <div class="form-group">
                    <label for="exampleFormControlInput1">Quantity in Stock</label>
                    <input type="number" name="qty" class="form-control" id="exampleFormControlInput1" placeholder="" required>
                  </div>

                  <input type="hidden" name="qtyInStock" value="<?php echo $instockQty  ?>">
                  <input type="hidden" name="location" value="<?php echo $itemlocation ?>">
                  <input type="hidden" name="id" value="<?php echo $ids ?>">
                  <input type="hidden" name="by" value="<?php echo $id_users ?>">
            	      <input type="hidden" name="date" value="<?php echo date("F j, Y") ?>">
                    <input type="hidden" name="time" value="<?php echo date("h:ia") ?>">
                  <button type="submit"  name="submit" class="btn btn-primary btn-sm">Submit</button>
              </form>
        </div>
        <div class="modal-footer">
          <a href="../bar" class="btn btn-secondary" data-dismiss="modal">Close</a>
  
        </div>
      </div>
    </div>

