Site directory

Sites connect organisations to cameras and hold shared location data such as addresses and map coordinates.

@if (auth()->user()?->canManageSites()) Add site @endif
@if (auth()->user()?->canManageSites()) @endif @foreach ($sites as $site) @php($status = $site->monitoringStatus($site->cameras)) @if (auth()->user()?->canManageSites()) @endif @endforeach
Site Organisation Address Status CamerasActions
{{ $site->name }}

{{ $site->what3words ?: 'No what3words set' }}

{{ $site->organisation?->name ?: 'Unassigned organisation' }}

{{ $site->address_line_1 ?: 'No address line 1' }}

{{ trim(($site->town ?: '').' '.($site->postcode ?: '')) ?: 'No town or postcode' }}

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