@honeypot

@php
    $captchaEnabled = setting()->captchaEnabled();
    $captchaKey = setting()->getCaptchaSiteKey();
    $uniqueId = base64_encode("captcha-response-$name-");
@endphp

@if($captchaEnabled)
    <div
        class="captcha-container"
        data-captcha="{{ $captchaEnabled }}"
        data-key="{{ $captchaKey }}"
        data-field="{{ $uniqueId }}"
        data-action="{{ $name }}"
        data-state="rendered"
    >
        {!! captcha()->field($name) !!}
    </div>
@endif
