{{-- 分類標籤 --}}
@foreach($tabMeta as $key => $meta)
@php
$items = collect($categories[$key] ?? [])
->sortByDesc(fn($c) => !empty($c['published']) ? \Carbon\Carbon::parse($c['published'])->timestamp : 0)
->values()->all();
@endphp
@if($key === 'all' || count($items) > 0)
@endif
@endforeach
{{-- Tab 內容 --}}
@foreach($tabMeta as $key => $meta)
@php
$items = collect($categories[$key] ?? [])
->sortByDesc(fn($c) => !empty($c['published']) ? \Carbon\Carbon::parse($c['published'])->timestamp : 0)
->values()->all();
$slug = Str::slug($key);
$totalPages = (int) ceil(count($items) / 10);
@endphp
@if($key === 'all' || count($items) > 0)
| CVE 編號 |
嚴重性 |
分數 |
產品 |
描述 |
發布日期 |
@foreach($items as $idx => $cve)
|
{{ $cve['id'] }}
|
{{ $sevLabels[$cve['severity'] ?? ''] ?? 'N/A' }}
|
@if($cve['score'])
{{ $cve['score'] }}
@else - @endif
|
@foreach($cve['tags'] ?? [] as $tag)
{{ $tag }}
@endforeach
|
{{ Str::limit($cve['description'], 75) }}
@if(!empty($cve['description_zh']))
{{ Str::limit($cve['description_zh'], 55) }}
@endif
|
{{ $cve['published'] ? \Carbon\Carbon::parse($cve['published'])->format('Y-m-d') : '-' }}
|
@endforeach
@if($totalPages > 1)
@else
@endif
@endif
@endforeach