@include('filament.partials.page-header', [ 'kicker' => '教材详情', 'title' => $this->record->official_title ?? '教材详情', 'subtitle' => '查看教材信息、目录结构与关联卷子', 'actions' => new \Illuminate\Support\HtmlString( ($this->record?->id ? '编辑教材' . '上传封面' : '' ) . '导入目录' ), ])
教材信息
@php $cover = $this->record->cover_path ?? null; $coverUrl = null; if ($cover) { $coverUrl = \Illuminate\Support\Str::startsWith($cover, ['http://', 'https://', '/']) ? $cover : \Illuminate\Support\Facades\Storage::disk('public')->url($cover); } @endphp @if($coverUrl) 封面 @else
暂无封面
@endif
{{ $this->record->official_title ?? '未命名教材' }}
系列:{{ $this->record->series_name ?? '未归类系列' }}
学段:{{ $this->record->stage ?? '未标注' }} 年级:{{ $this->record->grade ? $this->record->grade . '年级' : '未标注' }} 学期:{{ $this->record->semester == 1 ? '上学期' : ($this->record->semester == 2 ? '下学期' : '未标注') }}
ISBN:{{ $this->record->isbn ?? '未填写' }}
状态:{{ $this->record->status ?? '未知' }}
ID:{{ $this->record->id }}
绑定卷子
基于教材系列匹配的最近卷子
@if(empty($this->linkedPapers)) @include('filament.partials.empty-state', [ 'title' => '暂无关联卷子', 'description' => '当前教材系列尚未关联到源卷子。', ]) @else
目录未绑定卷子:{{ $this->unlinkedPaperCount }} 套
@foreach($this->linkedPapers as $paper)
{{ $paper['title'] }}
章节:{{ $paper['chapter'] ?? '未标注' }} 年级:{{ $paper['grade'] ?? '未标注' }} 学期:{{ $paper['term'] ?? '未标注' }} 来源:{{ $paper['source_type'] ?? '未知' }}
@endforeach
@endif
目录结构
教材章节目录树
管理目录
@if(empty($this->catalogTree)) @include('filament.partials.empty-state', [ 'title' => '暂无目录', 'description' => '请先导入或维护教材目录结构。', 'action' => new \Illuminate\Support\HtmlString('导入目录'), ]) @else @include('filament.partials.catalog-tree', ['nodes' => $this->catalogTree, 'coverage' => $this->catalogCoverage]) @endif
@include('filament.partials.loading-overlay')