




<?php $__env->startSection('meta_title'); ?>
    <?php echo e('Change Email - Aryanict.com'); ?>

<?php $__env->stopSection(); ?>


<?php $__env->startSection('title'); ?>
    <span>Change Email</span>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('description'); ?>
    <p>
        Addn new email to receive the OTP
    </p>
<?php $__env->stopSection(); ?>



<?php $__env->startSection('content'); ?>

<div class="row g-0 justify-content-center">
    <div class="col-sm-8 col-xl-4">
      <form  action="<?php echo e(route('store.changed.email.verification')); ?>"  method="POST" >
        <?php echo csrf_field(); ?>
        <div class="mb-4">
          <input type="email" class="form-control form-control-lg form-control-alt py-3 <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" value="<?php echo e(old('email')); ?>" name="email" placeholder="Enter your new email address" required>
          <?php if(Session::has('success_message')): ?>
          <div style="color:green;font-size: .875rem;margin-top: .375rem;width:100%"><?php echo e(Session::get('success_message')); ?></div>
          <?php endif; ?>

          <?php if(Session::has('error_message')): ?>
           <div style="color:#dc2626;font-size: .875rem;margin-top: .375rem;width:100%"><?php echo e(Session::get('error_message')); ?></div>
          <?php endif; ?>

          <?php $__errorArgs = ['verify'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
          <div  class="invalid-feedback animated fadeIn"><?php echo e($message); ?></div>
          <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        </div>

        <div class="text-center">
            <a  href="/Servlet/VerifyEmail.py" style="margin-right: 10px"> Back to Email</a>

          <button type="submit" class="btn btn-lg btn-alt-primary">
            <i class="fa fa-fw fa-envelope me-1 opacity-50"></i> Change
          </button>
          
        </div>
      </form>
    </div>
  </div>




<?php $__env->stopSection(); ?>

<?php $__env->startSection('script'); ?>
<script>
    $(function() {
        $('#email_form').submit(function(event) {
            var verified = grecaptcha.getResponse();
            if (verified.length === 0) {
                event.preventDefault();
            }
        });
    });
</script>

<?php $__env->stopSection(); ?>



<?php echo $__env->make('Dashboard.auth_master_page', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/leaparyanict/aict.leap.aryanict.com/resources/views/Dashboard/User/ChangeEmail.blade.php ENDPATH**/ ?>