返回列表

试卷详情

查看和编辑试卷信息,管理试卷中的题目

@if(empty($paperDetail))
试卷不存在或已被删除
@else

{{ $paperDetail['paper_name'] ?? '未命名试卷' }}

{{ $this->getStatusLabel($paperDetail['status']) }} {{ $paperDetail['difficulty_category'] }}
题目数量
{{ $paperDetail['question_count'] }}
总分
{{ $paperDetail['total_score'] }}
创建时间
{{ \Carbon\Carbon::parse($paperDetail['created_at'])->format('Y-m-d') }}
{{ \Carbon\Carbon::parse($paperDetail['created_at'])->format('H:i') }}

试卷题目

{{ count($paperDetail['questions']) }} 题
@forelse($paperDetail['questions'] as $question)
第 {{ $question['question_number'] }} 题 {{ $question['question_type'] }} {{ $question['knowledge_point'] }} {{ $question['difficulty_label'] }} {{ $question['score'] }} 分 {{ $question['estimated_time'] }} 秒
题干:
@php $stemHtml = nl2br(\App\Services\MathFormulaProcessor::processFormulas($question['stem'] ?? '')); @endphp {!! $stemHtml !!}
@if($question['answer'])
答案:
{!! nl2br(e($question['answer'])) !!}
@endif @if($question['solution'])
解析:
{!! nl2br(e($question['solution'])) !!}
@endif
@if($question['question_code'])
题目编号:{{ $question['question_code'] }}
@endif
@empty

试卷中暂无题目

@endforelse
@if($showPreview && !empty($paperDetail)) @php $paperPreviewUrl = route('filament.admin.auth.intelligent-exam.pdf', [ 'paper_id' => $paperDetail['paper_id'] ?? ($paperId ?? ''), 'answer' => 'false', ]); $gradingPreviewUrl = route('filament.admin.auth.intelligent-exam.grading', [ 'paper_id' => $paperDetail['paper_id'] ?? ($paperId ?? ''), ]); @endphp

试卷预览 - {{ $paperDetail['paper_name'] }}

预览区默认展示试卷正文,底部自动附加判卷页,打印会连续输出两份

试卷新窗口预览 判卷新窗口预览
@if(!empty($paperPreviewUrl))
判卷页面(将随试卷一起打印,含答题方框与答案解析)
@else
未找到试卷 ID,无法加载智能出卷预览。
@endif
@endif @endif
@if($editingExamId) @endif @if($showAddQuestionModal) @endif