<?php $__env->startSection('title', translate('reCaptcha Setup')); ?>

<?php $__env->startSection('content'); ?>
    <div class="content container-fluid">
        <div class="page-header">
            <?php echo $__env->make('admin-views.business-settings.partial.third-party-api-navmenu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>

        <div class="card">
            <div class="card-body">
                <div class="flex-between">
                    <h3><?php echo e(translate('Google Recapcha Information')); ?></h3>
                    <a class="cmn--btn btn--primary-2 btn-outline-primary-2" href="https://www.google.com/recaptcha/admin/create">
                        <i class="tio-info-outined"></i> <?php echo e(translate('Credentials SetUp')); ?>

                    </a>
                </div>
                <div class="mt-4">
                    <?php ($config=\App\CentralLogics\Helpers::get_business_settings('recaptcha')); ?>
                    <form
                        action="<?php echo e(env('APP_MODE')!='demo'?route('admin.business-settings.web-app.third-party.recaptcha_update',['recaptcha']):'javascript:'); ?>"
                        method="post">
                        <?php echo csrf_field(); ?>
                        <div class="mb-4">
                           <h4><?php echo e(translate('status')); ?></h4>
                        </div>
                        <div class="d-flex flex-wrap mb-4">
                            <label class="form-check form--check mr-2 mr-md-4">
                                <input type="radio" class="form-check-input" name="status"
                                    value="1" <?php echo e(isset($config) && $config['status']==1?'checked':''); ?>>
                                <span class="form-check-label text--title pl-2"><?php echo e(translate('active')); ?></span>
                            </label>
                            <label class="form-check form--check">
                                <input type="radio" class="form-check-input" name="status"
                                    value="0" <?php echo e(isset($config) && $config['status']==0?'checked':''); ?>>
                                <span class="form-check-label text--title pl-2"><?php echo e(translate('inactive')); ?> </span>
                            </label>
                        </div>
                        <div class="row">
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <label class="form-label"><?php echo e(translate('Site Key')); ?></label>
                                    <input type="text" class="form-control" name="site_key"
                                            value="<?php echo e(env('APP_MODE')!='demo'?$config['site_key']??"":''); ?>">
                                </div>
                            </div>
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <label class="form-label"><?php echo e(translate('Secret Key')); ?></label>
                                    <input type="text" class="form-control" name="secret_key"
                                            value="<?php echo e(env('APP_MODE')!='demo'?$config['secret_key']??"":''); ?>">
                                </div>
                            </div>
                        </div>
                        <h5><?php echo e(translate('Instructions')); ?></h5>
                        <ol class="pl-3">
                            <li class="mb-1"><?php echo e(translate('To  get site key and secret keyGo to the Credentials page')); ?> <a
                                    href="https://www.google.com/recaptcha/admin/create" class="text--base"
                                    target="_blank"><?php echo e(translate('(Click Here)')); ?></a>)
                            </li>
                            <li class="mb-1"><?php echo e(translate('Add a Label (Ex: abc company)' )); ?>

                            </li>
                            <li class="mb-1">
                                <?php echo e(translate('Select reCAPTCHA v2  as  ReCAPTCHA Type')); ?>

                            </li>
                            <li class="mb-1">
                                <?php echo e(translate('Select Sub type: I m not a robot Checkbox')); ?>

                            </li>
                            <li class="mb-1">
                                <?php echo e(translate('Add Domain (For ex: mxepto.mimeld.com)')); ?>

                            </li>
                            <li class="mb-1">
                                <?php echo e(translate('Check in “Accept the reCAPTCHA Terms of Service”')); ?>

                            </li>
                            <li class="mb-1">
                                <?php echo e(translate('Press Submit')); ?>

                            </li>
                            <li class="mb-1"><?php echo e(translate('Copy Site Key and Secret Key, Paste in the input filed below and Save.')); ?>

                            </li>
                        </ol>

                        <div class="text-right">
                            <button type="<?php echo e(env('APP_MODE')!='demo'?'submit':'button'); ?>"
                            class="btn btn--primary px-5 call-demo"><?php echo e(translate('save')); ?></button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.admin.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/mimeld/admin.mxepto.mimeld.com/resources/views/admin-views/business-settings/recaptcha-index.blade.php ENDPATH**/ ?>