@extends('admin.layout.app') @section('content')

Respuestas individuales

{{ $campaign->titulo }}

Consulta quién respondió la evaluación y el detalle de sus respuestas.

Participantes

{{ number_format($participants->count()) }}

Preguntas

{{ number_format($campaign->preguntas->count()) }}

Respuestas totales

{{ number_format($participants->sum(fn ($participant) => $participant['responses']->count())) }}

@forelse ($participants as $participant)

Alumno

{{ $participant['alumno']?->nombre_completo ?? 'Sin nombre' }}

badge {{ $participant['alumno']?->matricula ?? 'Sin matrícula' }}

school {{ $participant['alumno']?->campus ?? 'Sin campus' }}

mail {{ $participant['alumno']?->email ?: 'Sin correo' }}

schedule {{ optional($participant['submitted_at'])->format('d/m/Y H:i') }}

Promedio individual

{{ $participant['average'] ?? 'N/A' }}

@foreach ($participant['responses'] as $response)

{{ $response->pregunta?->tipo === 'multiple' ? 'Opción múltiple' : 'Respuesta abierta' }}

{{ $response->pregunta?->pregunta }}

@if ($response->answer)
{{ $response->answer->respuesta }} {{ $response->answer->valor }} pts
@else

{{ $response->respuesta }}

@endif
@endforeach
@empty
person_search

Sin respuestas individuales

Aún no hay alumnos que hayan respondido esta evaluación.

@endforelse
@endsection