@php $questionsData = $this->questions; $metaData = $this->meta; $statisticsData = $this->statistics; @endphp {{-- 后台生成状态栏 - 仅在生成中显示 --}} @if($isGenerating && $currentTaskId)

正在后台生成题目...

任务 ID: {{ $currentTaskId }} | AI生成完成后将自动刷新页面

@endif
题目总数
{{ $statisticsData['total'] ?? 0 }}
基础难度 (≤0.4)
@php $basicCount = 0; foreach ($statisticsData['by_difficulty'] ?? [] as $key => $value) { if ((float)$key <= 0.4) { $basicCount += $value; } } echo $basicCount; @endphp
中等难度 (0.4-0.7)
@php $mediumCount = 0; foreach ($statisticsData['by_difficulty'] ?? [] as $key => $value) { if ((float)$key > 0.4 && (float)$key <= 0.7) { $mediumCount += $value; } } echo $mediumCount; @endphp
拔高难度 (>0.7)
@php $advancedCount = 0; foreach ($statisticsData['by_difficulty'] ?? [] as $key => $value) { if ((float)$key > 0.7) { $advancedCount += $value; } } echo $advancedCount; @endphp
{{-- 调试信息 --}} @if(app()->environment('local'))
统计数据调试:
{{ json_encode($statisticsData, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) }}
@endif
@forelse($questionsData as $question) @empty @endforelse
题目编号 知识点 题干 难度 操作
{{ $question['question_code'] ?? 'N/A' }} {{ $question['kp_code'] ?? 'N/A' }} @php $difficulty = $question['difficulty'] ?? null; $label = match (true) { !$difficulty => 'N/A', (float)$difficulty <= 0.4 => '基础', (float)$difficulty <= 0.7 => '中等', default => '拔高', }; @endphp {{ $label }} @if(app()->environment('local')) ({{ $difficulty }}) @endif
暂无数据
@if(!empty($metaData) && ($metaData['total'] ?? 0) > 0)
共 {{ $metaData['total'] ?? 0 }} 条记录
@foreach($this->getPages() as $page) @endforeach
@endif
@if($showGenerateModal)

生成题目

@if(!empty($this->skillsOptions))
@foreach($this->skillsOptions as $skill) @endforeach
@else
请先选择知识点以加载技能列表
@endif
@endif
@push('scripts') @endpush @push('styles') @endpush