{{-- 互動實驗:拖動滑桿改變條件,即時看到動畫與計算結果;完成任務即通過 --}} @php $cfg = $lesson->config ?? []; $simDef = $cfg['sim'] ?? null; $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
{{ __('互動實驗') }}
{{ __('調整條件') }}