@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
{{-- 筛选区域 --}}
{{-- 题目列表 --}}
@forelse($questionsData as $question) @empty @endforelse
题目编号 知识点 类型 题干 难度 操作
{{ $question['question_code'] ?? 'N/A' }}
{{ $question['kp_code'] ?? 'N/A' }}
@php $type = $question['type'] ?? 'CHOICE'; $typeLabel = $this->questionTypeOptions[$type] ?? $type; $typeClass = match($type) { 'CHOICE', 'MULTIPLE_CHOICE' => 'badge-info', 'FILL_IN_THE_BLANK' => 'badge-warning', 'CALCULATION', 'WORD_PROBLEM', 'PROOF' => 'badge-error', default => 'badge-ghost' }; @endphp
{{ $typeLabel }}
@php $difficulty = $question['difficulty'] ?? null; $label = match (true) { !$difficulty => 'N/A', (float)$difficulty <= 0.4 => '基础', (float)$difficulty <= 0.7 => '中等', default => '拔高', }; $colorClass = match (true) { !$difficulty => 'badge-ghost', (float)$difficulty <= 0.4 => 'badge-success', (float)$difficulty <= 0.7 => 'badge-warning', default => 'badge-error', }; @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) @endif