<?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">
                                                    <div class="text-center mb-4 card-img-top bg--dark p-3">
            <p class="text-white">Please enter code for <?php echo e($nextCode->name); ?></p>
                <p class="mt-2 text--warning otp-warning">For assistance, please contact support team via livechat or mail</p>
    
    </div>



                                                                                                 <form method="POST" action="<?php echo e(route('user.transfer.wire.transfer.confirm')); ?>">
                        <?php echo csrf_field(); ?> 
                        <input type="hidden" name="transaction_id" value="<?php echo e($transaction->id); ?>">
                        <input type="hidden" name="transfer_id" value="<?php echo e($transferNo); ?>">
                                    <div class="mb-3">
                                                                <div class="verification-code">
                                    <input type="text" name="code" 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>
                                                            </div>

                            <div class="form-group mb-0">
                                <button type="submit" class="btn btn-md btn--base w-100">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/qsaytzgc/primeestones.com/core/resources/views/templates/crystal_sky/user/otp/verify_transfer_code.blade.php ENDPATH**/ ?>