<?php $__env->startSection('content'); ?>
    <div class="login-main" style="background-image: url('<?php echo e(asset('assets/admin/images/login.jpg')); ?>')">
        <div class="container custom-container d-flex justify-content-center">
            <div class="login-area">
                <div class="text-center mb-3">
                    <h2 class="text-white mb-2"><?php echo app('translator')->get('Verify Code'); ?></h2>
                    <p class="text-white mb-2"><?php echo app('translator')->get('Please check your email and enter the verification code you got in your email.'); ?></p>
                </div>
                <form action="<?php echo e(route('admin.password.verify.code')); ?>" method="POST" class="login-form w-100">
                    <?php echo csrf_field(); ?>

                    <div class="code-box-wrapper d-flex w-100">
                        <div class="form-group mb-3 flex-fill">
                            <span class="text-white fw-bold"><?php echo app('translator')->get('Verification Code'); ?></span>
                            <div class="verification-code">
                                <input type="text" name="code" class="overflow-hidden" autocomplete="off">
                                <div class="boxes">
                                    <span>-</span>
                                    <span>-</span>
                                    <span>-</span>
                                    <span>-</span>
                                    <span>-</span>
                                    <span>-</span>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="d-flex flex-wrap justify-content-between">
                        <a href="<?php echo e(route('admin.password.reset')); ?>" class="forget-text"><?php echo app('translator')->get('Try to send again'); ?></a>
                    </div>
                    <button type="submit" class="btn cmn-btn w-100 mt-4"><?php echo app('translator')->get('Submit'); ?></button>
                </form>
                <a href="<?php echo e(route('admin.login')); ?>" class="text-white mt-4"><i class="las la-sign-in-alt" aria-hidden="true"></i><?php echo app('translator')->get('Back to Login'); ?></a>
            </div>
        </div>
    </div>


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

<?php $__env->startPush('style'); ?>
    <link rel="stylesheet" href="<?php echo e(asset('assets/admin/css/verification_code.css')); ?>">
<?php $__env->stopPush(); ?>

<?php $__env->startPush('script'); ?>
    <script>
        (function($){
            'use strict';
            $('[name=code]').on('input', function () {

                $(this).val(function(i, val){
                    if (val.length >= 6) {
                        $('form').find('button[type=submit]').html('<i class="las la-spinner fa-spin"></i>');
                        $('form').find('button[type=submit]').removeClass('disabled');
                        $('form')[0].submit();
                    }else{
                        $('form').find('button[type=submit]').addClass('disabled');
                    }
                    if(val.length > 6){
                        return val.substring(0, val.length - 1);
                    }
                    return val;
                });

                for (let index = $(this).val().length; index >= 0 ; index--) {
                    $($('.boxes span')[index]).html('');
                }
            });

        })(jQuery)
    </script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('admin.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/vipvbqdu/public_html/core/resources/views/admin/auth/passwords/code_verify.blade.php ENDPATH**/ ?>