@extends('task.layout') @section('content')
| 観点 | @php $levels = explode(',', $rubric->level); @endphp @foreach ($levels as $level) @php $cleanlevel = trim($level, '"'); @endphp @if ((int)$cleanlevel === 0){{ $cleanlevel }} | @else{{ $cleanlevel }} | @endif @endforeach
|---|---|---|
| @php // 該当の親観点に子ルーブリックはあるか? $hasChildren = $childRubrics->has($criterion->id); // 子ルーブリックのどれか1つでも criteria が1件以上あるか? $hasChecklist = $hasChildren && $childRubrics[$criterion->id]->contains(function ($r) { return $r->criteria && $r->criteria->isNotEmpty(); }); @endphp @if ($hasChecklist) @else {{ $criterion->item }} @endif | @foreach ($criterion->performance as $p){{ $p->descriptor }} | @endforeach