HEX
Server: LiteSpeed
System: Linux srv1.dhviews.com 5.14.0-570.23.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jun 24 11:27:16 EDT 2025 x86_64
User: bdedition (1723)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/bdedition/public_html/core/storage/framework/views/4178996f0fb1c94fddd9022b51ab0609.php
<?php $__env->startSection('panel'); ?>
    <div class="container">
        <div class="row justify-content-center gy-4">
            <?php if(!$user->ts): ?>
                <div class="col-md-6">
                    <div class="card">
                        <div class="card-header">
                            <h5 class="card-title"><?php echo app('translator')->get('Add Your Account'); ?></h5>
                        </div>
                        <div class="card-body">
                            <h6 class="mb-3">
                                <?php echo app('translator')->get('Use the QR code or setup key on your Google Authenticator app to add your account.'); ?>
                            </h6>
                            <div class="form-group mx-auto text-center">
                                <img class="mx-auto" src="<?php echo e($qrCodeUrl); ?>" alt="QR">
                            </div>
                            <div class="form-group">
                                <label class="form-label"><?php echo app('translator')->get('Setup Key'); ?></label>
                                <div class="input-group">
                                    <input type="text" name="key" value="<?php echo e($secret); ?>"
                                        class="form-control form--control referralURL" readonly>
                                    <button type="button" class="input-group-text copytext" id="copyBoard">
                                        <i class="fas fa-copy"></i>
                                    </button>
                                </div>
                            </div>


                            <label><i class="fas fa-info-circle"></i> <?php echo app('translator')->get('Help'); ?></label>
                            <p>
                                <?php echo app('translator')->get('Google Authenticator is a multifactor app for mobile devices. It generates timed codes used during the 2-step verification process. To use Google Authenticator, install the Google Authenticator application on your mobile device.'); ?> <a class="text--base"
                                    href="https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2&hl=en"
                                    target="_blank">
                                    <?php echo app('translator')->get('Download'); ?>
                                </a>
                            </p>
                        </div>
                    </div>
                </div>
            <?php endif; ?>
            <div class="col-md-6">
                <?php if($user->ts): ?>
                    <div class="card">
                        <div class="card-header">
                            <h5 class="card-title"><?php echo app('translator')->get('Disable 2FA Security'); ?></h5>
                        </div>
                        <form action="<?php echo e(route('user.twofactor.disable')); ?>" method="POST" class="disableSubmission">
                            <div class="card-body">
                                <?php echo csrf_field(); ?>
                                <input type="hidden" name="key" value="<?php echo e($secret); ?>">
                                <div class="form-group">
                                    <label class="form-label"><?php echo app('translator')->get('Google Authenticator OTP'); ?></label>
                                    <input type="text" class="form-control form--control" name="code" required>
                                </div>
                                <button type="submit" class="btn btn--primary w-100 h-45"><?php echo app('translator')->get('Submit'); ?></button>
                            </div>
                        </form>
                    </div>
                <?php else: ?>
                    <div class="card">
                        <div class="card-header">
                            <h5 class="card-title"><?php echo app('translator')->get('Enable 2FA Security'); ?></h5>
                        </div>
                        <form action="<?php echo e(route('user.twofactor.enable')); ?>" method="POST" class="disableSubmission">
                            <div class="card-body">
                                <?php echo csrf_field(); ?>
                                <input type="hidden" name="key" value="<?php echo e($secret); ?>">
                                <div class="form-group">
                                    <label class="form-label"><?php echo app('translator')->get('Google Authenticator OTP'); ?></label>
                                    <input type="text" class="form-control form--control" name="code" required>
                                </div>
                                <button type="submit" class="btn btn--primary w-100 h-45"><?php echo app('translator')->get('Submit'); ?></button>
                            </div>
                        </form>
                    </div>
                <?php endif; ?>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('style'); ?>
    <style>
        .copied::after {
            background-color: #071251;
        }

        .input-group-text {
            color: #fff;
            background-color: #071251;
            border: 1px solid #071251;
        }
    </style>
<?php $__env->stopPush(); ?>

<?php $__env->startPush('script'); ?>
    <script>
        (function($) {
            "use strict";
            $('#copyBoard').on('click', function() {
                var copyText = document.getElementsByClassName("referralURL");
                copyText = copyText[0];
                copyText.select();
                copyText.setSelectionRange(0, 99999);
                /*For mobile devices*/
                document.execCommand("copy");
                copyText.blur();
                this.classList.add('copied');
                setTimeout(() => this.classList.remove('copied'), 1500);
            });
        })(jQuery);
    </script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('staff.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/bdedition/public_html/core/resources/views/staff/twofactor.blade.php ENDPATH**/ ?>