@php /** @var callable $getState */ @endphp
@php $raw = $getState(); $edges = $raw instanceof \Illuminate\Support\Collection ? $raw : collect($raw); @endphp @if ($edges->isEmpty())
No dependencies found
@else
@foreach ($edges->groupBy('relationship_type') as $type => $group)
{{ str_replace('_', ' ', $type) }}
    @foreach ($group as $edge) @php $isMissing = ($edge['target_type'] ?? null) === 'missing'; $name = $edge['metadata']['last_known_name'] ?? null; $targetId = $edge['target_id'] ?? null; $display = $name ?: ($targetId ? ("ID: ".substr($targetId,0,6)."…") : 'Unknown'); $missingTitle = 'Missing target'; if (is_string($name) && $name !== '') { $missingTitle .= ". Last known: {$name}"; } $rawRef = $edge['metadata']['raw_ref'] ?? null; if ($rawRef !== null) { $encodedRef = json_encode($rawRef); if (is_string($encodedRef) && $encodedRef !== '') { $missingTitle .= '. Ref: '.\Illuminate\Support\Str::limit($encodedRef, 200); } } @endphp
  • {{ $display }} @if ($isMissing) Missing @endif
  • @endforeach
@endforeach
@endif