<?php
    $customCaptcha = loadCustomCaptcha(null, 50);
    $googleCaptcha = loadReCaptcha();
?>
<?php if($googleCaptcha): ?>
    <div class="mb-3">
        <?php echo $googleCaptcha ?>
    </div>
<?php endif; ?>
<?php if($customCaptcha): ?>
    <div class="form-group">
        <div class="mb-2">
            <?php echo $customCaptcha ?>
        </div>
        <label class="form-label"><?php echo app('translator')->get('Captcha'); ?></label>
        <div class="custom--field">
            <input class="form--control" name="captcha" type="text" required>
            <i class="la la-keyboard"></i>
        </div>
    </div>
<?php endif; ?>
<?php if($googleCaptcha): ?>
    <?php $__env->startPush('script'); ?>
        <script>
            (function($) {
                "use strict"
                $('.verify-gcaptcha').on('submit', function() {
                    var response = grecaptcha.getResponse();
                    if (response.length == 0) {
                        document.getElementById('g-recaptcha-error').innerHTML = '<span class="text-danger"><?php echo app('translator')->get('Captcha field is required.'); ?></span>';
                        return false;
                    }
                    return true;
                });
            })(jQuery);
        </script>
    <?php $__env->stopPush(); ?>
<?php endif; ?>
<?php /**PATH /home/wwwlifelinehealt/public_html/lotto-fiesta.lifelinehealthcare.com.pk/core/resources/views/templates/basic/partials/captcha.blade.php ENDPATH**/ ?>