<?php   
	include_once("../view/header-footer/header.php");  
?>  
<script>
        $(document).ready(function()
        {        
            var URL = "<?php echo ROOTPATH;?>";    
            $( "#cuurentId" ).change(function() 
            {       
                  
                       
              $.ajax({	
                    type: "POST",
                    url: URL+"/ajax/validation.php",
                    data: {userDatacheckTop:1,Data:$("#cuurentId").val()},
                    beforeSend: function(){ 
                    },
                    success: function(data)
                        {       
                            $("#AvailbleId").html("<span style='color:green;'>"+data+" &#x2713</span>");
                        }
                    });   
            });  
        });    
    
     
    </script> 
<script type="text/javascript" src="<?php echo ROOTPATH;?>/view/js/tab/profile.js"> </script>
<script>
        //Function To Display Popup
    function div_show() {
    
    document.getElementById('abc').style.display = "block";
    }
    //Function to Hide Popup
    function div_hide(){
    document.getElementById('abc').style.display = "none";
    }
        
</script>
  
   
 <!-- Features -->
   <div class="innerDeader">
      <div class="container">
           
            
            <a href="javascript:void(0);" id="go-back" class="goBack">
            <img src="<?php echo ROOTPATH;?>/images/Arrow 1.svg" alt="back">
            </a>  

          <h4>GIFT VOUCHER</h4> 
          <span <?php if(isset($_SESSION['topSuc'])) { ?> style="color:green;"  <?php } else { ?> style="color:red;" <?php  } ?> > 
           <?php  
                if(isset($_SESSION['Regis']))  
                    echo $_SESSION['Regis'];     
            ?>
          </span>
     </div>    
   </div>
   <div class="innerBody">
       <div class="container">
        <div class="formBox">
            <form method="post" autocomplete="off">
                
          <div class="form-outline">
            <label class="form-label" for="form12">Select Operator</label>  
            <select name="Operator"   class="form-control" required> 
                <option value="">Select Operator</option>
                <?php 
                    foreach($UI__Voucher as $dm)
                    {
                ?>
                <option value="<?php echo $dm->unique_provider_id;?>"><?php echo $dm->Brand;?></option> 
                <?php } ?>  
            </select>  
          </div> 
		  
		   <div class="form-outline">
            <label class="form-label" for="form12">Amount</label>
            <input type="number"   class="form-control"    name="amount"  id="amount"  required   /> 
          </div>  
	 
		  
	    <div class="form-outline">
            <label class="form-label" for="form12">Availale Balance</label>
            <input type="text"   class="form-control"   value="₹<?php echo $PAYWAllet;?>" readonly  /> 
          </div>
		  
          
		  <input type="submit" class="btn btn-primary bigBtn PaySound"     name="submit" id="submit" value="Generate Gift Voucher" onclick="functionCalled1();" />  
		  <a href="javascript:void(0);" id="go-back" class="PaySound " style="background-color: #747474;
                    border: none;
                    color: #fff;
                    padding: 5px 10px;
                    text-align: center;
                    text-decoration: none;
                    display: inline-block;
                    width:100%; 
                    border-radius:5px;
                    font-size: 15px;
                    margin: 4px 2px;
                    cursor: pointer;" >Go Back</a>
          </form>

        </div>  
       </div>
   </div>  
   
     
</div>
 
<?php 
  include_once("../view/header-footer/footer.php");  
unset($_SESSION['Regis']);  
unset($_SESSION['topSuc']); 
unset($_SESSION['QRSET']); 