<?php $__env->startSection('title', 'Authentication & OTP'); ?>

<?php $__env->startSection('breadcrumb'); ?>
    <div class="section-header-breadcrumb">
        <div class="breadcrumb-item"><a href="<?php echo e(route('admin.dashboard')); ?>">Dashboard</a></div>
        <div class="breadcrumb-item"><a href="<?php echo e(route('admin.settings.index')); ?>">Settings</a></div>
        <div class="breadcrumb-item active">Authentication & OTP</div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('main-content'); ?>
    <div class="row">
        <div class="col-lg-12">
            <div class="card">
                <div class="card-header d-flex justify-content-between align-items-center">
                    <h4>Login Experience</h4>
                    <a href="<?php echo e(route('admin.settings.index')); ?>" class="btn btn-secondary"><i
                            class="fas fa-arrow-left"></i> Back to Settings</a>
                </div>
                <form action="<?php echo e(route('admin.settings.authentication.update')); ?>" method="POST">
                    <?php echo csrf_field(); ?>
                    <?php echo method_field('PUT'); ?>
                    <div class="card-body">
                        <div class="form-group">
                            <div class="custom-control custom-switch">
                                <input type="checkbox" class="custom-control-input" id="email_verification_required"
                                    name="email_verification_required" value="1"
                                    <?php echo e(old('email_verification_required', $settings['email_verification_required'] ?? true) ? 'checked' : ''); ?>>
                                <label class="custom-control-label" for="email_verification_required">Require email
                                    verification for new accounts</label>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="custom-control custom-switch">
                                <input type="checkbox" class="custom-control-input" id="login_otp_enabled"
                                    name="login_otp_enabled" value="1"
                                    <?php echo e(old('login_otp_enabled', $settings['login_otp_enabled'] ?? false) ? 'checked' : ''); ?>>
                                <label class="custom-control-label" for="login_otp_enabled">Enable OTP verification on
                                    login</label>
                            </div>
                            <small class="text-muted d-block mt-1">Users will receive a one-time code to confirm their
                                identity.</small>
                        </div>
                        <div class="form-group">
                            <label for="otp_expiry_minutes">OTP Expiry (minutes)</label>
                            <input type="number" name="otp_expiry_minutes" id="otp_expiry_minutes"
                                class="form-control <?php $__errorArgs = ['otp_expiry_minutes'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                value="<?php echo e(old('otp_expiry_minutes', $settings['otp_expiry_minutes'] ?? 10)); ?>"
                                min="1" max="120" required>
                            <?php $__errorArgs = ['otp_expiry_minutes'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <div class="invalid-feedback"><?php echo e($message); ?></div>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                        <div class="form-group d-none">
                            <div class="custom-control custom-switch">
                                <input type="checkbox" class="custom-control-input" id="recaptcha_on_login"
                                    name="recaptcha_on_login" value="1"
                                    <?php echo e(old('recaptcha_on_login', $settings['recaptcha_on_login'] ?? false) ? 'checked' : ''); ?>>
                                <label class="custom-control-label" for="recaptcha_on_login">Require Recaptcha on login
                                    forms</label>
                            </div>
                        </div>
                    </div>
                    <div class="card-footer text-right">
                        <button type="submit" class="btn btn-primary">Save Authentication Settings</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /Users/mahmudul/Codecanyone/edu_ex_full/Eduex_laravel/resources/views/admin/settings/authentication.blade.php ENDPATH**/ ?>