@extends('layouts.app') @section('content')
作業系統:{{ $reportData['os_release']['PRETTY_NAME'] ?? $reportData['os'] ?? 'N/A' }}
核心版本: {{ $reportData['kernel_version'] ?? 'N/A' }}
時區: {{ $reportData['timezone'] ?? 'N/A' }}
IP 位址: {{ $reportData['ip'] ?? 'N/A' }}
CPU 型號: {{ $reportData['cpu_model'] ?? 'N/A' }}
CPU 數量: {{ $reportData['cpu_count'] ?? 'N/A' }}
記憶體: @if(isset($reportData['memory']) && isset($reportData['memory']['total_gb'])) 總容量:{{ $reportData['memory']['total_gb'] }} GB, 使用中:{{ $reportData['memory']['used_gb'] }} GB, 可用:{{ $reportData['memory']['free_gb'] }} GB @else N/A @endif
硬碟資訊(根目錄): @if($rootDisk) 檔案系統:{{ $rootDisk['filesystem'] }}, 總容量:{{ $rootDisk['size'] }}, 已使用:{{ $rootDisk['used'] }}, 可用:{{ $rootDisk['avail'] }} @else N/A @endif
Apache 版本: {{ $apacheVersion }}
PHP 版本: {{ $phpVersion }}
MySQL 版本: {{ $mysqlVersion }}
OpenSSL 版本: {{ $opensslVersion }}
OpenSSH 版本: {{ $opensshVersion }}
NTP 狀態: {{ $ntpStatus }}
校時伺服器: {{ $ntpServers }}
特權帳號: @if(isset($reportData['privileged_accounts']) && is_array($reportData['privileged_accounts'])) {{ implode(', ', $reportData['privileged_accounts']) }} @else N/A @endif
| 項目 | 資訊 |
|---|---|
| {{ $label }} | {{ $value }} |
掃毒軟體: {{ (isset($reportData['antivirus_installed']) && $reportData['antivirus_installed']) ? '已安裝' : '未安裝' }}
掃毒版本: {{ $reportData['antivirus_version'] ?? 'N/A' }}
掃毒結果: @if(isset($reportData['antivirus_result'])) {!! nl2br(e($reportData['antivirus_result'])) !!} @else N/A @endif
Logrotate (180天): {{ (isset($reportData['log_rotate_180days']) && $reportData['log_rotate_180days']) ? '已設定' : '未設定' }}
Apache Logrotate (180天): {{ (isset($reportData['apache_logrotate_180days']) && $reportData['apache_logrotate_180days']) ? '已設定' : '未設定' }}
螢幕保護程式: {{ (isset($reportData['screensaver_configured']) && $reportData['screensaver_configured']) ? '已設定' : '未設定' }}
@php $rawTimeout = $reportData['screensaver_timeout'] ?? ''; $humanTimeout = $rawTimeout; if(is_string($rawTimeout) && preg_match('/uint32\s+(\d+)/', $rawTimeout, $matches)) { $seconds = intval($matches[1]); $minutes = round($seconds / 60, 2); $humanTimeout = $seconds . " 秒 (約 " . $minutes . " 分鐘)"; } @endphp螢幕保護等待時間: {{ $humanTimeout }}
| 網址 | 憑證狀態 | 資料夾 |
|---|---|---|
| {{ $site['url'] ?? 'N/A' }} | {{ $site['certificate_status'] ?? 'N/A' }} | {{ $site['folder'] ?? 'N/A' }} |
子網站: {{ (isset($reportData['subsites']['count'])) ? '共 ' . $reportData['subsites']['count'] . ' 個' : '無' }}
@endif