@extends('layouts.master') @section('title') Attach ONUs @endsection @section('css') @endsection @section('content')

SmartOLT ONU Suggestions

@if (session('status')) @endif @if (session('error')) @endif
@csrf
MATCHED ONUs
@if(count($suggestions))
@foreach($suggestions as $index => $item) @endforeach
Serial ONU Name Signal Client Name Service ID
{{ $item['onu']['sn'] }} {{ $item['onu']['name'] }} @php $signalText = strtolower($item['onu']['signal'] ?? ''); $status = strtolower($item['onu']['status'] ?? ''); $color = 'text-muted'; if ($status === 'los') { $color = 'text-danger'; } elseif (str_contains($signalText, 'very good')) { $color = 'text-success'; } elseif (str_contains($signalText, 'warning')) { $color = 'text-warning'; } elseif (str_contains($signalText, 'critical')) { $color = 'text-danger'; } @endphp {{ $item['onu']['signal_1310'] ?? '-' }} {{ $item['client']->fullName() }} {{ $item['service']->id }}
@else
No matching ONUs found or all are already attached
@endif
@endsection @section('script') @endsection