@extends('adminlte::page') @section('title', 'Assessments') @section('content_header')

{{ $quiz->name }}

@stop @section('content')
@if(Auth::user()->role->name == 'manager')

Previous Attempts

{{ Form::open(['route' => ['manager.results', 'userId' => $userId, 'assessmentId' => $quiz->id], 'method' => 'get']) }} {{ Form::select('result_id', $quiz->attempts($userId)->pluck('created_at', 'id'), (isset($_GET["result_id"]) ? $_GET["result_id"] : null), ['placeholder' => 'Select result', 'class' => 'form-control', 'required' => true]) }} {{ Form::close() }} @endif @foreach($results as $question => $correct) @endforeach
# Question
{{ $k }} {{ $question }}
@if(isset($showResit)) @else @endif
@stop