@elseif(Str::startsWith($lock['lockName'], 'LL9246'))
@elseif(Str::startsWith($lock['lockName'], 'LL476'))
@elseif(Str::startsWith($lock['lockName'], 'M302'))
@elseif(Str::startsWith($lock['lockName'], 'S31'))
@elseif(Str::startsWith($lock['lockName'], 'K3'))
@elseif(Str::startsWith($lock['lockName'], 'K2'))
@elseif(Str::startsWith($lock['lockName'], 'N30'))
@elseif(Str::startsWith($lock['lockName'], 'LL80'))
@endif
| 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['lockAlias'] ?? 'N/A' }}
@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 }}%
@if($lock['hasGateway'] == 1) wifi Online @else signal_wifi_off Offline @endif
{{ $lock['lockId'] ?? 'N/A' }}
{{ $lock['lockMac'] ?? 'N/A' }}
@if(isset($lock['passageMode'])) @if($lock['passageMode'] == 2) OFF @elseif($lock['passageMode'] == 1) ON @else Unknown @endif @else N/A @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 |