<?php   
	include_once("../view/header-footer/header.php");  
?>  
  
   <script>
        function callFun()
        {
            
                    window.location.href = "QrReport.php";
        }
   </script>
 <!-- Features -->
 
 <?php 
    if($_REQUEST['method']==1)
    {
 ?>
   <div class="innerDeader">
      <div class="container">
          
             <a href="javascript:void(0);" id="go-back" class="goBack PaySound">
           <img src="<?php echo ROOTPATH;?>/images/Arrow 1.svg" alt="back">
       </a> 
          <h4>ADD MONEY METHOD-1</h4> 
          
          <?php 
            if(isset($_SESSION['utrPaidAmt']))
            {
          ?>
            <br>
             <h4 style="color:green;">
                    <span onclick="callFun();"><?php echo $_SESSION['utrPaid'];?></span>
            </h4>
            
          <?php }else { ?> 
            <h4 style="color:red;"><?php echo $_SESSION['utrPaid'];?></h4>
          <?php }  ?>
     </div>    
   </div>
   
   
   <div class="innerBody">  
   
   
       <div class="container">
            <?php 
            if(!isset($_SESSION['utrPaid'])) {
            ?> 
            <span> <b> Note: </b> Please scan daily pay Qr code and pay the amount. Then enter generated UTR and amount and then submit your request.</span>
            <?php } ?>
        <div class="formBox">
                
            
            
            <form method="post" autocomplete="off"> 
            
                <?php 
                if(!isset($_SESSION['utrPaid'])) {
                ?>

                <div class="form-check">
                    <img src="<?php echo ROOTPATH;?>/images/dpQr1.jpg"  width="300"/>
                </div>
                
                
                <div class="form-outline">
                <label class="form-label" for="form12">Enter Amount</label>
                <input type="number" id="form12" class="form-control" name="amount"    required    /> 
                </div>     
                
                
                <div class="form-outline">
                <label class="form-label" for="form12">Enter UTR</label>
                <input type="number" id="form12" class="form-control" name="utr"   required   /> 
                </div>     
                


                <input type="submit" class="btn btn-primary bigBtn PaySound"name="submitReuqest" value="Submit Request" /> 
                
                <?php 
                     }
                ?>
                <a href="QrReport.php" id="go-backDown" class="PaySound " style="background-color: #7f8ca1;
                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;" >QR CODE REPORT</a> 
                

                </form>  
            
        </div>  
       </div> 
   </div>  
   
   <?php } ?>
   
    <?php 
    if($_REQUEST['method']==2)
    {
 ?>
   
    <div class="innerDeader">
      <div class="container">  
          <h4>ADD MONEY METHOD-2</h4>
     </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">Enter Amount</label>
            <input type="number" id="form12" class="form-control" name="amount"  id="amount"  required  placeholder="e.q 25000" />
             
          </div>     

                
                 <!--div class="form-check"> 
                    <input class="form-check-input" type="radio" name="PgTYpe" value="2" required/>
                    <label class="form-check-label" for="flexRadioDefault1"> Payment Method: 1</label>
                </div> 
                
                
                 <div class="form-check"> 
                <input class="form-check-input" type="radio" name="PgTYpe" value="1" required/>
                    <label class="form-check-label" for="flexRadioDefault1"> Payment Method: 2</label>
                </div-->
                
                
                <div class="form-check">
                    <img src="<?php echo ROOTPATH;?>/images/we_accept_add_moneypage1.png"  width="300"/>
                    <input   type="hidden" name="PgTYpe" value="2"/>
                </div>
                


                <input type="submit" class="btn btn-primary bigBtn PaySound"name="submit" value="Proceed" />   
                </form>  
                
        </div>  
       </div> 
   </div>  
   
   <?php } ?>
   
     
</div>
 
<?php 
  include_once("../view/header-footer/footer.php");  
    unset($_SESSION['utrPaid']);
    unset($_SESSION['utrPaidAmt']);  
?>