 




 <?php $__env->startSection('content'); ?>
 <div class="content content-boxed">
     <div class="block block-rounded">
        <div class="block-header block-header-default">

            <h3 class="block-title">Two-Factor Authentication
                            </h3>


        </div>


         <div class="block-content block-content-full" >
             <form class="js-validation-reminder" action="<?php echo e(route('profile.google2fa.verify')); ?>" method="POST">
                 <?php echo csrf_field(); ?>
                 <div class="mb-4 col-8" style="margin:0 auto;">

                     <p style="text-align: justify;font-size: 15px;">Setup your 2FAs by scanning the barcode below using
                         Google
                         or Microsoft Authenticator App Alternatively, you can use the code <?php echo e($secret); ?></p>

                     <?php if(Auth::user()->googlef2_status == 1): ?>
                         <h4 style="text-align: justify;color:red;font-size: 14px;">You have already enabled the 2FA on
                             <?php echo e(Auth::user()->google_date); ?> Do you want to setup again on new device?
                         </h4>
                         <br>
                         <br>
                     <?php endif; ?>


                     <div style="text-align: center">
                         <img src="<?php echo $QR_Image; ?>" />
                     </div>

                     <div class="form-floating mb-2">
                         <input type="password" class="form-control" name="secret" placeholder="Enter 6-digit code">
                         <label for="example-password-input-floating">Enter 6-digit code</label>
                     </div>



                     <?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 $__errorArgs = ['secret'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                     <div style="color:#dc2626;font-size: .875rem;margin-top: .375rem;width:100%">
                        <?php echo e($message); ?></div>
                     <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>

                     <div class="text-center">

                         <?php if(Auth::user()->googlef2_status == 1): ?>
                             <button id="button" type="submit"class="btn btn-lg btn-alt-primary">Enable on New Device</button>
                         <?php endif; ?>

                         <?php if(Auth::user()->googlef2_status == 0): ?>
                             <button id="button" type="submit" class="btn btn-lg btn-alt-primary">Enable</button>
                         <?php endif; ?>

                     </div>


                 </div>

             </form>
         </div>

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

<?php echo $__env->make('Dashboard.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/GoogleFactorUpdate.blade.php ENDPATH**/ ?>