Back to Previous Page
pattern-lines @if(Str::startsWith($lock['lockName'], 'H31')) H31 Icon @elseif(Str::startsWith($lock['lockName'], 'LL9246')) H31 Icon @elseif(Str::startsWith($lock['lockName'], 'LL476')) H31 Icon @elseif(Str::startsWith($lock['lockName'], 'M302')) M302 Icon @elseif(Str::startsWith($lock['lockName'], 'S31')) S31 Icon @elseif(Str::startsWith($lock['lockName'], 'K3')) K3 Icon @elseif(Str::startsWith($lock['lockName'], 'K2')) K3 Icon @elseif(Str::startsWith($lock['lockName'], 'N30')) N30 Icon @elseif(Str::startsWith($lock['lockName'], 'LL80')) LL80 Icon @endif

{{ $lock['lockAlias'] ?? 'N/A' }}

Latest Unlock Records
@foreach(array_slice($unlockRecords['list'], 0, 7) as $record) @endforeach
Status Unlock Time Unlock Method Username PIN
@if($record['success'] == 1) @else @endif {{ date('d/m/y H:i:s', $record['lockDate'] / 1000) }} @switch($record['recordType']) @case(-4) qr_code QR Code @break @case(1) Unlock with APP @break @case(4) dialpad PIN @break @case(7) Card @break @case(8) Fingerprint @break @case(11) Locked @break @case(12) Unlock via network @break @case(31) sensor_door Open door sensor @break @case(30) sensor_door Closed door sensor @break @case(45) Locked @break @case(46) Button unlock @break @case(47) Locked manually with # @break @case(48) Unauthorised Access attempts Detected @break @case(55) Remote Unlock @break @case(67) Facial ID Unlock @break @default Unknown @endswitch {{ $record['username'] ?? 'N/A' }} {{ $record['keyboardPwd'] ?? 'N/A' }}
Lock Name

{{ $lock['lockAlias'] ?? 'N/A' }}

Battery

@php $batteryLevel = $lock['electricQuantity'] ?? 0; $batteryColor = 'red'; // Default color if ($batteryLevel > 35 && $batteryLevel <= 69) { $batteryColor = 'orange'; } elseif ($batteryLevel > 69) { $batteryColor = 'green'; } @endphp battery_std {{ $batteryLevel }}%

Connection

@if($lock['hasGateway'] == 1) wifi Online @else signal_wifi_off Offline @endif

Lock ID

{{ $lock['lockId'] ?? 'N/A' }}

Lock MAC

{{ $lock['lockMac'] ?? 'N/A' }}

Passage Mode

@if(isset($lock['passageMode'])) @if($lock['passageMode'] == 2) OFF @elseif($lock['passageMode'] == 1) ON @else Unknown @endif @else N/A @endif

Access Methods
@if(empty($passcodes['list'])) @else @foreach($passcodes['list'] as $passcode) @endforeach @endif
Passcode ID Passcode Passcode Name Start Date End Date Sender
No passcodes
{{ $passcode['keyboardPwdId'] ?? 'N/A' }} {{ $passcode['keyboardPwd'] ?? 'N/A' }} {{ $passcode['keyboardPwdName'] ?? 'N/A' }} {{ isset($passcode['startDate']) ? date('Y-m-d H:i:s', $passcode['startDate'] / 1000) : 'N/A' }} {{ isset($passcode['endDate']) ? date('Y-m-d H:i:s', $passcode['endDate'] / 1000) : 'N/A' }} {{ $passcode['senderUsername'] ?? 'N/A' }}
Card ID Card Name Issue Date
12345 John's Card 2023-10-10
eKey ID eKey Name Issue Date
67890 Alice's eKey 2023-10-11
@push('js') @endpush