@if ($flash)
$flashOk, 'bg-offline/10' => ! $flashOk, ])> $flashOk, 'text-offline' => ! $flashOk]) /> {{ $flash }}
@endif @if ($mqttCredential)
{{ __('devices.mqtt_credential_title') }}

{{ __('devices.mqtt_credential_hint') }}

{{ $mqttCredential['host'] }} {{ $mqttCredential['username'] }} {{ $mqttCredential['password'] }} {{ $mqttCredential['port'] }}
@endif
{{-- main --}}
{{-- identity + name edit --}}
{{ $device->isOnline() ? __('devices.online') : __('devices.offline') }} @if ($device->status !== 'active') {{ __('devices.status_'.$device->status) }} @endif @if ($device->isCloud()) {{ __('addons.cloud') }} @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) @php $isInput = \Illuminate\Support\Str::startsWith($entity->key, 'input:'); $idx = explode(':', $entity->key)[1] ?? '0'; $role = data_get($device->config, "input_roles.$idx"); @endphp
{{ $entity->name ?? $entity->key }} {{ $entity->type }}
@if (in_array($entity->type, ['switch', 'light'])) @endif
@if ($isInput) {{-- Promote a Shelly input to a window/door contact (invert-aware) --}}
{{ __('devices.role_label') }} @if ($role) @endif
@endif
@endforeach
@endif
{{-- rail: actions + settings --}}

{{ __('devices.actions_demo_hint') }}

{{ __('devices.active') }}
{{ __('devices.active_hint') }}
{{-- Advanced: per-device MQTT credential (default is the shared account) --}} @if ($device->protocol === 'mqtt' && data_get($device->config, 'mqtt_prefix'))
{{ __('devices.mqtt_own_cred') }}
{{ __('devices.mqtt_own_cred_hint') }}
@endif