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

学生仪表板

全面展示学生的学习分析数据,包括掌握度、技能熟练度、提效分析和学习路径

{{-- 选择器区域 --}}
{{-- 选择老师 --}}
{{-- 选择学生 --}}
{{-- 刷新按钮 --}}
@php $mindmapAvg = collect($mindmapMasteryData ?? []) ->pluck('mastery_level') ->filter(fn ($v) => is_numeric($v)) ->avg() ?? 0; $mindmapError = collect($mindmapMasteryData ?? []) ->map(fn ($item) => is_array($item) ? max(0, 1 - ($item['accuracy_rate'] ?? 0)) : 0) ->avg() ?? 0; @endphp
{{-- 内联知识点详情 --}}
{{-- 错误提示 --}} @if ($errorMessage)

加载错误

{{ $errorMessage }}

@endif {{-- 加载状态 --}} @if ($isLoading)

正在加载数据,请稍候...

@else {{-- 加载完成后显示内容 --}} {{-- 快速概览卡片 --}} {{-- 快速概览卡片 --}}
{{-- 掌握度概览 --}} @if (isset($dashboardData['mastery']['overview']))

平均掌握度

{{ number_format($dashboardData['mastery']['overview']['average_mastery_level'] * 100, 1) }}%

已掌握: {{ $dashboardData['mastery']['overview']['mastered_knowledge_points'] }} 薄弱: {{ $dashboardData['mastery']['overview']['weak_knowledge_points'] }}
@endif {{-- 技能熟练度概览 --}} @if (isset($dashboardData['skill']['summary']) && !empty($dashboardData['skill']['summary']['total_skills']))

技能熟练度

{{ number_format($dashboardData['skill']['summary']['average_proficiency_level'] * 100, 1) }}%

技能: {{ $dashboardData['skill']['summary']['total_skills'] }} 练习: {{ $dashboardData['skill']['summary']['total_questions_attempted'] }}
@endif {{-- 学习提效概览 --}} @if (isset($dashboardData['prediction']['quick']))

预期提效

+{{ $dashboardData['prediction']['quick']['quick_prediction']['improvement_potential'] ?? 0 }}

学习: {{ $dashboardData['prediction']['quick']['quick_prediction']['estimated_study_hours'] ?? 0 }}小时 置信度: {{ number_format(($dashboardData['prediction']['quick']['quick_prediction']['confidence_level'] ?? 0) * 100, 0) }}%
@endif {{-- 学习路径 --}} @if (isset($dashboardData['learning_path']['analytics']))

活跃路径

{{ $dashboardData['learning_path']['analytics']['active_paths'] ?? 0 }}

已完成: {{ $dashboardData['learning_path']['analytics']['completed_paths'] ?? 0 }} 效率: {{ number_format(($dashboardData['learning_path']['analytics']['average_efficiency_score'] ?? 0) * 100, 0) }}%
@endif
{{-- 主要内容区域:统一流式网格 --}}
{{-- 掌握度分析 --}}

知识点掌握度

@if (isset($dashboardData['mastery']['overview']['total_knowledge_points']))
总知识点数 {{ $dashboardData['mastery']['overview']['total_knowledge_points'] }}
{{ $dashboardData['mastery']['overview']['mastered_knowledge_points'] }}
已掌握 (≥85%)
{{ $dashboardData['mastery']['overview']['good_knowledge_points'] }}
良好 (70-85%)
{{ $dashboardData['mastery']['overview']['weak_knowledge_points'] }}
薄弱 (<50%)
@if (!empty($dashboardData['mastery']['overview']['weak_knowledge_points_list']))

薄弱知识点

@foreach (array_slice($dashboardData['mastery']['overview']['weak_knowledge_points_list'], 0, 5) as $weak)
{{ $weak['kp_code'] ?? $weak['knowledge_point_code'] ?? 'N/A' }}
{{ number_format(($weak['mastery_level'] ?? $weak['mastery'] ?? 0) * 100, 1) }}% 去做题
@endforeach
@endif
@else
暂无掌握度数据
@endif
{{-- 技能熟练度 --}} @php $skillData = $dashboardData['skill']['proficiency']['data'] ?? []; if (!is_array($skillData)) { $skillData = []; } @endphp @if (!empty($skillData))

技能熟练度

@foreach (array_slice($skillData, 0, 5) as $skill)
{{ $skill['skill_name'] ?? 'N/A' }}
{{ number_format(($skill['proficiency_level'] ?? 0) * 100, 1) }}%
{{ $skill['total_questions_attempted'] ?? 0 }}题
@endforeach
@endif {{-- 学习提效 --}}

学习提效

{{-- 快速预测结果 --}} @if (isset($dashboardData['prediction']['quick']) && !empty($dashboardData['prediction']['quick']['quick_prediction'])) @php $quickPrediction = $dashboardData['prediction']['quick']['quick_prediction']; $round05 = function($v) { return number_format(round(((float) $v) * 2) / 2, 1); }; @endphp {{-- 主要预测信息卡片 --}}

学习提效分析

基于当前学习数据的分析

+{{ $round05($quickPrediction['improvement_potential'] ?? 0) }}
预期提效
{{ $round05($quickPrediction['current_score'] ?? 0) }}
当前分值
{{ $round05($quickPrediction['predicted_score'] ?? 0) }}
预测分值
{{ $quickPrediction['estimated_study_hours'] ?? 0 }}h
建议学习时间
置信度:
{{ number_format(($quickPrediction['confidence_level'] ?? 0) * 100, 0) }}%
{{-- 优先学习主题 --}} @if (!empty($quickPrediction['priority_topics']))
优先学习主题 (前5个)
@foreach (array_slice($quickPrediction['priority_topics'], 0, 5) as $topic)
{{ substr($topic['kp_code'] ?? '', -2) }}
{{ $topic['kp_code'] ?? 'N/A' }}
掌握度: {{ number_format(($topic['mastery_level'] ?? 0) * 100, 1) }}%
优先级
{{ number_format($topic['priority_score'] ?? 0, 2) }}
@endforeach
@endif {{-- 学习建议 --}} @if (!empty($quickPrediction['recommended_actions']))
个性化学习建议
@foreach (array_slice($quickPrediction['recommended_actions'], 0, 3) as $recommendation)
{{ $recommendation['kp_code'] ?? 'N/A' }} {{ number_format(($recommendation['current_mastery'] ?? 0) * 100, 0) }}% → {{ number_format(($recommendation['target_mastery'] ?? 0) * 100, 0) }}%
@foreach (($recommendation['actions'] ?? []) as $action) {{ $action }} @endforeach
@endforeach
@endif @if (!empty($studentId)) @endif {{-- 历史预测记录 --}} @elseif (!empty($dashboardData['prediction']['list']['predictions'])) @php $historicalPredictions = $dashboardData['prediction']['list']['predictions']; @endphp
历史预测记录
@foreach (array_slice($historicalPredictions, 0, 3) as $prediction)
{{ $prediction['target_entity'] ?? 'N/A' }}
{{ $prediction['prediction_date'] ?? date('m-d') }}
当前: {{ $prediction['current_score'] ?? 0 }} → {{ $prediction['predicted_score'] ?? 0 }}
+{{ number_format(($prediction['predicted_score'] ?? 0) - ($prediction['current_score'] ?? 0), 1) }}
@endforeach
@else

暂无预测数据

等待分析数据刷新后再查看

@endif
@endif @push('styles') @endpush @push('scripts') @endpush {{-- 通知脚本 --}}