@if($pagina->tipo == "contacto") @php $a = rand(1,9); $b = rand(1,9); $signo = rand(0,2); if($signo == 0) { $resultado = $a + $b; $operacion = $a." + ".$b." = ?"; } elseif($signo == 1) { $resultado = $a - $b; $operacion = $a." - ".$b." = ?"; } else{ $resultado = $a * $b; $operacion = $a." * ".$b." = ?"; } Session(['resultado' => $resultado, 'operacion' => $operacion]); @endphp {!! RecaptchaV3::initJs() !!} @if ($errors->has('g-recaptcha-response')) @elseif ($errors->has('nombre')) @elseif ($errors->has('email')) @elseif ($errors->has('mensaje')) @endif
@csrf {!! RecaptchaV3::field('register') !!}
@endif