<?php $__env->startSection('css_libraries'); ?>
<link rel="stylesheet" href="<?php echo e(asset(AdminTheme::assets('modules/summernote/summernote-bs4.css'))); ?>" />
<link rel="stylesheet" href="<?php echo e(asset(AdminTheme::assets('modules/select2/dist/css/select2.min.css'))); ?>">

<?php $__env->stopSection(); ?>

<?php $__env->startSection('js_libraries'); ?>
<script src="<?php echo e(asset(AdminTheme::assets('modules/summernote/summernote-bs4.js'))); ?>"></script>
<script src="<?php echo e(asset(AdminTheme::assets('modules/select2/dist/js/select2.full.min.js'))); ?>"></script>
<?php $__env->stopSection(); ?>

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

      <div class="col-md-6 col-12">
        <div class="card">
          <div class="card-header justify-content-center">
            <div class="captcha-icon"><i class="fab fa-cloudflare icon-32px"></i></div>
          </div>
          <form action="<?php echo e(route('admin.settings.store')); ?>" method="POST">
            <?php echo csrf_field(); ?>
          <div class="card-body">
            <div class="row">
              <div class="form-group col-12">
                <label><?php echo __('admin.cloudflare_site_key', ['default' => 'CloudFlare Site Key']); ?></label>
                <input type="text" name="encrypted::captcha::cloudflare[site_key]"
                       value="<?php echo e(Settings::getJson('encrypted::captcha::cloudflare', 'site_key')); ?>" class="form-control">
              </div>

              <div class="form-group col-12">
                <label><?php echo __('admin.cloudflare_secret_key', ['default' => 'CloudFlare Secret Key']); ?></label>
                <input type="password" name="encrypted::captcha::cloudflare[secret_key]"
                       value="<?php echo e(Settings::getJson('encrypted::captcha::cloudflare', 'secret_key')); ?>" class="form-control">
              </div>

              <div class="form-group col-6">
                <div class="control-label"><?php echo __('admin.enable_captcha', ['default' => 'Enable Captcha']); ?></div>
                <label class="custom-switch mt-2">
                  <input type="checkbox" name="encrypted::captcha::cloudflare[is_enabled]" value="1" class="custom-switch-input"
                         <?php if(Settings::getJson('encrypted::captcha::cloudflare', 'is_enabled', false)): ?> checked <?php endif; ?>>
                  <span class="custom-switch-indicator"></span>
                  <span class="custom-switch-description"><?php echo __('admin.enable_captcha'); ?></span>
                </label>
              </div>

              <div class="form-group col-6">
                <div class="control-label"><?php echo __('admin.captcha_show_login', ['default' => 'Show on Login Page']); ?></div>
                <label class="custom-switch mt-2">
                  <input type="checkbox" name="encrypted::captcha::cloudflare[page_login]" value="1" class="custom-switch-input"
                         <?php if(Settings::getJson('encrypted::captcha::cloudflare', 'page_login', false)): ?> checked <?php endif; ?>>
                  <span class="custom-switch-indicator"></span>
                  <span class="custom-switch-description">
                      <?php echo __('admin.captcha_show_login_desc', ['default' => 'Display Captcha challenge on login page?']); ?>

                  </span>
                </label>
              </div>

              <div class="form-group col-6">
                <div class="control-label"><?php echo __('admin.captcha_show_register', ['default' => 'Show on Register Page']); ?></div>
                <label class="custom-switch mt-2">
                  <input type="checkbox" name="encrypted::captcha::cloudflare[page_register]" value="1" class="custom-switch-input"
                         <?php if(Settings::getJson('encrypted::captcha::cloudflare', 'page_register', false)): ?> checked <?php endif; ?>>
                  <span class="custom-switch-indicator"></span>
                  <span class="custom-switch-description">
                      <?php echo __('admin.captcha_show_register_desc', ['default' => 'Display Captcha challenge on login page?']); ?>

                  </span>
                </label>
              </div>

              <div class="form-group col-6">
                <div class="control-label"><?php echo __('admin.captcha_show_contact_us', ['default' => 'Show on Contact Us Page']); ?></div>
                <label class="custom-switch mt-2">
                  <input type="checkbox" name="encrypted::captcha::cloudflare[page_contact_us]" value="1" class="custom-switch-input"
                         <?php if(Settings::getJson('encrypted::captcha::cloudflare', 'page_contact_us', false)): ?> checked <?php endif; ?>>
                  <span class="custom-switch-indicator"></span>
                  <span class="custom-switch-description">
                      <?php echo __('admin.captcha_show_contact_us_desc', ['default' => 'Display Captcha challenge on login page?']); ?>

                  </span>
                </label>
              </div>

              <div class="col-12" style="display: flex;justify-content: flex-end;">
                <button type="submit" class="btn btn-primary"><?php echo __('admin.update'); ?></button>
              </div>
            </div>
          </div>
        </form>
        </div>
      </div>

    </div>

<style>
  .captcha-icon {
    width: 64px;
    height: 64px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(195deg,#42424a 0%,#191919 100%);
    border-radius: 10px;
    font-size: 32px;
  }

  .icon-32px {
    font-size: 32px;
  }
</style>
<?php $__env->stopSection(); ?>

<?php echo $__env->make(AdminTheme::wrapper(), ['title' => __('admin.captcha'), 'keywords' => 'WemX Dashboard, WemX Panel'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/wemx/resources/themes/admin/default/settings/captcha.blade.php ENDPATH**/ ?>