@extends('layouts.app-admin') @section('content')
@if($user->photo) Pic @else Pic @endif
{{$user->first_name}} {{$user->last_name}} @switch($user->level) @case(1) Normal @break @case(2) Avanzado @break @case(3) Superior @break @endswitch
EDAD: {{$user->age}} años
POSICIÓN: {{$user->position}}
AGRUPACIÓN: {{$user->group}}
LESIÓN: {{$user->injury == 1 ? 'Si' : 'No'}}
FECHA FIRMA: {{Carbon\Carbon::parse($user->data_protection_date)->format('d/m/Y H:i')}}
FECHA JUEGO: {{Carbon\Carbon::parse($game->date_time_start)->format('d/m/Y H:i')}}
TIEMPO: {{$time_total}}
Rapidez Mental
TIEMPO EJERCICIO: {{$mental_speed_array['time']}}
{{--
--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- TIEMPO ACUMULADO:--}} {{-- --}} {{-- {{$mental_speed_array['time_accumulated']}}--}} {{--
--}}
SECUENCIA: {{$mental_speed_array['sequence']}}
NÚMERO DE INICIO: {{$mental_speed_array['number_start']}}
CORRECTAS: {{$mental_speed_array['corrects']}}
INCORRECTAS: {{$mental_speed_array['incorrects']}}
FUERA DE SITIO: {{$mental_speed_array['outs']}}
@if($game->mental_speed) @if($game->mental_speed->mental_speed_detail->count()) @foreach($game->mental_speed->mental_speed_detail as $mental_speed_detail) @endforeach @endif @endif
Pulsación Valor esperado Valor presionado Resultado Tiempo
{{Carbon\Carbon::parse($mental_speed_detail->time_pulsation)->toDateTimeString() }} {{$mental_speed_detail->value_expected}} @if($mental_speed_detail->value_pressed == -1) Sin valor @else {{$mental_speed_detail->value_pressed}} @endif @switch($mental_speed_detail->result) @case(1) Correcto @break @case(2) Incorrecto @break @case(3) Pulsación Errada @break @endswitch {{Carbon\Carbon::parse($mental_speed_detail->time)->format('i:s')}}
Cálculo Mental
@if($game->mental_calculation) @if($game->mental_calculation->mental_calculation_detail->count()) @foreach($game->mental_calculation->mental_calculation_detail as $mental_calculation_detail) @endforeach @endif @endif
Valor esperado Valor introducido Resultado Tiempo
{{$mental_calculation_detail->value_expected}} @if($mental_calculation_detail->value_entered) {{$mental_calculation_detail->value_entered}} @else ----- @endif @switch($mental_calculation_detail->result) @case(1) Correcto @break @case(2) Incorrecto @break @endswitch {{Carbon\Carbon::parse($mental_calculation_detail->time)->format('i:s')}}
Palabras
TIEMPO EJERCICIO: {{$word_game_array['time']}}
{{--
--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- TIEMPO ACUMULADO:--}} {{-- --}} {{-- {{$word_game_array['time_accumulated']}}--}} {{--
--}}
LETRA CLAVE: {{$word_game_array['letter']}}
CORRECTAS: {{$word_game_array['corrects']}}
INCORRECTAS: {{$word_game_array['incorrects']}}
FUERA DE SITIO: {{$word_game_array['outs']}}
@if($game->word_game) @if($game->word_game->word_game_detail->count()) @foreach($game->word_game->word_game_detail as $word_game_detail) @endforeach @endif @endif
Pulsación Palabra Contiene Valor pulsado Resultado Tiempo
{{Carbon\Carbon::parse($word_game_detail->time_pulsation)->format('i:s')}} {{$word_game_detail->word}} @if($word_game_detail->content_letter == 1) Contiene @else No Contiene @endif @if($word_game_detail->pulsation == 1) Pulsa @elseif($word_game_detail->pulsation == 0) No Pulsa @elseif($word_game_detail->pulsation == -1) Sin Valor @endif @switch($word_game_detail->result) @case(1) Correcto @break @case(2) Incorrecto @break @case(3) Pulsación Errada @break @endswitch {{Carbon\Carbon::parse($word_game_detail->time)->format('i:s')}}
Contraseñad
@if($game->memorize_password_detail) @endif
Valor esperado Valor introducido Resultado Tiempo
{{$game->memorize_password_detail->value_expected}} @if($game->memorize_password_detail->value_entered) {{$game->memorize_password_detail->value_entered}} @else ----- @endif @switch($game->memorize_password_detail->result) @case(1) Correcto @break @case(2) Incorrecto @break @endswitch {{Carbon\Carbon::parse($game->memorize_password_detail->time)->format('i:s')}}
Figuras
@if($game->memorize_figure)
FIGURA/COLOR: ({{$figure_text . '/' . $color_text}})
CORRECTAS: {{$memorize_figure_array['corrects']}}
INCORRECTAS: {{$memorize_figure_array['incorrects']}}
FUERA DE SITIO: {{$memorize_figure_array['outs']}}
@endif
@if($game->memorize_figure_detail) @foreach($game->memorize_figure_detail as $memorize_figure_detail) @endforeach @endif
Pulsación Ejercicio Fígura/Color Pulsado Resultado Tiempo
{{Carbon\Carbon::parse($memorize_figure_detail->time_pulsation)->format('i:s')}} @switch($memorize_figure_detail->game_stay) @case(1) Rapidez Mental @break @case(2) Cálculo Mental @break @case(3) Palabras @break @case(4) Contraseña @break @case(0) ----- @break @endswitch ({{$figure_text . '/' . $color_text}}) @if($memorize_figure_detail->pulsation == 0) No pulsa @elseif($memorize_figure_detail->pulsation == 1) Pulsa @else Sin valor @endif @switch($memorize_figure_detail->result) @case(1) Correcto @break @case(2) Incorrecto @break @case(3) Pulsación Errada @break @endswitch {{Carbon\Carbon::parse($memorize_figure_detail->time)->format('i:s')}}
Resultado de los videos
@if($video_result and array_key_exists('results',$video_result))
Tiempo analizado Tiempo total
Static @if($frame_rate){{\Carbon\Carbon::parse($testDurationSeconds-($video_result['length_invalid_pose'][0]/$frame_rate))->format('i:s')}}@endif @if($frame_rate){{$time_total}}@endif
Natural @if($frame_rate){{\Carbon\Carbon::parse(($testDurationSeconds-($video_result['length_invalid_pose'][0]/$frame_rate))-($video_result['length_invalid_expression'][0]/$frame_rate))->format('i:s')}}@endif @if($frame_rate){{\Carbon\Carbon::parse($testDurationSeconds-($video_result['length_invalid_pose'][0]/$frame_rate))->format('i:s')}}@endif
@foreach($video_result['results']['right'] as $key => $result) @endforeach
RIGHT
Darkness Color
{{$key}} {{round($result['darkness'], 2)}} % {{$result['color']?'azul - morado':'marron - oscuro'}}
@foreach($video_result['results']['left'] as $key => $result) @endforeach
LEFT
Darkness Color
{{$key}} {{round($result['darkness'], 2)}} % {{$result['color']?'azul - morado':'marron - oscuro'}}
@elseif($video_result and array_key_exists('error',$video_result)) @if($video_result['error'] == "8000")

No se reconoce ninguna cara en la grabación.

@else

{{$video_result['error']}}

@endif @else

sin resultados

@endif
@endsection