@include('filament.partials.page-header', [ 'kicker' => '卷子管理', 'title' => '卷子历史记录', 'subtitle' => '查看生成卷子、导出与编辑配置', 'actions' => new \Illuminate\Support\HtmlString( '新建卷子' . view('filament.partials.density-toggle')->render() ), ]) @php $total = \App\Models\Paper::count(); $draft = \App\Models\Paper::where('status', 'draft')->count(); $completed = \App\Models\Paper::where('status', 'completed')->count(); $graded = \App\Models\Paper::where('status', 'graded')->count(); @endphp
总卷数
{{ $total }}
草稿
{{ $draft }}
已完成
{{ $completed }}
已评分
{{ $graded }}
卷子列表
卷名、状态、题量与操作入口
支持批量查看
@forelse($this->exams()['data'] as $exam) @empty @endforelse
试卷名称 状态 难度 题目/总分 创建时间 操作
{{ $exam['paper_name'] }}
{{ $exam['id'] }}
{{ $this->getStatusLabel($exam['status']) }} {{ $exam['difficulty_category'] }}
{{ $exam['question_count'] }} 题
{{ $exam['total_score'] }} 分
{{ \Carbon\Carbon::parse($exam['created_at'])->format('Y-m-d H:i') }}
查看
@include('filament.partials.empty-state', [ 'title' => '暂无试卷记录', 'description' => '请先生成卷子以便管理。', 'action' => new \Illuminate\Support\HtmlString('去出卷'), ])
共 {{ $this->meta()['total'] }} 条记录
@if($editingExamId) @endif @include('filament.partials.loading-overlay')