@extends('layouts.app') @section('title', 'GCB 政府組態基準') @push('head') @endpush @section('content')
{{-- 標題 --}}

GCB 政府組態基準

NICS 官方網站
@include('partials.alert') {{-- ===== 下載區 ===== --}}
Ubuntu 22.04 GCB

TWGCB-01-014 v1.2 ・ {{ count($ubuntuItems) }} 項檢測

下載檢測工具 (ZIP)
含腳本 + 檢測定義檔
Apache 2.4 GCB

TWGCB-04-007 v1.2 ・ {{ count($apacheItems) }} 項檢測

下載檢測工具 (ZIP)
含腳本 + 檢測定義檔
上傳檢測報告

上傳至檢測案例檢視結果

@csrf
{{-- ===== 受檢主機 ===== --}}
受檢主機
@if ($profiles->count() > 0)
@foreach ($profiles as $pf) @endforeach
主機名稱 GCB 類型 排除項目 說明 / IP 建立者 操作
{{ $pf->name }} {{ $pf->type === 'ubuntu' ? 'Ubuntu' : 'Apache' }} {{ $pf->exclusions->count() }} 項排除 {{ Str::limit($pf->description, 40) }} {{ $pf->creator->name ?? '-' }} 排除設定
@csrf @method('DELETE')
@else
尚無受檢主機。新增主機後可設定 GCB 排除項目,再執行檢測腳本並上傳報表。
@endif
{{-- 新增主機 Modal --}} {{-- ===== 已上傳報表 ===== --}} @if ($reports->count() > 0)
檢測報告
@foreach ($reports as $rpt) @php $s = $rpt->profile ? $rpt->filteredSummary() : ($rpt->summary ?? []); $rate = $s['compliance_rate'] ?? 0; $barColor = $rate >= 80 ? '#198754' : ($rate >= 60 ? '#fd7e14' : '#dc3545'); @endphp @endforeach
報告類型 受檢主機 主機名稱 檢測時間 合規率 通過 不通過 操作
{{ $rpt->type === 'ubuntu' ? 'Ubuntu' : 'Apache' }}
@csrf @method('PUT')
{{ $rpt->hostname }} {{ $rpt->scan_time?->format('Y-m-d H:i') }}
{{ $rate }}%
{{ $s['pass'] ?? 0 }} {{ $s['fail'] ?? 0 }} 檢視
@csrf @method('DELETE')
@endif {{-- ===== GCB 項目列表 ===== --}}
{{-- 搜尋 --}}
{{-- Ubuntu --}}
@include('gcb._item_table', ['items' => $ubuntuItems, 'prefix' => 'ubuntu'])
{{-- Apache --}}
@include('gcb._item_table', ['items' => $apacheItems, 'prefix' => 'apache'])
{{-- ===== GCB Item Detail Modal ===== --}} @endsection @push('scripts') @endpush