@extends('layouts.app') @section('title', $module->title) @section('content') @include('partials.flash')
{{ $i + 1 }}. {{ $m->title }}
{{ $typeLabel[$m->module_type] ?? 'Module' }}
{{ $isLocked ? 'div' : 'a' }}> @endforeachModule {{ $module->module_number }}
This module has no content yet.
Nice work reaching the end. Complete the steps to finish this module and continue.
@endunlessModule completed
@elseif($timerActive)Unlocks when the timer ends — keep this open.
@elseif((int) $minSeconds > 0)Minimum time reached
@elseWork through the content, then mark it complete.
@endifNext: {{ $nextMod->title }}
Back to course @else task_alt Back to course @endif @else @php // Plain-spoken version of the checklist, for the text-to-speech button. $mins = (int) ceil($minSeconds / 60); $speak = 'To complete this module. '; if ((int) $minSeconds > 0) { $speak .= 'First, spend at least '.$mins.' '.($mins === 1 ? 'minute' : 'minutes').' of active time on this page. The page must stay open and in view for the time to count. '; } if ($interactionCount > 0) { $speak .= ((int) $minSeconds > 0 ? 'Then, ' : 'You must ').'complete every activity in this module: '.$activityGuide->implode(', ').'. Each activity shows a tick once you have done it. '; } if ((int) $minSeconds <= 0 && $interactionCount <= 0) { $speak .= 'Read through the content on this page. '; } $speak .= 'When '.(((int) $minSeconds > 0 && $interactionCount > 0) ? 'both are' : 'that is').' done, the Mark complete button unlocks and you can finish the module.'; @endphp {{-- Guidance: exactly what's needed to complete this module --}}To complete this module