@if(!$this->importRecord()) @include('filament.partials.empty-state', [ 'title' => '未选择导入记录', 'description' => '请先从 Markdown 导入列表进入工作台。', 'action' => new \Illuminate\Support\HtmlString('返回导入列表'), ]) @elseif(!$this->filenameValid)
文件名解析失败
{{ $this->filenameWarning }}
请在导入列表中修改文件名并重新导入后再进入工作台。
@else {{-- 顶部高级指令中心 --}}
自动推断 批量推断
合并选定卷子 保存当前设置
{{-- 左侧:资产与资源 --}}
{{-- 导入背景卡 --}}

导入源信息

ID: #{{ $this->importId }}
原始文件
{{ $this->importRecord()?->file_name ?? '-' }}
当前状态
{{ $this->importRecord()?->status_label ?? '未知' }}
总候选题
{{ $this->importRecord()?->parsed_count ?? 0 }}
@if(!empty($this->filenameParsed))
系列:{{ $this->filenameParsed['series'] ?? '-' }} 年级:{{ $this->filenameParsed['grade'] ?? '-' }} 学期:{{ $this->filenameParsed['term'] ?? '-' }} 学科:{{ $this->filenameParsed['subject'] ?? '-' }} 名称:{{ $this->filenameParsed['name'] ?? '-' }}
@endif
{{-- 卷子切分列表 --}}
待核对卷子列表
全选当前 | 清空选择
@foreach($this->groupedPapers() as $group => $items)
{{ $group }}
@foreach($items as $paper) @php $meta = $paper['meta'] ?? []; $expected = $meta['expected_count'] ?? null; $candidateCount = $paper['candidates_count'] ?? 0; $isSelected = ((int)$this->selectedPaperId === (int)$paper['id']); $catalogTitles = $this->catalogTitlesForPaper($paper); @endphp
$isSelected, 'hover:bg-slate-50/80 hover:border-slate-100' => !$isSelected, ])>
@endforeach @endforeach
{{-- 内容预览 --}}
卷子内容预览 @if($this->selectedPaper()) {{ $this->selectedPaper()?->title }} @endif
@if($this->selectedPaper())
{!! \App\Services\MathFormulaProcessor::processFormulas($this->selectedPaper()?->raw_markdown ?? '') !!}
@else
点击左侧列表查看原始文本内容
@endif
{{-- 右侧:配置与控制 --}}
{{-- 1. 归属定义卡片 --}}
归属定义
@foreach($this->seriesOptions() as $id => $label) @endforeach
@foreach($this->gradeOptions() as $value => $label) @endforeach
@foreach($this->termOptions() as $value => $label) @endforeach
同步中...
!empty($this->form['textbook_id']), 'text-rose-500 underline decoration-dotted' => empty($this->form['textbook_id']), ])> @foreach($this->textbookOptions() as $id => $title) @endforeach
{{-- 2. 章节目录卡片 (关键:修复点击保存不生效的逻辑引导) --}}
关联目录章节
@forelse($this->catalogOptions() as $id => $label) @empty

请先指定教材以加载章节路径

@endforelse
@if(!empty($this->form['catalog_node_ids']))
已选择 {{ count($this->form['catalog_node_ids']) }} 个节点
@endif
{{-- 3. 补充元数据 (默认折叠,减少干扰) --}}
补充元数据
智能预检测系统
推断类型:{{ $this->form['source_type'] ?? '未识别类型' }}
推断章节:{{ $this->form['chapter'] ?? '未识别章节' }}
{{-- 批量操作区 (极致紧凑设计) --}}
批量高效工具柜
{{ count($this->selectedIds) }} 卷选中
@foreach($this->seriesOptions() as $id => $name) @endforeach @foreach($this->textbookOptions($this->batch['textbook_series_id'] ?? null) as $id => $label) @endforeach
@foreach($this->gradeOptions() as $value => $label) @endforeach @foreach($this->termOptions() as $value => $label) @endforeach
@forelse($this->catalogOptions($this->batch['textbook_id'] ?? null) as $id => $label) @empty
选择教材以加载目录
@endforelse
复制配置 执行覆盖
@endif