{{-- Trainer: review one course — each module as staff will see it, the quiz with its answers, then approve or request changes. From TrainerCourseReviewController@show: $course, $modules, $module. --}} @extends('layouts.app') @section('title', 'Review: '.$course->title) @section('content') @include('partials.flash') arrow_back Courses to review

{{ $course->title }}

{{ $course->course_id }} · {{ \Illuminate\Support\Str::headline($course->category) }} · {{ $course->duration_minutes }} min{{ $course->refresh_cycle ? ' · renew '.$course->refresh_cycle : '' }}

@if($course->summary)

{{ $course->summary }}

@endif @if($course->what_youll_learn)

What you'll learn

{{ $course->what_youll_learn }}

@endif
{{-- Module list --}} {{-- The module, as staff will see it --}}
@if($module)

Module {{ $module->module_number }}

{{ $module->title }}

@forelse($module->blocks as $block) @include('partials._content-block', ['block' => $block]) @empty

This module has no content yet.

@endforelse
@if($module->questions->isNotEmpty())

Quiz — correct answers ticked

    @foreach($module->questions as $q)
  1. {{ $q->text }}
      @foreach($q->options as $o)
    • {{ $o->is_correct ? 'check_circle' : 'radio_button_unchecked' }} {{ $o->text }}
    • @endforeach
    @if($q->explanation)

    Explanation: {{ $q->explanation }}

    @endif
  2. @endforeach
@endif
@endif
{{-- Decision --}}

Your review

@if($course->review_outcome)

Last review: {{ $course->review_outcome === 'approved' ? 'Approved' : 'Changes requested' }} by {{ $course->reviewer?->name ?? '—' }} on {{ $course->reviewed_at?->format('j M Y') }}@if($course->review_note) — “{{ $course->review_note }}”@endif

@else

Check every module and the quiz answers before you decide.

@endif @if($errors->any())

{{ $errors->first() }}

@endif
@csrf
@endsection