@php function isRecaptchaEnabled() { $recaptchaEnabled = env('RECAPTCHA_ENABLED', 'true'); return $recaptchaEnabled === true || $recaptchaEnabled === 'true' || $recaptchaEnabled === '1' || $recaptchaEnabled === 1 || strtolower($recaptchaEnabled) === 'true'; } @endphp