
<?php $__env->startSection('content'); ?>
    <div class="page-container">

        <div class="page-title-head d-flex align-items-sm-center flex-sm-row flex-column gap-2">
            <div class="flex-grow-1">
                <h4 class="fs-18 fw-semibold mb-0"><?php echo e($title); ?></h4>
            </div>

            <div class="text-end">
                <?php if (isset($component)) { $__componentOriginalf249638ac7504c50bf0259c0cb71919d = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalf249638ac7504c50bf0259c0cb71919d = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.user.breadcrumbs','data' => ['breadcrumbs' => $breadcrumbs]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.user.breadcrumbs'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['breadcrumbs' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($breadcrumbs)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalf249638ac7504c50bf0259c0cb71919d)): ?>
<?php $attributes = $__attributesOriginalf249638ac7504c50bf0259c0cb71919d; ?>
<?php unset($__attributesOriginalf249638ac7504c50bf0259c0cb71919d); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalf249638ac7504c50bf0259c0cb71919d)): ?>
<?php $component = $__componentOriginalf249638ac7504c50bf0259c0cb71919d; ?>
<?php unset($__componentOriginalf249638ac7504c50bf0259c0cb71919d); ?>
<?php endif; ?>
            </div>
        </div>

        <div class="row">
            <div class="col-md-8">
                <?php if (isset($component)) { $__componentOriginal66cb34fa521ca32c539059e04f66064d = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal66cb34fa521ca32c539059e04f66064d = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.user.card','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.user.card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
                    <?php $__env->slot('header'); ?>
                        Email-Based Two-Factor Authentication <br>
                        <small>Add an extra layer of security to your account</small>

                        <div class="float-end">
                            <a href="<?php echo e(route('user.profile.index')); ?>" class="btn btn-soft-primary"> <i
                                    class="fa-solid fa-arrow-left me-1"></i> Back to
                                Profile</a>

                        </div>
                    <?php $__env->endSlot(); ?>

                    <span class="<?php echo e($user->two_factor_authentication->badge()); ?>">
                        <i class="fa fa-shield"></i> <?php echo e($user->two_factor_authentication->label()); ?>

                    </span> <b>Current Status</b>

                    <p>
                        When enabled, a 6-digit verification code will be sent to your email address <a
                            href="<?php echo e(route('user.profile.index')); ?>"
                            class="text-primary font-weight-bolder"><?php echo e($user->email); ?></a>
                        each time you log in to your account.
                    </p>

                    <?php if (isset($component)) { $__componentOriginalfe09c8749324076e07136fa94a0420b5 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalfe09c8749324076e07136fa94a0420b5 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.user.info-list','data' => ['title' => 'How Two-Factor Authentication Works','icon' => 'fa-solid fa-info','options' => [
                            'When you log in with your password, a 6-digit code will be sent to your email',
                            'You must enter this code to complete your login',
                            'This adds an extra layer of security to your account',
                            'The code expires after 10 minutes for security',
                        ]]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.user.info-list'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => 'How Two-Factor Authentication Works','icon' => 'fa-solid fa-info','options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute([
                            'When you log in with your password, a 6-digit code will be sent to your email',
                            'You must enter this code to complete your login',
                            'This adds an extra layer of security to your account',
                            'The code expires after 10 minutes for security',
                        ])]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalfe09c8749324076e07136fa94a0420b5)): ?>
<?php $attributes = $__attributesOriginalfe09c8749324076e07136fa94a0420b5; ?>
<?php unset($__attributesOriginalfe09c8749324076e07136fa94a0420b5); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalfe09c8749324076e07136fa94a0420b5)): ?>
<?php $component = $__componentOriginalfe09c8749324076e07136fa94a0420b5; ?>
<?php unset($__componentOriginalfe09c8749324076e07136fa94a0420b5); ?>
<?php endif; ?>

                    <?php if($user->two_factor_authentication->value === 0): ?>
                        <form action="<?php echo e(route('user.profile.two_factor_authentication')); ?>" method="post">
                            <?php echo csrf_field(); ?>
                            <?php if (isset($component)) { $__componentOriginal3da7c2b1a70c514618cac6445fff8846 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal3da7c2b1a70c514618cac6445fff8846 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.user.form-button','data' => ['icon' => 'fa-solid fa-shield me-1','name' => 'Enable Two-Factor Authentication','class' => 'btn btn-primary']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.user.form-button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['icon' => 'fa-solid fa-shield me-1','name' => 'Enable Two-Factor Authentication','class' => 'btn btn-primary']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal3da7c2b1a70c514618cac6445fff8846)): ?>
<?php $attributes = $__attributesOriginal3da7c2b1a70c514618cac6445fff8846; ?>
<?php unset($__attributesOriginal3da7c2b1a70c514618cac6445fff8846); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal3da7c2b1a70c514618cac6445fff8846)): ?>
<?php $component = $__componentOriginal3da7c2b1a70c514618cac6445fff8846; ?>
<?php unset($__componentOriginal3da7c2b1a70c514618cac6445fff8846); ?>
<?php endif; ?>
                        </form>
                    <?php else: ?>
                        <form action="<?php echo e(route('user.profile.two_factor_authentication.disable')); ?>" method="post">
                            <?php echo csrf_field(); ?>
                            <?php if (isset($component)) { $__componentOriginal3da7c2b1a70c514618cac6445fff8846 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal3da7c2b1a70c514618cac6445fff8846 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.user.form-button','data' => ['icon' => 'fa-solid fa-shield me-1','name' => 'Disable Two-Factor Authentication','class' => 'btn btn-danger']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.user.form-button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['icon' => 'fa-solid fa-shield me-1','name' => 'Disable Two-Factor Authentication','class' => 'btn btn-danger']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal3da7c2b1a70c514618cac6445fff8846)): ?>
<?php $attributes = $__attributesOriginal3da7c2b1a70c514618cac6445fff8846; ?>
<?php unset($__attributesOriginal3da7c2b1a70c514618cac6445fff8846); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal3da7c2b1a70c514618cac6445fff8846)): ?>
<?php $component = $__componentOriginal3da7c2b1a70c514618cac6445fff8846; ?>
<?php unset($__componentOriginal3da7c2b1a70c514618cac6445fff8846); ?>
<?php endif; ?>
                        </form>
                    <?php endif; ?>

                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal66cb34fa521ca32c539059e04f66064d)): ?>
<?php $attributes = $__attributesOriginal66cb34fa521ca32c539059e04f66064d; ?>
<?php unset($__attributesOriginal66cb34fa521ca32c539059e04f66064d); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal66cb34fa521ca32c539059e04f66064d)): ?>
<?php $component = $__componentOriginal66cb34fa521ca32c539059e04f66064d; ?>
<?php unset($__componentOriginal66cb34fa521ca32c539059e04f66064d); ?>
<?php endif; ?>
            </div>

            <div class="col-md-4">
                <?php if (isset($component)) { $__componentOriginal66cb34fa521ca32c539059e04f66064d = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal66cb34fa521ca32c539059e04f66064d = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.user.card','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.user.card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
                    <?php $__env->slot('header'); ?>
                        <i class="fa-solid fa-lightbulb"></i> Security Tips
                    <?php $__env->endSlot(); ?>

                    <?php if (isset($component)) { $__componentOriginal41abd46654527bfe8b91c3c6f8de004a = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal41abd46654527bfe8b91c3c6f8de004a = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.user.tips','data' => ['options' => [
                        'Use a strong, unique password',
                        'Enable two-factor authentication',
                        'Keep your email secure',
                        'Log out when using shared devices',
                        'Regularly check your account activity',
                    ]]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.user.tips'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute([
                        'Use a strong, unique password',
                        'Enable two-factor authentication',
                        'Keep your email secure',
                        'Log out when using shared devices',
                        'Regularly check your account activity',
                    ])]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal41abd46654527bfe8b91c3c6f8de004a)): ?>
<?php $attributes = $__attributesOriginal41abd46654527bfe8b91c3c6f8de004a; ?>
<?php unset($__attributesOriginal41abd46654527bfe8b91c3c6f8de004a); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal41abd46654527bfe8b91c3c6f8de004a)): ?>
<?php $component = $__componentOriginal41abd46654527bfe8b91c3c6f8de004a; ?>
<?php unset($__componentOriginal41abd46654527bfe8b91c3c6f8de004a); ?>
<?php endif; ?>

                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal66cb34fa521ca32c539059e04f66064d)): ?>
<?php $attributes = $__attributesOriginal66cb34fa521ca32c539059e04f66064d; ?>
<?php unset($__attributesOriginal66cb34fa521ca32c539059e04f66064d); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal66cb34fa521ca32c539059e04f66064d)): ?>
<?php $component = $__componentOriginal66cb34fa521ca32c539059e04f66064d; ?>
<?php unset($__componentOriginal66cb34fa521ca32c539059e04f66064d); ?>
<?php endif; ?>
            </div>

            <div class="col-md-12">
                <?php if (isset($component)) { $__componentOriginald0502abe5335291c32c2eb9debb7e492 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald0502abe5335291c32c2eb9debb7e492 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.user.support-card','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.user.support-card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald0502abe5335291c32c2eb9debb7e492)): ?>
<?php $attributes = $__attributesOriginald0502abe5335291c32c2eb9debb7e492; ?>
<?php unset($__attributesOriginald0502abe5335291c32c2eb9debb7e492); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald0502abe5335291c32c2eb9debb7e492)): ?>
<?php $component = $__componentOriginald0502abe5335291c32c2eb9debb7e492; ?>
<?php unset($__componentOriginald0502abe5335291c32c2eb9debb7e492); ?>
<?php endif; ?>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('dashboard.user.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\projects\online-banking-v7.1\resources\views/dashboard/user/profile/two_factor_authentication.blade.php ENDPATH**/ ?>