@extends('layouts.landing') @section('title', $evaluacion->titulo) @section('content')
@if(session('info'))
{{ session('info') }}
@endif
{{ $evaluacion->titulo }}
Editar Regresar
Información general
@if($evaluacion->descripcion)

{{ $evaluacion->descripcion }}


@endif
Tipo
@php $slug = $evaluacion->tipo?->slug; @endphp @if($slug === 'docente') Docentes @elseif($slug === 'alumno') Alumnos @elseif($slug === 'administrativo') Administrativos @endif
Estado
@if($evaluacion->status === 'activa') Activa @elseif($evaluacion->status === 'borrador') Borrador @else Cerrada @endif
Anónima
{{ $evaluacion->anonima ? 'Sí' : 'No' }}
Preguntas
{{ $evaluacion->preguntas->count() }}
Respuestas
{{ $evaluacion->submissions->count() }}
@if($evaluacion->fecha_inicio || $evaluacion->fecha_fin)
Inicio
{{ $evaluacion->fecha_inicio?->format('d/m/Y') ?? '—' }}
Fin
{{ $evaluacion->fecha_fin?->format('d/m/Y') ?? '—' }}
@endif
@if($evaluacion->planteles->isNotEmpty())
Planteles
@foreach($evaluacion->planteles as $plantel) {{ $plantel->name }} @endforeach
@endif @if($evaluacion->niveles->isNotEmpty())
Niveles educativos
@foreach($evaluacion->niveles as $nivel) {{ $nivel->name }} @endforeach
@endif
Cambiar estado
@csrf @method('PATCH')
Preguntas ({{ $evaluacion->preguntas->count() }})
@forelse($evaluacion->preguntas as $i => $pregunta)
Pregunta {{ $i + 1 }} @if($pregunta->requerida) * @endif

{{ $pregunta->texto }}

{{ $pregunta->tipo?->nombre }}
@if($pregunta->tipo?->slug === 'opcion_multiple' && $pregunta->opciones->isNotEmpty())
    @foreach($pregunta->opciones as $opcion)
  • {{ $opcion->texto }}
  • @endforeach
@elseif($pregunta->tipo?->slug === 'si_no')
No
@elseif($pregunta->tipo?->slug === 'escala_5')
@for($k = 1; $k <= 5; $k++) {{ $k }} @endfor / 5
@elseif($pregunta->tipo?->slug === 'escala_10')
@for($k = 1; $k <= 10; $k++) {{ $k }} @endfor / 10
@elseif($pregunta->tipo?->slug === 'texto_libre')
— Respuesta abierta —
@endif
@empty

Esta evaluación no tiene preguntas.

@endforelse
@endsection