@extends('layouts.app') @section('title', 'Gestión OLT') @section('content')
Gestión OLT
{{ $slots->flatten()->count() }} puertos en {{ $slots->count() }} slots
Agregar Slot / Puertos
{{-- Leyenda --}}
Libre Ocupado — clic para ver conexión
{{-- Stats --}}
@foreach($stats as $s)
S{{ sprintf('%02d', $s->slot) }}
{{ $s->usados }}/{{ $s->total }}
@endforeach
{{-- Slots --}} @foreach($slots as $slot => $puertos)
SLOT {{ sprintf('%02d', $slot) }} {{ $puertos->count() }} puertos {{ $puertos->where('estado','libre')->count() }} libres @if($puertos->where('estado','ocupado')->count()) {{ $puertos->where('estado','ocupado')->count() }} ocupados @endif
@if($puertos->where('estado','ocupado')->count()) Ver conexiones @endif
@csrf @method('DELETE')
@foreach($puertos as $p) @endforeach
@endforeach @if($slots->isEmpty())
Sin puertos OLT. Agrega el primer slot.
@endif @include('partials.port-tooltip') @endsection