{{-- brafa Systems — Property locks. Livewire backing: App\Http\Livewire\Dashboard\PropertyLocks. Bindings preserved: wire:submit.prevent="saveScienerDetails", wire:model username/password, wire:click goToLockDetails/unlockLock, $showDetailsForm, $locks, $numberOfLocks, $isUnlocking, $message, $error, $propertyName, $refreshComponent, showToast JS. --}}
@php $brafaLockModel = fn ($lockName, $featureValue = null) => \App\Support\LockModel::for($lockName, $featureValue) ?? ['img' => null, 'label' => (string) $lockName ?: 'N/A']; @endphp
@if ($showDetailsForm)

Sciener access

@error('username')

{{ $message }}

@enderror
@error('password')

{{ $message }}

@enderror
@else
{{ $propertyName }}
{{ $numberOfLocks }}
locks on this property
@if ($message)
{{ $message }}
@endif @if ($error)
{{ $error }}
@endif

{{ $propertyName }} lock list

@forelse ($locks as $lock) @php $battery = (int) ($lock['electricQuantity'] ?? 0); $batClass = $battery > 69 ? 'battery-chip--high' : ($battery > 35 ? 'battery-chip--mid' : 'battery-chip--low'); $model = $brafaLockModel($lock['lockName'] ?? '', $lock['featureValue'] ?? null); @endphp @empty @endforelse
Lock aliasModelBatteryConnectionAction
{{ $lock['lockAlias'] ?? 'N/A' }} @if ($model['img'])@endif {{ $model['label'] }} battery_std{{ $battery }}% @if ($lock['hasGateway'] == 1) Online @else Offline @endif
No locks found.
@endif
{{ $refreshComponent }}
@push('js') @endpush