@extends('layouts.master') @section('title') {{ $statusFilter }} ONUs @endsection @section('css') @endsection @section('content')
There are no ONUs online currently
| Serial Number | Name | OLT | Board | Port | Signal | |
|---|---|---|---|---|---|---|
| @php $signalText = strtolower($onu['signal'] ?? ''); $status = strtolower($onu['status'] ?? ''); $color = 'text-muted'; $icon = 'ri-earth-line'; // Default icon if ($status === 'power fail') { $icon = 'ri-plug-2-fill'; $color = 'text-dark'; } elseif ($status === 'los') { $icon = 'ri-link-unlink-m'; // 🔌 Broken link icon for loss of signal $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 | {{ $onu['sn'] ?? '-' }} | {{ $onu['name'] ?? '-' }} | {{ $onu['olt_name'] ?? '-' }} | {{ $onu['board'] ?? '-' }} | {{ $onu['port'] ?? '-' }} | @php $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 {{ isset($onu['signal_1310']) ? "{$onu['signal_1310']}" : '-' }} |