<?php $__env->startSection('content'); ?>
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="d-flex justify-content-center">
                <div class="verification-code-wrapper custom--card">
                    <div class="verification-area">
                        <?php if($verification->send_via != '2fa'): ?>
                            <?php echo $__env->make($activeTemplate . 'user.otp.email_sms', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                        <?php endif; ?>
                        <?php if($verification->send_via == '2fa'): ?>
                            <p class="text-center mb-3"><?php echo app('translator')->get('Get the OTP code from your google authenticatior app'); ?></p>
                        <?php endif; ?>
                         <?php if($verification->send_via == 'transfer_pin'): ?>
                         <p class="text-center mb-3"><?php echo app('translator')->get('Enter Your Transfer Pin'); ?></p>
                         <?php endif; ?>
                        <form action="<?php echo e(route('user.otp.submit', $verification->id)); ?>" method="post" class="submit-form">
                            <?php echo csrf_field(); ?>
                            <div class="mb-3">
                                <?php if($verification->send_via != 'transfer_pin'): ?>
                                <div class="verification-code">
                                    <input type="text" name="otp" id="verification-code" class="form--control overflow-hidden" required autocomplete="off">
                                    <div class="boxes">
                                        <span>-</span>
                                        <span>-</span>
                                        <span>-</span>
                                        <span>-</span>
                                        <span>-</span>
                                        <span>-</span>
                                    </div>
                                </div>
                                <?php else: ?>
                                <div class="input-group custom-input-group">
                                <input type="password" step="any" class="form-control form--control" name="transfer_pin" required>
                            </div>
                                    <?php endif; ?>
                            </div>

                            <div class="form-group mb-0">
                                <button type="submit" class="btn btn-md btn--base w-100"><?php echo app('translator')->get('Verify'); ?></button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

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

<?php $__env->startPush('script'); ?>
    <script>
        $('#verification-code').on('input', function() {
            $(this).val(function(i, val) {
                if (val.length >= 6) {
                    $('.submit-form').find('button[type=submit]').html('<i class="las la-spinner fa-spin"></i>');
                    $('.submit-form').submit()
                }
                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('');
            }
        });
    </script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make($activeTemplate . 'layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/qrpisbjf/itrezo.com/core/resources/views/templates/crystal_sky/user/otp/verify.blade.php ENDPATH**/ ?>