{{-- Renders the Google reCAPTCHA widget if enabled for the given form. Usage: @include('partials.recaptcha', ['form' => 'login']) 'form' values: login, register, contact --}} @php $formKey = $form ?? 'contact'; $shouldShow = recaptcha_enabled() && setting("recaptcha_on_{$formKey}", true); @endphp @if($shouldShow)
@once @push('scripts') @endpush @endonce @endif