@php $questionsData = $this->questions; $metaData = $this->meta; $statisticsData = $this->statistics; @endphp
题目总数
{{ $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_name'] ?? $question['kp_code'] ?? 'N/A' }}
@if(!empty($question['kp_code']))
{{ $question['kp_code'] }}
@endif
@if(!empty($question['created_at'])) {{ \Carbon\Carbon::parse($question['created_at'])->toDateTimeString() }} @else - @endif @math($question['stem'] ?? '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($showDetailModal)

{{ $editing['question_code'] ?? '题目详情' }}

{{ $editing['kp_name'] ?? ($editing['kp_code'] ?? '') }} @if(!empty($editing['kp_code'])) ({{ $editing['kp_code'] }}) @endif

创建时间:{{ $editing['created_at'] ?? '-' }}
更新时间:{{ $editing['updated_at'] ?? '-' }}
@endif