<x-filament-panels::page>
    <div class="space-y-4">
        @if($loading)
            <x-exam-analysis.loading message="正在分析试卷数据..." />
        @else
            <!-- 页面头部 -->
            <x-exam-analysis.header :recordData="$recordData" title="📊 OCR试卷分析" />

            <!-- 快速统计 -->
            <x-exam-analysis.quick-stats :recordData="$recordData" />

            <!-- 学习分析概览 -->
            <x-exam-analysis.learning-analysis :analysisData="$analysisData" />

            <!-- 题目详情分析 -->
            <x-exam-analysis.question-details :questions="$recordData['questions'] ?? []" />

            <!-- 学习建议 -->
            @if(isset($analysisData['recommendations']))
                <x-exam-analysis.recommendations :recommendations="$analysisData['recommendations']" />
            @endif
        @endif
    </div>
</x-filament-panels::page>
