@if ($flash)
$flashOk,
'bg-offline/10' => ! $flashOk,
])>
$flashOk, 'text-offline' => ! $flashOk]) />
{{ $flash }}
@endif
{{-- main --}}
{{-- identity + name edit --}}
{{ $device->isOnline() ? __('devices.online') : __('devices.offline') }}
@if ($device->status !== 'active')
{{ __('devices.status_'.$device->status) }}
@endif
@error('name')
{{ $message }}
@enderror
{{ $device->vendor ?? '—' }}
{{ $device->model ?? '—' }}
{{ $device->protocol ?? '—' }}
{{ $device->room?->name ?? '—' }}
{{ $device->last_seen_at?->diffForHumans() ?? '—' }}
{{ \Illuminate\Support\Str::limit($device->uuid, 13, '…') }}
{{-- capabilities / entities --}}
@if ($device->entities->isEmpty())
{{ __('devices.no_capabilities') }}
@else
@foreach ($device->entities as $entity)
{{ $entity->name ?? $entity->key }}
{{ $entity->type }}
@if (in_array($entity->type, ['switch', 'light']))
@endif
@endforeach
@endif
{{-- rail: actions + settings --}}
{{ __('devices.actions_demo_hint') }}
{{ __('devices.active') }}
{{ __('devices.active_hint') }}