@php $skills = collect($point['skills'] ?? []); $parents = collect($point['parents'] ?? []); $metrics = [ [ 'label' => '重要度', 'value' => number_format((float) ($point['importance'] ?? 0), 1), 'subtitle' => '教研侧设定的掌握权重', ], [ 'label' => '技能数量', 'value' => $skills->count(), 'subtitle' => '拆解后的可练单元', ], [ 'label' => '上游节点', 'value' => $parents->count(), 'subtitle' => '可追溯的先修知识', ], ]; @endphp

Knowledge Node

{{ $point['cn_name'] ?? '未命名知识点' }} ({{ $point['kp_code'] ?? '未知编号' }})

{{ $point['category'] ?? '未分类' }} {{ $point['phase'] ?? '未知学段' }} @if($point['grade']) · {{ $point['grade'] }} 年级 @endif
@foreach($metrics as $metric)

{{ $metric['label'] }}

{{ $metric['value'] }}

{{ $metric['subtitle'] }}

@endforeach

知识路径

{{ $point['group_path'] ?? '尚未设置。' }}

描述 / 知识意图

{!! nl2br(e($point['description'] ?? '暂无描述,建议补充该知识点的课堂目标或常见错因。')) !!}

先修关系

@if($parents->isEmpty())

无父节点,可能是一级知识点。

@else
    @foreach($parents as $parent)
  1. {{ $parent }}

    触发该节点之前需掌握

  2. @endforeach
@endif
@if($skills->isEmpty())
该知识点尚未配置技能,建议补充规则步骤、策略和应用场景,便于题库筛选。
@else
@foreach($skills as $skill)

{{ $skill['skill_name'] ?? '未命名技能' }}

{{ $skill['skill_type'] ?? '类型未知' }}

难度 {{ $skill['difficulty'] ?? '-' }}

{{ $skill['description'] ?? '暂无描述' }}

@if(!empty($skill['examples']))

例题提示:

{{ $skill['examples'][0]['prompt'] ?? '' }}
@endif
@endforeach
@endif