{{-- 页面标题区域 --}} {{-- 页面标题区域 --}}

专题测试

选择知识点和技能,生成题目进行练习,自动记录答题结果并更新学生掌握度

{{-- 选择器区域 --}}
{{-- 加载状态 --}} @if ($isLoading)

正在生成题目,请稍候...

@else {{-- 练习题目模块 --}}

专题测试练习

{{-- 知识点和技能选择区域 --}}
{{-- 知识点选择 --}}

选择知识点

{{-- 技能选择 --}}

选择技能(可多选)

@foreach ($availableSkills as $skill) @endforeach
{{-- 题目数量和生成按钮 --}}
当前批次ID: {{ $currentBatchId ?: '未生成' }}
{{-- 题目列表 --}} @if (!empty($exerciseQuestions))

题目列表 (请标记对错)

@foreach ($exerciseQuestions as $index => $question)
{{ $index + 1 }} {{ $question['type'] ?? '数学题' }} | 难度: {{ $question['difficulty'] ?? 3 }}/5
@math($question['content'] ?? '')
正确答案: @math($question['answer'] ?? 'N/A')
@endforeach
{{-- 批量提交按钮 --}}
@else {{-- 批量模式空状态 --}}

批量练习模式

选择知识点和技能,设置题目数量,点击"生成题目组"开始批量答题练习

@endif
{{-- 答题历史模块 --}} @if (!empty($studentId))

答题历史

{{-- 每页显示数量选择 --}}
共 {{ $historyTotal }} 条记录
{{-- 历史记录列表 --}} @if (!empty($exerciseHistory))
@foreach ($exerciseHistory as $history)
{{ $loop->iteration + ($historyCurrentPage - 1) * $historyPerPage }} 批次: {{ $history['batch_id'] ?? 'N/A' }} | {{ $history['kp_code'] ?? 'N/A' }}
@math(Str::limit($history['question_content'] ?? 'N/A', 100))
学生答案:
{!! $history['student_answer'] ?? '未填写' !!}
正确答案:
{!! $history['correct_answer'] ?? 'N/A' !!}
@if ($history['is_correct']) 正确 @else 错误 @endif
{{ date('Y-m-d H:i', strtotime($history['created_at'])) }}
@endforeach
{{-- 分页导航 --}} @if ($historyTotalPages > 1)
显示第 {{ ($historyCurrentPage - 1) * $historyPerPage + 1 }} - {{ min($historyCurrentPage * $historyPerPage, $historyTotal) }} 条, 共 {{ $historyTotal }} 条记录
@foreach ($this->getHistoryPages() as $page) @endforeach
@endif @else

暂无答题历史

选择学生后,答题历史将显示在这里

@endif
@endif @endif