@php $stats = $this->stats; $extent = $this->extent; @endphp
{{ __('Fiber map') }} @if ($flash)
{{ $flash }}
@endif
@if ($showForm)
{{ $editing ? __('Edit node') : __('New node') }}
@endif {{-- Plan view. Not a street map: the nodes are placed proportionally within their own bounding box, which shows how they sit relative to one another without pulling map tiles from anywhere. --}}
{{ __('Plan view') }}
{{ __(':m of :n nodes have coordinates', ['m' => $stats['mapped'], 'n' => $stats['nodes']]) }}
@if ($extent)
@foreach ($this->nodes as $n) @continue (! $n->hasPosition()) @php $pos = $this->position($n); $tone = $n->status === 'fault' ? 'danger' : ($n->status === 'planned' ? 'secondary' : ($n->utilisation() >= 90 ? 'warning' : 'success')); @endphp
{{ $n->name }} {{ $n->ports_used }}/{{ $n->capacity }}
@endforeach
@else
{{ __('Add latitude and longitude to a node and it will appear here.') }}
@endif
{{ __('Nodes') }}
@forelse ($this->nodes as $n) @empty @endforelse
{{ __('Name') }} {{ __('Type') }} {{ __('Fed from') }} {{ __('Ports') }} {{ __('Where') }} {{ __('Status') }} {{ __('Actions') }}
{{ $n->name }} {{ __(\App\Models\FiberNode::TYPES[$n->type] ?? $n->type) }} {{ $n->parent?->name ?: '—' }}
{{ $n->ports_used }}/{{ $n->capacity }}
{{ $n->address ?: ($n->hasPosition() ? $n->latitude.', '.$n->longitude : '—') }} @php $tone = match ($n->status) { 'live' => 'success', 'fault' => 'danger', default => 'secondary', }; @endphp {{ ucfirst($n->status) }}
{{ __('Nothing on the plant yet. Add your head-end first, then the splitters it feeds.') }}