@include('partials.camera-filters', ['action' => route('dashboard')])

Total cameras

{{ $cameras->count() }}

Sites in view

{{ $siteCount }}

Online

{{ $onlineCount }}

Offline

{{ $offlineCount }}

Coverage by site

Grouped operational view across organisations, sites, and individual cameras.

View full list
@foreach ($groupedSites as $group)

{{ $group['site']?->name ?: $group['site']?->site_name ?: 'Unassigned site' }}

$group['status'] === 'online', 'bg-amber-100 text-amber-700' => $group['status'] === 'degraded', 'bg-red-100 text-red-700' => $group['status'] === 'offline', 'bg-slate-200 text-slate-700' => $group['status'] === 'unknown', ])> {{ ucfirst($group['status']) }}

{{ $group['organisation']?->name ?: 'Unassigned organisation' }}

{{ $group['camera_count'] }} cameras · {{ $group['online_count'] }} online

@if ($group['site']?->town || $group['site']?->postcode)

{{ trim(($group['site']?->town ?: '').' '.($group['site']?->postcode ?: '')) }}

@endif @if ($group['site']?->what3words)

{{ strtolower($group['site']->what3words) }}

@endif
@foreach ($group['cameras'] as $camera) @php($cameraStatus = $camera->status ?: ($camera->is_online ? 'online' : 'unknown')) @endforeach
Camera Ownership Connectivity Status
{{ $camera->name }}

{{ $camera->location_name }}

{{ $camera->latestHikvisionEvent?->event_type ? $camera->latestHikvisionEvent->event_type.' · '.($camera->latestHikvisionEvent->event_state ?: 'Unknown') : 'No events yet' }}

{{ ucfirst($camera->ownership_type ?: 'council') }}

{{ $camera->managed_by_council ? 'Council managed' : 'Externally managed' }}

{{ str($camera->connectivity_type ?: 'unknown')->replace('_', ' ')->title() }}

{{ $camera->connectivity_provider ?: 'No provider set' }}

$cameraStatus === 'online', 'bg-red-100 text-red-700' => $cameraStatus === 'offline', 'bg-slate-200 text-slate-700' => $cameraStatus === 'unknown', ]) data-status-pill> {{ ucfirst($cameraStatus) }}

Last seen {{ optional($camera->last_seen_at)->diffForHumans() ?? 'never' }}

@endforeach
@push('scripts') @endpush