@php $_pdfLogo = null; foreach (['png','svg','jpg','jpeg'] as $_ext) { $_path = public_path('logo.'.$_ext); if (file_exists($_path)) { $_mime = $_ext === 'svg' ? 'image/svg+xml' : 'image/'.$_ext; $_pdfLogo = 'data:'.$_mime.';base64,'.base64_encode(file_get_contents($_path)); break; } } @endphp
| 目標網址 | {{ $scan->target_url }} |
| 合規標準 | WCAG 2.x {{ $scan->standardLabel() }} |
| 掃描頁數 | {{ $scan->pages_scanned ?? 1 }} 頁(上限 {{ $scan->max_pages }}) |
| 掃描工具 | Pa11y + {{ $scan->runnerLabel() }} (runner: {{ $scan->runner ?? 'htmlcs' }}) |
| 所屬專案 | {{ $scan->project?->name ?? '—' }} |
| 掃描時間 | {{ $scan->started_at?->format('Y-m-d H:i') ?? '—' }} |
| 完成時間 | {{ $scan->finished_at?->format('Y-m-d H:i') ?? '—' }} |
| 問題總計 | {{ $summary['total'] ?? 0 }} |
|
{{ $bt['error'] ?? 0 }}
Error
錯誤
|
{{ $bt['warning'] ?? 0 }}
Warning
警告
|
{{ $bt['notice'] ?? 0 }}
Notice
注意
|
{{ $summary['total'] ?? 0 }}
Total
總計
|
| WCAG 原則 | 錯誤 | 警告 | 注意 | 合計 |
|---|---|---|---|---|
| {{ $principle }} | {{ count(array_filter($items, fn($i)=>$i['type']==='error')) }} | {{ count(array_filter($items, fn($i)=>$i['type']==='warning')) }} | {{ count(array_filter($items, fn($i)=>$i['type']==='notice')) }} | {{ count($items) }} |
| 頁面網址 | 錯誤 | 警告 | 注意 | 合計 |
|---|---|---|---|---|
| {{ $pageUrl }} | {{ count(array_filter($pageItems, fn($i)=>$i['type']==='error')) }} | {{ count(array_filter($pageItems, fn($i)=>$i['type']==='warning')) }} | {{ count(array_filter($pageItems, fn($i)=>$i['type']==='notice')) }} | {{ count($pageItems) }} |