{{-- Mensaje de éxito --}} @if($showSuccessMessage)

¡Datos actualizados correctamente!

Tu información educativa y documentos se guardaron con éxito.

@endif {{-- Sección Principal: Nivel Educativo y Estado --}}

Formación Académica

{{-- Nivel Educativo --}}
@error('education_level') {{ $message }} @enderror
{{-- Estado del Nivel Educativo --}} @if($education_level)
@foreach(['Completa', 'Incompleta'] as $status) @endforeach
@error('education_status') {{ $message }} @enderror
@endif
{{-- Detalles del Formulario según Nivel y Estado --}} @if($education_level && $education_status)

Detalles de {{ $education_level }} ({{ $education_status }})

{{-- ======================================= --}} {{-- RAMA SECUNDARIA --}} {{-- ======================================= --}} @if($education_level === 'Secundaria')
@error('secundary_institution') {{ $message }} @enderror
@error('secundary_egress_year') {{ $message }} @enderror
@endif {{-- ======================================= --}} {{-- RAMA TÉCNICA --}} {{-- ======================================= --}} @if($education_level === 'Técnica') @if($education_status === 'Completa')
@error('technical_level') {{ $message }} @enderror
@endif {{-- Institución Técnica (Autocomplete) --}}
@error('technical_institution') {{ $message }} @enderror
{{-- Campo libre de institución si selecciona OTROS --}} @if($technical_institution === 'OTROS')
@error('technical_institution_other') {{ $message }} @enderror
@endif {{-- Tipo de Institución --}}
@error('technical_institution_type') {{ $message }} @enderror
{{-- Régimen --}}
@error('technical_institution_regimen') {{ $message }} @enderror
{{-- Carrera Técnica (Autocomplete) --}}
@error('technical_career') {{ $message }} @enderror
{{-- Campo libre de carrera si selecciona OTROS --}} @if($technical_career === 'OTROS')
@error('technical_career_other') {{ $message }} @enderror
@endif @if($education_status === 'Completa') {{-- Año de egreso --}}
@error('technical_egress_year') {{ $message }} @enderror
{{-- ¿Cuenta con otros estudios técnicos o universitarios? --}}
@foreach(['Si', 'No'] as $op) @endforeach
@else {{-- Campos de Incompleta --}}
@error('technical_cycle') {{ $message }} @enderror
@error('technical_entry_year') {{ $message }} @enderror
@error('technical_current_status') {{ $message }} @enderror
@endif @endif {{-- ======================================= --}} {{-- RAMA UNIVERSITARIA --}} {{-- ======================================= --}} @if($education_level === 'Universitaria') @if($education_status === 'Completa')
@error('university_level') {{ $message }} @enderror
@endif {{-- Universidad (Autocomplete) --}}
@error('university_institution') {{ $message }} @enderror
{{-- Campo libre de universidad si selecciona OTROS --}} @if($university_institution === 'OTROS')
@error('university_institution_other') {{ $message }} @enderror
@endif {{-- Carrera Universitaria (Autocomplete) --}}
@error('university_career') {{ $message }} @enderror
{{-- Campo libre de carrera si selecciona OTROS --}} @if($university_career === 'OTROS')
@error('university_career_other') {{ $message }} @enderror
@endif {{-- Régimen --}}
@error('university_institution_regimen') {{ $message }} @enderror
@if($education_status === 'Completa') {{-- Año de egreso --}}
@error('university_egress_year') {{ $message }} @enderror
{{-- ¿Cuenta con otros estudios técnicos o universitarios? --}}
@foreach(['Si', 'No'] as $op) @endforeach
{{-- ¿Cuenta con estudios de postgrado? (Solo si es Bachiller o Titulado) --}} @if(in_array($university_level, ['Bachiller', 'Titulado']))
@foreach(['Si', 'No'] as $op) @endforeach
@endif @else {{-- Universitaria Incompleta --}}
@error('university_cycle') {{ $message }} @enderror
@error('university_entry_year') {{ $message }} @enderror
@error('university_current_status') {{ $message }} @enderror
@endif @endif
@endif {{-- ======================================= --}} {{-- SECCIÓN OTROS ESTUDIOS ADICIONALES --}} {{-- ======================================= --}} @if(in_array($education_level, ['Técnica', 'Universitaria']) && $education_status === 'Completa' && $has_other_career === 'Si')

Otros estudios técnicos o universitarios

@if(empty($other_careers))

No has agregado otros estudios. Presiona agregar para añadir uno.

@endif @foreach($other_careers as $index => $careerItem)
Estudio Adicional #{{ $index + 1 }}
@error('other_careers.'.$index.'.type') {{ $message }} @enderror
@if(($careerItem['type'] ?? '') === 'Técnica')
@error('other_careers.'.$index.'.institution') {{ $message }} @enderror @if(($careerItem['institution'] ?? '') === 'OTROS')
@error('other_careers.'.$index.'.institution_other') {{ $message }} @enderror
@endif
@error('other_careers.'.$index.'.institution_type') {{ $message }} @enderror
@error('other_careers.'.$index.'.career') {{ $message }} @enderror @if(($careerItem['career'] ?? '') === 'OTROS')
@error('other_careers.'.$index.'.career_other') {{ $message }} @enderror
@endif @elseif(($careerItem['type'] ?? '') === 'Universitaria')
@error('other_careers.'.$index.'.institution') {{ $message }} @enderror @if(($careerItem['institution'] ?? '') === 'OTROS')
@error('other_careers.'.$index.'.institution_other') {{ $message }} @enderror
@endif
@error('other_careers.'.$index.'.career') {{ $message }} @enderror @if(($careerItem['career'] ?? '') === 'OTROS')
@error('other_careers.'.$index.'.career_other') {{ $message }} @enderror
@endif @else
Selecciona el tipo de estudio para ver los campos específicos.
@endif {{-- Régimen --}}
@error('other_careers.'.$index.'.regimen') {{ $message }} @enderror
{{-- Estado --}}
@error('other_careers.'.$index.'.status') {{ $message }} @enderror
@if(($careerItem['status'] ?? '') === 'Completa')
@error('other_careers.'.$index.'.egress_year') {{ $message }} @enderror
@elseif(($careerItem['status'] ?? '') === 'Incompleta')
@error('other_careers.'.$index.'.cycle') {{ $message }} @enderror
@error('other_careers.'.$index.'.entry_year') {{ $message }} @enderror
@error('other_careers.'.$index.'.current_status') {{ $message }} @enderror
@endif
@endforeach
@endif {{-- ======================================= --}} {{-- SECCIÓN ESTUDIOS DE POSTGRADO --}} {{-- ======================================= --}} @if($education_level === 'Universitaria' && $education_status === 'Completa' && in_array($university_level, ['Bachiller', 'Titulado']) && $has_postgraduate === 'Si')

Estudios de Postgrado

@if(empty($postgraduates))

No has agregado postgrados. Presiona agregar para añadir uno.

@endif @foreach($postgraduates as $index => $postgrad)
Postgrado #{{ $index + 1 }}
{{-- Tipo de Postgrado --}}
{{-- Estado del Postgrado --}}
{{-- Universidad (Tipear libre) --}}
{{-- Régimen --}}
@error('postgraduates.'.$index.'.regimen') {{ $message }} @enderror
{{-- Especialidad (Tipear libre) --}}
{{-- Condicionales según Estado --}} @if(($postgrad['status'] ?? '') === 'Completo')
@elseif(($postgrad['status'] ?? '') === 'Incompleto')
@endif
@endforeach
@endif {{-- Sección: Documentos de Soporte (oculto para Secundaria) --}} @if($education_level !== 'Secundaria')

Documentos de Soporte

{{-- Caja de info --}}

Carga de archivos para acreditar tus estudios:

  • • Formatos admitidos: PDF, JPG, PNG (máx 5MB)
  • • Puedes subir múltiples constancias, títulos o certificados
{{-- Zona de Carga (Drag & Drop) --}}
{{-- Loader --}}

Subiendo documentos...

@error('documents.*') {{ $message }} @enderror {{-- Lista de nuevos documentos --}} @if(!empty($documents))

Nuevos documentos cargados:

@foreach($documents as $index => $document)

{{ $document->getClientOriginalName() }}

{{ number_format($document->getSize() / 1024 / 1024, 2) }} MB

@endforeach
@endif {{-- Documentos históricos --}} @if($worker->education_documents && count($worker->education_documents) > 0)

Historial de documentos cargados:

@foreach($worker->education_documents as $doc)
{{ $doc['original_name'] ?? 'Documento' }}
@endforeach
@endif
@endif {{-- Botón Guardar Cambios --}}