

<?php $__env->startSection('title', getSetting('APPLICATION_NAME') . ' | ' . $page); ?>

<?php $__env->startSection('content'); ?>
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-md-8">
                <div class="card">
                    <div class="card-header"><?php echo e(__('Verify your code')); ?></div>
                    <div class="card-body">
                        <?php echo $__env->make('include.message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

                        <form method="POST" action="<?php echo e(route('tfa.post')); ?>">
                            <?php echo csrf_field(); ?>
                            <p class="text-center"><?php echo e(__('The code has been sent to')); ?> :
                                <?php echo e(substr(auth()->user()->email, 0, 5) . '******' . substr(auth()->user()->email, -2)); ?>

                            </p>

                            <div class="form-group row">
                                <label for="code"
                                    class="col-md-4 col-form-label text-md-right"><?php echo e(__('Code')); ?></label>
                                <div class="col-md-6">
                                    <input id="code" type="number"
                                        class="form-control <?php $__errorArgs = ['code'];
$__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); ?>" name="code"
                                        value="<?php echo e(old('code')); ?>" required autocomplete="code" autofocus>
                                    <?php $__errorArgs = ['code'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <span class="invalid-feedback" role="alert">
                                            <strong><?php echo e($message); ?></strong>
                                        </span>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>
                            </div>
                            <div class="form-group row mb-0">
                                <div class="col-md-8 offset-md-4">
                                    <a class="btn btn-link resend-code disabled"
                                        href="<?php echo e(route('tfa.resend')); ?>"><?php echo __('Resend Code (in :seconds seconds)', ['seconds' => '<span id="seconds">30</span>']); ?></a>
                                </div>
                            </div>
                            <div class="form-group row mb-0">
                                <div class="col-md-8 offset-md-4">
                                    <button type="submit" class="btn btn-primary">
                                        <?php echo e(__('Submit')); ?>

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

<?php $__env->startSection('script'); ?>
    <script type="text/javascript">
        $(document).ready(function() {
            //enable resend link
            let seconds = $("#seconds").text();

            const timer = setInterval(() => {
                $("#seconds").text(--seconds);

                if (!seconds) {
                    $(".resend-code").removeClass('disabled');
                    clearInterval(timer);
                }
            }, 1000);
        });
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/originsuiteai/webinar.originsuiteai.com/resources/views/tfa-verify.blade.php ENDPATH**/ ?>