@extends('layouts.app') @section('title', $device->name.' — neighbours') @section('content')

{{ $device->name }}

{{ $links->count() }} directly connected device(s) — one hop out.

Device All links

Neighbours

@if ($links->isEmpty()) @include('components.empty-state', [ 'icon' => '🔗', 'title' => 'No links recorded for this device', 'message' => 'Record its connections on the Topology page to see what it carries.', ]) @else @foreach ($links as $link) @php $isSource = $link->source_device_id === $device->id; $other = $isSource ? $link->target : $link->source; @endphp @endforeach
DirectionNeighbourThis portTheir port MediumCapacityDistanceStatus
{{ $isSource ? 'out to' : 'in from' }} {{ $other?->name ?: '—' }}
{{ $other?->role }}
{{ $isSource ? ($link->source_port ?: '—') : ($link->target_port ?: '—') }} {{ $isSource ? ($link->target_port ?: '—') : ($link->source_port ?: '—') }} {{ title_case_words($link->medium) }} {{ $link->capacity_mbps ? number_format($link->capacity_mbps) : '—' }} {{ $link->distance_km ? $link->distance_km.' km' : '—' }} {{ title_case_words($link->status) }}
@endif
@endsection