@push('styles') @endpush

卷子历史记录

查看所有历史生成的试卷,支持导出、复制和删除操作

/select> button color="gray" wire:click="reset" > 重置 /button>
@if(count($this->exams()['data']) > 0) @foreach($this->exams()['data'] as $exam)

{{ $exam['paper_name'] }}

{{ getStatusLabel($exam['status']) }}
题目数量: {{ $exam['question_count'] }} 题
总分: {{ $exam['total_score'] }} 分
难度: {{ $exam['difficulty_category'] }}
创建时间:{{ \Carbon\Carbon::parse($exam['created_at'])->format('Y-m-d H:i') }}
button color="primary" size="sm" wire:click.stop="exportPdf('{{ $exam['paper_id'] }}')" > 导出 /button> button color="gray" size="sm" wire:click.stop="duplicateExam({{ json_encode($exam) }})" > 复制 /button>
@endforeach
{{ $this->meta()['total'] }} 条记录,共 {{ $this->meta()['total_pages'] }} 页
@if($currentPage > 1) button color="gray" size="sm" wire:click="$set('currentPage', {{ $currentPage - 1 }})" > 上一页 /button> @endif 第 {{ $currentPage }} 页 @if($currentPage < $this->meta()['total_pages']) button color="gray" size="sm" wire:click="$set('currentPage', {{ $currentPage + 1 }})" > 下一页 /button> @endif
@else
暂无试卷记录
请前往"智能出卷"页面生成您的第一份试卷
button color="primary" wire:click="$dispatch('navigateToIntelligentExam')" > 去出卷 /button>
@endif
@if($selectedExamId && !empty($selectedExamDetail))

试卷详情

button color="gray" size="sm" wire:click="$set('selectedExamId', null)" > /button>
试卷名称
{{ $selectedExamDetail['paper']['paper_name'] ?? '' }}
题目数量
{{ $selectedExamDetail['paper']['question_count'] ?? 0 }} 题
总分
{{ $selectedExamDetail['paper']['total_score'] ?? 0 }} 分
难度分类
{{ $selectedExamDetail['paper']['difficulty_category'] ?? '' }}
创建时间
{{ \Carbon\Carbon::parse($selectedExamDetail['paper']['created_at'])->format('Y-m-d H:i') }}
题目列表
@foreach($selectedExamDetail['questions'] ?? [] as $idx => $question)
{{ $idx + 1 }}. {{ Str::limit($question['stem'] ?? '', 50) }}
{{ $question['knowledge_point'] ?? '' }} | 难度: {{ $question['difficulty'] ?? 0 }}
@endforeach
button color="primary" class="w-full" wire:click="exportPdf('{{ $selectedExamId }}')" > 导出PDF /button> button color="gray" class="w-full" wire:click="duplicateExam({{ json_encode($selectedExamDetail['paper']) }})" > 复制试卷配置 /button> button color="danger" class="w-full" wire:click="deleteExam('{{ $selectedExamId }}')" > 删除试卷 /button>
@else
点击左侧试卷查看详情
@endif