@extends('layouts.admin') @section('title', 'Preview · '.$exam->name) @php $config = [ 'exam' => [ 'name' => $exam->name, 'displayName' => $exam->display_name, 'duration' => $exam->duration_minutes, 'passing' => (float) $exam->passing_percentage, 'allowSkip' => (bool) $exam->allow_skip, 'showFeedback' => (bool) $exam->show_feedback, 'randomize' => (bool) $exam->randomize_questions, ], 'questions' => $questions, ]; @endphp @section('content') {{ $exam->display_name }} · {{ $questions->count() }} question(s) · {{ $exam->duration_minutes }} min · pass {{ rtrim(rtrim(number_format($exam->passing_percentage, 2), '0'), '.') }}% · Admin preview – nothing is recorded
@can('manageQuestions', $exam) Question Builder @endcan
@if ($questions->isEmpty())
@else
Question 1 of {{ $questions->count() }}
@endif @endsection @push('scripts') @endpush