<?php $__env->startSection('title', 'Admin 2FA Security'); ?>
<?php $__env->startSection('content'); ?>
    <div class="max-w-2xl mx-auto bg-slate-800/40 border border-slate-700 rounded-2xl p-8 shadow-lg">
        <h2 class="text-2xl font-bold text-white mb-2"><i class="fas fa-shield-alt text-emerald-500 mr-2"></i> Admin Two-Factor Security</h2>
        <p class="text-sm text-slate-400 mb-6">Protect the admin portal from unauthorized access.</p>

        <?php if(auth()->guard('admin')->user()->two_factor_enabled): ?>
            <div class="bg-emerald-500/10 border border-emerald-500/20 p-4 rounded-xl flex justify-between items-center mb-6">
                <span class="text-emerald-400 font-bold"><i class="fas fa-check-circle"></i> 2FA is ENABLED</span>
                <form action="<?php echo e(route('admin.2fa.disable')); ?>" method="POST">
                    <?php echo csrf_field(); ?> <button class="bg-red-500 text-white px-4 py-2 rounded-lg text-sm">Disable</button>
                </form>
            </div>
        <?php else: ?>
            <div class="text-center mb-6 bg-slate-900 p-6 rounded-xl">
                <p class="text-sm text-slate-300 mb-4">Scan this QR with Google Authenticator:</p>
                <div class="inline-block p-2 bg-white rounded-lg mb-4">
                    <?php echo $QR_Image; ?>

                </div>
                <p class="text-xs text-slate-500 font-mono mb-6">Key: <?php echo e($secret); ?></p>

                <form action="<?php echo e(route('admin.2fa.enable')); ?>" method="POST" class="max-w-xs mx-auto">
                    <?php echo csrf_field(); ?>
                    <input type="text" name="verify_code" placeholder="Enter 6-digit code" class="w-full bg-slate-800 border border-slate-700 text-white text-center rounded-lg p-3 mb-3 outline-none" required>
                    <button type="submit" class="w-full bg-emerald-500 text-white font-bold py-2 rounded-lg">Enable 2FA</button>
                </form>
            </div>
        <?php endif; ?>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/anstserv/public_html/resources/views/admin/2fa-setup.blade.php ENDPATH**/ ?>