<?php $this->load->view('top');

$adminRes = get_site_email();  
?>

  <section class="banner_category" style="background-image: url('<?php echo theme_url();?>images/listing-banner.jpg');">
    <div class="container">
     
      <h1 class="banner_title">Verify OTP</h1>
    </div>
  </section>

<div class="page_breadcrumbs">

		<div class="container">

			<ul>

      <li><a href="<?=site_url();?>" title="Home">Home</a>

            </li>

            <li>Verify OTP</li>

			</ul>

		</div>

	</div>
<!-- New code start here -->

 <div class="clearfix"></div>
  <div class="container">
    <div class="row justify-content-md-center innerRegter registerform-style">      
      <div class="col p-4 p-lg-5 login-form">
        <div class="col-lg-4 col-md-4">
          <div class="panel-lite step1">
          <div class="thumbur">
          <i class="fa fa-user"></i>
          </div>
         <br/>
		<form class="register-form" action="<?=site_url();?>users/v_otp" method="post">
         <h5 class='text-center'>Verification Code</h5>
            <br>
            <p class="text-center">Please Type the Verification Code sent to <?php $res=$this->session->userdata('regg_data'); echo $res['mobile']; ?></p>
             <p id="status_response1"></p>
            <br>
           
          <div class="form-group">
             <div class="divOuter_otp">
                <div class="divInner_otp">
                    <input class="chk_otp" name="otp" type="text" id="otp"  maxlength="6" minlength="6" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" required>
              </div>
          </div>
              
          </div>
          <input type="hidden" name="mobile" id="mobile" value="<?php $res=$this->session->userdata('regg_data'); echo $res['mobile']; ?>" />
       
            <button type="submit" class="login_btn_1" id="ver_otp" name="ver_otp" >Verify OTP</button>
           
        
         </form>
              <a href="#" id="resendotp">RESEND OTP</a> 
              
               </div>
          </div>
          </div>
      </div>  

<?php $this->load->view('bottom'); ?>

<script>
    $(document).ready(function() {
       <?php if($this->session->flashdata('regerror')) { 
    ?>
        $('#status_response1').html('<div class="alert alert-danger"><strong> Wrong! OTP </strong><button type="button" class="close" data-bs-dismiss="alert" aria-hidden="true"><i class="fa fa-remove"></i></button></div>'); 
 <?php
    
}  $this->session->unset_userdata('regerror');?>
    });
</script>