{{-- 互動式練習終端機(模擬環境)。$lesson->config 內含虛擬檔案系統與任務清單 --}} @php $cfg = $lesson->config ?? []; $tasks = collect($cfg['tasks'] ?? [])->map(fn ($t) => ['title' => $t['title'] ?? '', 'hint' => $t['hint'] ?? null])->values(); $alreadyDone = auth()->user()->progress()->where('lesson_id', $lesson->id)->whereNotNull('completed_at')->exists(); $clientCfg = collect($cfg)->except('solution')->all(); // 解答不送到瀏覽器 @endphp
student@manco-lab ── {{ __('模擬練習環境') }}