@php $report = isset($getState) ? $getState() : ($report ?? null); $report = is_array($report) ? $report : null; $summary = $report['summary'] ?? null; $summary = is_array($summary) ? $summary : null; $counts = $summary['counts'] ?? null; $counts = is_array($counts) ? $counts : []; $checks = $report['checks'] ?? null; $checks = is_array($checks) ? $checks : []; @endphp
@if ($report === null || $summary === null)
Verification report unavailable
This run doesn’t have a report yet. If it’s still running, refresh in a moment. If it already completed, start verification again.
@else @php $overallSpec = \App\Support\Badges\BadgeRenderer::spec( \App\Support\Badges\BadgeDomain::VerificationReportOverall, $summary['overall'] ?? null, ); @endphp
{{ $overallSpec->label }} {{ (int) ($counts['total'] ?? 0) }} total {{ (int) ($counts['pass'] ?? 0) }} pass {{ (int) ($counts['fail'] ?? 0) }} fail {{ (int) ($counts['warn'] ?? 0) }} warn {{ (int) ($counts['skip'] ?? 0) }} skip {{ (int) ($counts['running'] ?? 0) }} running
@if ($checks === [])
No checks found in this report. Start verification again to generate a fresh report.
@else
@foreach ($checks as $check) @php $check = is_array($check) ? $check : []; $title = $check['title'] ?? 'Check'; $title = is_string($title) && trim($title) !== '' ? $title : 'Check'; $message = $check['message'] ?? null; $message = is_string($message) && trim($message) !== '' ? $message : null; $statusSpec = \App\Support\Badges\BadgeRenderer::spec( \App\Support\Badges\BadgeDomain::VerificationCheckStatus, $check['status'] ?? null, ); $severitySpec = \App\Support\Badges\BadgeRenderer::spec( \App\Support\Badges\BadgeDomain::VerificationCheckSeverity, $check['severity'] ?? null, ); $evidence = $check['evidence'] ?? []; $evidence = is_array($evidence) ? $evidence : []; $nextSteps = $check['next_steps'] ?? []; $nextSteps = is_array($nextSteps) ? $nextSteps : []; @endphp
{{ $title }}
@if ($message)
{{ $message }}
@endif
{{ $severitySpec->label }} {{ $statusSpec->label }}
@if ($evidence !== [] || $nextSteps !== [])
@if ($evidence !== [])
Evidence
    @foreach ($evidence as $pointer) @php $pointer = is_array($pointer) ? $pointer : []; $kind = $pointer['kind'] ?? null; $value = $pointer['value'] ?? null; @endphp @if (is_string($kind) && $kind !== '' && (is_string($value) || is_int($value)))
  • {{ $kind }}: {{ is_int($value) ? $value : $value }}
  • @endif @endforeach
@endif @if ($nextSteps !== [])
Next steps
    @foreach ($nextSteps as $step) @php $step = is_array($step) ? $step : []; $label = $step['label'] ?? null; $url = $step['url'] ?? null; $isExternal = is_string($url) && (str_starts_with($url, 'http://') || str_starts_with($url, 'https://')); @endphp @if (is_string($label) && $label !== '' && is_string($url) && $url !== '')
  • {{ $label }}
  • @endif @endforeach
@endif
@endif
@endforeach
@endif @endif