Unifi Access

@if($unifiConfigured) Configured @if($unifiSelectedDoorGroupName) · default door group: {{ $unifiSelectedDoorGroupName }} @endif @else Not configured @endif
@if($unifiPanelOpen)
@error('unifiHost') {{ $message }} @enderror
@error('unifiPort') {{ $message }} @enderror
@error('unifiToken') {{ $message }} @enderror
@if($unifiConfigured) @endif @if($unifiMessage) {{ $unifiMessage }} @endif
@if(!empty($unifiDoorGroups))
@error('unifiSelectedDoorGroupId') {{ $message }} @enderror
@if(!empty($unifiDoorsInGroup))
Doors included in this group:
@foreach($unifiDoorsInGroup as $door) {{ $door['name'] ?? ($door['full_name'] ?? ($door['id'] ?? 'door')) }} @endforeach
@endif @endif @if($unifiConfigured && !empty($unifiUnits))
Per-Unit Door Groups
Guest codes for a unit are sent to its door group. Units without a mapping use the property default{{ $unifiSelectedDoorGroupName ? ' (' . $unifiSelectedDoorGroupName . ')' : '' }}. @php $unifiGroupIds = collect($unifiDoorGroups) ->pluck('id') ->map(fn ($v) => (string) $v) ->all(); @endphp
@foreach($unifiUnits as $i => $unit) @endforeach
Unit Room Door Group
{{ $unit['UnitName'] }} {{ $unit['RoomName'] }}
@endif
@endif