{{-- Bootstrap 5 --}} {{-- Bootstrap Icons --}} {{-- Google Font --}} {{-- Existing Dashboard CSS --}}
{{-- Header --}}

CISNR

Pole Connection Monitoring

Live Monitoring
@csrf
{{-- Intro --}}
Network Operations

Pole Connection Dashboard

Monitor pole health, connected CN devices, load contribution, power quality, and the selected data source from a clean operational view.

Total Registered Poles
{{ $stats['total'] }}
{{ $stats['online'] }} online · {{ $stats['offline'] }} offline · {{ $stats['connection_source'] }} using CN source
{{-- Statistics --}}
{{ $stats['total'] }}
Total Poles

All registered pole devices

{{ $stats['online'] }}
Online Poles

Pole or connected CN sending recent data

{{ $stats['offline'] }}
Offline Poles

No recent pole or CN data found

{{ $stats['connection_source'] }}
Connection Source

Cards showing connected CN sum data

{{-- Filters --}}
Filter Pole Records
{{-- Pole Cards --}}
@forelse($poles as $pole) @php $isOnline = (int) $pole->effective_online === 1; $sourceClass = $pole->data_source === 'pole' ? 'source-pole' : 'source-connection'; $sourceIcon = $pole->data_source === 'pole' ? 'bi-broadcast-pin' : 'bi-diagram-3-fill'; $sourceText = $pole->data_source === 'pole' ? 'Pole Own Data' : 'Connected CN Sum'; $pf = (float) ($pole->avg_powerfactor ?? 0); $sumCurrent = (float) ($pole->sum_current ?? 0); if ($sumCurrent <= 0) { $displayPf = '0.00'; } else { $displayPf = number_format($pf, 2); } @endphp

{{ $pole->global_device_id }}

Last Update: {{ $pole->effective_last_update ?? 'No Data' }}
{{ $sourceText }} Click to view CN devices
{{ $isOnline ? 'ONLINE' : 'OFFLINE' }}
Current
{{ number_format((float) $pole->sum_current, 2) }} A
Voltage
{{ number_format((float) $pole->avg_voltage, 2) }} V
Apparent Power
{{ number_format((float) $pole->total_kva, 2) }} kVA
Energy
{{ number_format((float) $pole->total_consumption, 2) }} kWh
Power Factor
{{ $displayPf }}
Neutral Current
{{ number_format((float) $pole->nc, 2) }} A
Neutral Loss
{{ number_format((float) $pole->nc_loss_kw, 3) }} kW
CN Online
{{ (int) $pole->online_connections }} / {{ (int) $pole->total_connections }}
{{-- Connected CN Devices --}}
Connected Devices {{ $pole->connected_devices->count() }} Devices
@forelse($pole->connected_devices as $device)
{{ (int) $device->is_online === 1 ? 'ONLINE' : 'OFFLINE' }}
{{ number_format((float) $device->sum_current, 2) }} A
{{ number_format((float) $device->avg_voltage, 2) }} V
{{ number_format((float) $device->total_kwh, 2) }} kWh
@empty
No connected CN device found for this pole.
@endforelse
@empty

No pole devices found

No pole device exists in meter_visuals table for this filter.

@endforelse
{{-- Bootstrap JS --}}