
<?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)) { $__componentOriginalc60db44e52d942d3b0e4d76f7065f04b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc60db44e52d942d3b0e4d76f7065f04b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.breadcrumbs','data' => ['breadcrumbs' => $breadcrumbs]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.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 \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

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

        <div class="row">
            <div class="col-lg-8">
                <?php if (isset($component)) { $__componentOriginalb63f174754b9376d0cbcfda0c77a69e2 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalb63f174754b9376d0cbcfda0c77a69e2 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.card','data' => ['title' => 'Email-Based Two-Factor Authentication','subtitle' => 'Add an extra layer of security to your account','button' => [
                        'route' => route('user.profile.index'),
                        'text' => 'Back to Profile',
                        'icon' => 'fa fa-arrow-left me-1',
                    ]]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.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(['title' => 'Email-Based Two-Factor Authentication','subtitle' => 'Add an extra layer of security to your account','button' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute([
                        'route' => route('user.profile.index'),
                        'text' => 'Back to Profile',
                        'icon' => 'fa fa-arrow-left me-1',
                    ])]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

                    
                    
                    <span class="<?php echo e($user->two_factor_enabled->badge()); ?>">
                        <i class="fa fa-shield"></i> <?php echo e($user->two_factor_enabled->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)) { $__componentOriginal35cda371c1b8846cde980c50031a7a5f = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal35cda371c1b8846cde980c50031a7a5f = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.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.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 \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal35cda371c1b8846cde980c50031a7a5f)): ?>
<?php $attributes = $__attributesOriginal35cda371c1b8846cde980c50031a7a5f; ?>
<?php unset($__attributesOriginal35cda371c1b8846cde980c50031a7a5f); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal35cda371c1b8846cde980c50031a7a5f)): ?>
<?php $component = $__componentOriginal35cda371c1b8846cde980c50031a7a5f; ?>
<?php unset($__componentOriginal35cda371c1b8846cde980c50031a7a5f); ?>
<?php endif; ?>

                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(!$user->twoFactorEnabled()): ?>
                        <form action="<?php echo e(route('user.profile.2fa.enable')); ?>" method="post">
                            <?php echo csrf_field(); ?>
                            <?php if (isset($component)) { $__componentOriginal7178ed540a8dc7c094ff05f0b3b06a77 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal7178ed540a8dc7c094ff05f0b3b06a77 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.form-button','data' => ['icon' => 'fa-solid fa-shield me-1','name' => 'Enable Two-Factor Authentication','class' => 'btn btn-success']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.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-success']); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal7178ed540a8dc7c094ff05f0b3b06a77)): ?>
<?php $attributes = $__attributesOriginal7178ed540a8dc7c094ff05f0b3b06a77; ?>
<?php unset($__attributesOriginal7178ed540a8dc7c094ff05f0b3b06a77); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7178ed540a8dc7c094ff05f0b3b06a77)): ?>
<?php $component = $__componentOriginal7178ed540a8dc7c094ff05f0b3b06a77; ?>
<?php unset($__componentOriginal7178ed540a8dc7c094ff05f0b3b06a77); ?>
<?php endif; ?>
                        </form>
                    <?php else: ?>
                        <form action="<?php echo e(route('user.profile.2fa.disable')); ?>" method="post">
                            <?php echo csrf_field(); ?>
                            <?php if (isset($component)) { $__componentOriginal7178ed540a8dc7c094ff05f0b3b06a77 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal7178ed540a8dc7c094ff05f0b3b06a77 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.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.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 \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal7178ed540a8dc7c094ff05f0b3b06a77)): ?>
<?php $attributes = $__attributesOriginal7178ed540a8dc7c094ff05f0b3b06a77; ?>
<?php unset($__attributesOriginal7178ed540a8dc7c094ff05f0b3b06a77); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7178ed540a8dc7c094ff05f0b3b06a77)): ?>
<?php $component = $__componentOriginal7178ed540a8dc7c094ff05f0b3b06a77; ?>
<?php unset($__componentOriginal7178ed540a8dc7c094ff05f0b3b06a77); ?>
<?php endif; ?>
                        </form>
                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalb63f174754b9376d0cbcfda0c77a69e2)): ?>
<?php $attributes = $__attributesOriginalb63f174754b9376d0cbcfda0c77a69e2; ?>
<?php unset($__attributesOriginalb63f174754b9376d0cbcfda0c77a69e2); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalb63f174754b9376d0cbcfda0c77a69e2)): ?>
<?php $component = $__componentOriginalb63f174754b9376d0cbcfda0c77a69e2; ?>
<?php unset($__componentOriginalb63f174754b9376d0cbcfda0c77a69e2); ?>
<?php endif; ?>
            </div>
            <div class="col-md-4">
                <?php if (isset($component)) { $__componentOriginalb63f174754b9376d0cbcfda0c77a69e2 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalb63f174754b9376d0cbcfda0c77a69e2 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.card','data' => ['icon' => 'fa-solid fa-lightbulb me-1','title' => 'Security Tips']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.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(['icon' => 'fa-solid fa-lightbulb me-1','title' => 'Security Tips']); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

                    <?php if (isset($component)) { $__componentOriginal2b37885b6c93380b0880ced52d603200 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal2b37885b6c93380b0880ced52d603200 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.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.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 \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal2b37885b6c93380b0880ced52d603200)): ?>
<?php $attributes = $__attributesOriginal2b37885b6c93380b0880ced52d603200; ?>
<?php unset($__attributesOriginal2b37885b6c93380b0880ced52d603200); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal2b37885b6c93380b0880ced52d603200)): ?>
<?php $component = $__componentOriginal2b37885b6c93380b0880ced52d603200; ?>
<?php unset($__componentOriginal2b37885b6c93380b0880ced52d603200); ?>
<?php endif; ?>
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalb63f174754b9376d0cbcfda0c77a69e2)): ?>
<?php $attributes = $__attributesOriginalb63f174754b9376d0cbcfda0c77a69e2; ?>
<?php unset($__attributesOriginalb63f174754b9376d0cbcfda0c77a69e2); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalb63f174754b9376d0cbcfda0c77a69e2)): ?>
<?php $component = $__componentOriginalb63f174754b9376d0cbcfda0c77a69e2; ?>
<?php unset($__componentOriginalb63f174754b9376d0cbcfda0c77a69e2); ?>
<?php endif; ?>
            </div>
            <!-- end col -->
        </div>
        <!-- end row -->

    </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\broker-v6.0\resources\views/dashboard/user/profile/2fa.blade.php ENDPATH**/ ?>