{{-- 模式选择 --}}
{{-- 上传模式 --}} @if($mode === 'upload') {{-- 选择老师和学生 --}}

选择老师和学生

{{-- 选择老师 --}}
{{-- 选择学生 --}}
{{-- 图片上传和OCR识别组件 --}} @if(!empty($teacherId) && !empty($studentId)) @endif @endif {{-- 选择试卷评分模式 --}} @if($mode === 'select_paper')

选择已有试卷评分

{{-- 选择老师和学生 --}}
{{-- 选择老师 --}}
{{-- 选择学生 --}}
{{-- 选择试卷 --}} @if(!empty($studentId))
@endif {{-- 评分面板组件 --}} @if(!empty($selectedPaperId)) @endif
@endif {{-- 最近上传记录 --}}

最近试卷记录

@if(count($this->recentRecords) > 0)
@foreach($this->recentRecords as $record) @endforeach
试卷名称 学生 题目数 状态 创建时间
@php $url = ''; if (in_array($record['type'], ['graded_paper', 'generated'])) { $url = '/admin/exam-analysis?paperId=' . ($record['paper_id'] ?? '') . '&studentId=' . $record['student_id']; } elseif ($record['type'] === 'ocr_upload') { $url = '/admin/exam-analysis?recordId=' . ($record['record_id'] ?? '') . '&studentId=' . $record['student_id']; } @endphp @if($url) {{ $record['paper_name'] }} @else {{ $record['paper_name'] }} @endif {{ $record['student_name'] }} {{ $record['total_questions'] }} {{ $record['status_text'] ?? $record['status'] }} {{ $record['created_at'] }}
@else

暂无上传记录

@endif