{{-- brafa Systems — Google TV fleet dashboard (all properties). Livewire backing: App\Http\Livewire\SuperAdmin\TvFleetDashboard. Auto-refreshes every 15s to track online/offline. --}}
@if ($successMessage)
{{ $successMessage }}
@endif

TV fleet

Every registered room TV across all properties. Auto-refreshes every 15s.

Superadmin
{{-- Summary --}}
Devices
{{ $total }}
Online
{{ $online }}
Offline
{{ $offline }}
@if ($inbox->isNotEmpty())

Guest messages

{{ $inbox->sum('unread') }} unread · last 48h
@foreach ($inbox as $t)
{{ $t['device']->unit_name ?: $t['device']->device_identifier }} @if ($t['guest']) · {{ $t['guest'] }} @endif · {{ $t['device']->property_id }} @if ($t['unread'] > 0) {{ $t['unread'] }} new @endif
@if ($t['unread'] > 0) @endif
@foreach ($t['thread'] as $m)
{{ $m['direction'] === 'in' ? 'Guest' : 'Reception' }} · {{ optional($m['at'])->diffForHumans() }}
{{ $m['body'] }}
@endforeach
@if ($replyDeviceId === $t['device']->device_identifier)
@error('replyBody')

{{ $message }}

@enderror @endif
@endforeach
@endif
@forelse ($devices as $device) @php $isOnline = $device->last_seen_at && $device->last_seen_at->gte($onlineSince); @endphp @empty @endforelse
Status Room / device Property Guest Version Last seen Actions
@if (! $device->is_active) Disabled @elseif ($isOnline) Online @else Offline @endif
{{ $device->unit_name ?: ($device->name ?: '—') }}
{{ $device->device_identifier }}
{{ optional($device->property)->PropertyName ?: $device->property_id }} {{ $guests[$device->property_id . '|' . $device->unit_name] ?? '—' }}
{{ $device->app_version ? 'v' . $device->app_version : '—' }}
@if ($device->android_version)
Android {{ $device->android_version }}
@endif
{{ $device->last_seen_at ? $device->last_seen_at->diffForHumans() : 'never' }}
No devices match.
{{ $devices->links() }}