@php $hasGeneralErrors = $errors->has('nombre') || $errors->has('estado') || $errors->has('breve_descripcion'); $hasContenidoErrors = $errors->has('descripcion_completa') || $errors->has('objetivo') || $errors->has('requisitos') || $errors->has('documentacion_requerida'); $hasFechasErrors = $errors->has('fecha_inicio_postulacion') || $errors->has('fecha_cierre_postulacion'); $activeTab = 'general'; if ($hasContenidoErrors) { $activeTab = 'contenido'; } elseif ($hasFechasErrors) { $activeTab = 'fechas'; } elseif ($hasGeneralErrors) { $activeTab = 'general'; } @endphp
Define los campos que aparecerán en el formulario de postulación