@if($loading) @else

📝 试卷信息

{{ $recordData['paper_name'] ?? 'N/A' }}

{{ $recordData['paper_id'] ?? 'N/A' }}

{{ $recordData['total_questions'] ?? 0 }} 题

🤖 ChatGPT智能识别

@if($useChatGPT)

支持JPG、PNG格式图片,建议图片清晰、光线充足

@if(!empty($imageUrl))

图片预览

试卷图片
@endif @if(!empty($chatGPTResult))

✅ ChatGPT分析完成

已成功分析 {{ count($chatGPTResult['questions'] ?? []) }} 道题目

总体得分:{{ $chatGPTResult['score_obtained'] ?? 0 }} / {{ $chatGPTResult['total_score'] ?? 0 }}

整体掌握度:{{ number_format(($chatGPTResult['summary']['overall_mastery'] ?? 0) * 100, 1) }}%

@if(isset($chatGPTResult['questions']))

题目分析详情

@foreach($chatGPTResult['questions'] as $q)
第{{ $q['q'] }}题 {{ $q['is_correct'] ? '正确' : '错误' }}

学生答案:{{ $q['student_answer'] ?? '未识别到答案' }}

正确答案:{{ $q['correct_answer'] ?? 'N/A' }}

@if(isset($q['knowledge_points'][0]))

知识点:{{ $q['knowledge_points'][0]['name'] ?? $q['knowledge_points'][0]['id'] }}

掌握度:{{ number_format($q['knowledge_points'][0]['mastery'] ?? 0, 1) }}%

@endif
@endforeach
@endif @if(isset($chatGPTResult['summary']['suggested_study_path']))

📚 个性化学习建议

@foreach($chatGPTResult['summary']['suggested_study_path'] as $path)

• {{ $path }}

@endforeach
@endif @endif
@else

启用ChatGPT识别功能,直接从图片中识别学生答案并智能分析

@endif
@if(!empty($analysisData))

📊 学习统计概览

整体掌握度

{{ number_format(($analysisData['overall_mastery'] ?? 0) * 100, 1) }}%

知识点数量

{{ $analysisData['total_knowledge_points'] ?? 0 }}

薄弱知识点

{{ count($analysisData['weak_areas'] ?? []) }}

总答题数

{{ $recordData['total_questions'] ?? 0 }}

@if(isset($analysisData['knowledge_points']) && !empty($analysisData['knowledge_points']))

知识点掌握情况

@foreach($analysisData['knowledge_points'] as $kp)

{{ $kp['kp_code'] ?? 'Unknown' }}

{{ number_format(($kp['mastery_level'] ?? 0) * 100, 1) }}%

正确率: {{ number_format(($kp['accuracy_rate'] ?? 0) * 100, 1) }}% | 练习次数: {{ $kp['total_attempts'] ?? 0 }}

@endforeach
@endif
@endif @if(isset($analysisData['recommendations'])) @endif @endif