@php // Access properties to trigger lazy loading $stats = $this->stats; $points = $this->paginatedPoints['data']; $pagination = $this->paginatedPoints; // Explicitly call the getter to ensure selectedPoint is loaded $selectedPointData = $this->selectedPoint; $selectedPoint = $selectedPointData; $selectedSkills = isset($selectedPoint) ? collect($selectedPoint['skills'] ?? []) : collect(); // Get current phase filter $currentPhase = $this->currentPhase; @endphp
@foreach($stats as $stat)

{{ $stat['label'] }}

{{ $stat['value'] }}

{{ $stat['hint'] }}

@endforeach
@svg('heroicon-m-magnifying-glass', 'h-4 w-4')
@svg('heroicon-m-academic-cap', 'h-4 w-4')
@svg('heroicon-m-tag', 'h-4 w-4')

知识点列表

{{ $pagination['total'] }} 个结果

@forelse($points as $point) @empty

暂无数据

@endforelse
第 {{ $pagination['page'] }} / {{ $pagination['total_pages'] }} 页
@if($selectedPoint)

Knowledge Node

{{ $selectedPoint['cn_name'] }} ({{ $selectedPoint['kp_code'] }})

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

重要度

{{ number_format((float) ($selectedPoint['importance'] ?? 0), 1) }}

教研权重

技能

{{ $selectedSkills->count() }}

拆解单元

知识路径

{{ $selectedPoint['group_path'] ?? '尚未设置路径。' }}

描述 / 知识意图

{!! nl2br(e($selectedPoint['description'] ?? '暂无描述,建议补充课堂目标、典型错因等内容。')) !!}

先修关系

@if(!empty($selectedPoint['parent_details']))
    @foreach($selectedPoint['parent_details'] as $parent)
  1. {{ $parent['cn_name'] }}

    触发该节点之前需掌握

  2. @endforeach
@elseif(!empty($selectedPoint['parents']))
    @foreach($selectedPoint['parents'] as $parent)
  1. {{ $parent }}

    触发该节点之前需掌握

  2. @endforeach
@else

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

@endif

技能拆解

{{ $selectedSkills->count() }} 项
@if($selectedSkills->isEmpty())

该知识点尚未配置技能,建议补充规则步骤、策略和应用场景,便于题库筛选。

@else
@foreach($selectedSkills as $skill)

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

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

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

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

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

例题提示:

{{ $skill['examples'][0]['prompt'] ?? '' }}
@endif
@endforeach
@endif
@else
请选择左侧任意知识点查看详情。
@endif