@extends('layouts.app') @section('title', 'Quizzes & CATs') @section('content')
| Assessment | Class / subject | Domain | Status | Weight | Questions | Attempts | Actions |
|---|---|---|---|---|---|---|---|
|
{{ $quiz->category_label }}
Term {{ $quiz->term }}, {{ $quiz->year }}
|
{{ $quiz->subject->name ?? '-' }}
{{ $quiz->schoolClass->name ?? '-' }}{{ $quiz->stream ? ' / '.$quiz->stream : '' }}
|
{{ $quiz->domain }} | @if($quiz->status === 'draft') Draft @elseif($open) Open @elseif($quiz->status === 'closed' || $quiz->availabilityLabel() !== 'Open') {{ $quiz->status === 'closed' ? 'Closed' : $quiz->availabilityLabel() }} @else {{ ucfirst($quiz->status) }} @endif | {{ (float) $quiz->weight > 0 ? num($quiz->weight, 0).'%' : 'Progress only' }} |
{{ num($question->total ?? 0) }}
{{ num($question->marks ?? 0, 0) }} marks
|
{{ num($attempt->total ?? 0) }}
@if($attempt)
{{ num($attempt->average, 1) }}% avg
@endif
@if(($attempt->pending ?? 0) > 0)
{{ num($attempt->pending) }} to grade
@endif
|
|