@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'; 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' }} | @if($passcode['startDate'] === 0 && $passcode['endDate'] === 0) Permanent @else {{ isset($passcode['startDate']) ? date('Y-m-d H:i:s', $passcode['startDate'] / 1000) : 'N/A' }} @endif | @if($passcode['endDate'] === 0) Permanent @else {{ isset($passcode['endDate']) ? date('Y-m-d H:i:s', $passcode['endDate'] / 1000) : 'N/A' }} @endif | {{ $passcode['senderUsername'] ?? 'N/A' }} |
| Card ID | Card Name | Issue Date | Start Date | End Date | Sender |
|---|---|---|---|---|---|
| No cards | |||||
| {{ $card['cardId'] ?? 'N/A' }} | {{ $card['cardName'] ?? 'N/A' }} | {{ isset($card['createDate']) ? date('Y-m-d H:i:s', $card['createDate'] / 1000) : 'N/A' }} | @if($card['startDate'] === 0 && $card['endDate'] === 0) Permanent @else {{ isset($card['startDate']) ? date('Y-m-d H:i:s', $card['startDate'] / 1000) : 'N/A' }} @endif | @if($card['endDate'] === 0) Permanent @else {{ isset($card['endDate']) ? date('Y-m-d H:i:s', $card['endDate'] / 1000) : 'N/A' }} @endif | {{ $card['senderUsername'] ?? 'N/A' }} |
| eKey ID | eKey Name | Issue Date | Start Date | End Date | Username | Active | Remote Unlock | Sender | Status | Remarks |
|---|---|---|---|---|---|---|---|---|---|---|
| No eKeys | ||||||||||
| {{ $ekey['keyId'] ?? 'N/A' }} | {{ $ekey['keyName'] ?? 'N/A' }} | {{ isset($ekey['date']) ? date('Y-m-d H:i:s', $ekey['date'] / 1000) : 'N/A' }} | @if($ekey['startDate'] === 0 && $ekey['endDate'] === 0) Permanent @else {{ isset($ekey['startDate']) ? date('Y-m-d H:i:s', $ekey['startDate'] / 1000) : 'N/A' }} @endif | @if($ekey['endDate'] === 0) Permanent @else {{ isset($ekey['endDate']) ? date('Y-m-d H:i:s', $ekey['endDate'] / 1000) : 'N/A' }} @endif | {{ $ekey['username'] ?? 'N/A' }} | @if($ekey['keyRight'] == 1) check_circle @else cancel @endif | @if($ekey['remoteEnable'] == 1) Yes @else No @endif | {{ $ekey['senderUsername'] ?? 'N/A' }} | @switch($ekey['keyStatus']) @case('110401') Normal @break @case('110402') Pending @break @case('110405') Freezed @break @case('110408') Deleted @break @case('110410') Reseted @break @default Unknown @endswitch | {{ $ekey['remarks'] ?? 'N/A' }} |