GCB 政府組態基準檢測報告

{{ $report->title }} @if ($report->profile) ・受檢主機:{{ $report->profile->name }} @endif
主機:{{ $report->hostname }} ・標準:{{ $report->type === 'ubuntu' ? 'TWGCB-01-014 Ubuntu 22.04' : 'TWGCB-04-007 Apache 2.4' }} ・檢測時間:{{ $report->scan_time->format('Y-m-d H:i') }} ・產出時間:{{ now()->format('Y-m-d H:i') }}
@php $s = $filteredSummary; $rate = $s['compliance_rate'] ?? 0; $rateColor = $rate >= 80 ? '#198754' : ($rate >= 60 ? '#fd7e14' : '#dc3545'); @endphp

檢測摘要

{{ $rate }}%
合規率
{{ $s['total'] ?? 0 }}
檢測項目
{{ $s['pass'] ?? 0 }}
通過
{{ $s['fail'] ?? 0 }}
不通過
{{ $s['error'] ?? 0 }}
錯誤
{{ $s['excluded'] ?? 0 }}
排除

檢測結果明細

@foreach ($filteredResults as $r) @endforeach
狀態 TWGCB-ID 類別 檢測項目 預期值
@if (($r['status'] ?? '') === 'pass') PASS @elseif (($r['status'] ?? '') === 'fail') FAIL @else {{ strtoupper($r['status'] ?? 'N/A') }} @endif {{ $r['id'] ?? '' }} {{ $r['category'] ?? '' }} {{ $r['name'] ?? '' }} @if (($r['status'] ?? '') === 'fail' && !empty($r['remediation']))
修復建議:{{ $r['remediation'] }}
@endif
{{ $r['expected'] ?? '-' }}
@if (!empty($excludedItems))

排除項目明細

以下 {{ count($excludedItems) }} 項已依據檢測案例設定排除,不列入合規率計算。

@foreach ($excludedItems as $e) @endforeach
TWGCB-ID 類別 檢測項目 排除原因 核准人
{{ $e['id'] ?? '' }} {{ $e['category'] ?? '' }} {{ $e['name'] ?? '' }} {{ $e['reason'] ?? '' }} {{ $e['approved_by'] ?? '' }}
@endif