@extends('layouts.app') @section('content')
@include ('test.header_panel')
Summary for this test
@include ('group.filter') @if (count($users)>0) @for ($q=1; $q<=$questions->count(); $q++) @endfor @php $nRow=0; $classes=['', 'alert-danger', 'alert-success']; $texts=['Not tried', 'Failed', 'Solved']; @endphp @foreach ($users as $user) @php $row=$results->where('userid',$user->id); @endphp @foreach ($questions as $question) @php $cell=$row->where('questionid', $question->id)->first(); @endphp @if (!is_null($cell)) @else @endif @endforeach @endforeach
User{{ $q }}
{{ $user->firstname }} {{ $user->lastname }} {{ $texts[$cell->message] }} ({{ $cell->nTries }}) Not tried
{{ $users->links() }} @else
There aren't any attempts.
@endif
@endsection