@php // Check if this is a FormAbstract-based form that would have fields added via beforeRendering hook $isFormAbstract = $form && class_exists($form) && is_subclass_of($form, \Botble\Base\Forms\FormAbstract::class); @endphp @if (! $isFormAbstract) @if (Captcha::isEnabled() && (! $form || Captcha::formSetting($form, 'enable_recaptcha', 1)))
{!! Captcha::display() !!}
@endif @if (Captcha::mathCaptchaEnabled() && (! $form || Captcha::formSetting($form, 'enable_math_captcha', 0)))
{!! app('math-captcha')->input([ 'class' => 'form-control', 'id' => 'math-group', 'placeholder' => app('math-captcha')->getMathLabelOnly() . ' = ?', ]) !!}
@endif @endif