@php $fieldWrapperView = $getFieldWrapperView(); $run = $run ?? null; $run = is_array($run) ? $run : null; $runUrl = $runUrl ?? null; $runUrl = is_string($runUrl) && $runUrl !== '' ? $runUrl : null; $verificationReport = $verification_report ?? null; $verificationReport = is_array($verificationReport) ? $verificationReport : null; $status = $run['status'] ?? null; $status = is_string($status) ? $status : null; $outcome = $run['outcome'] ?? null; $outcome = is_string($outcome) ? $outcome : null; $targetScope = $run['target_scope'] ?? []; $targetScope = is_array($targetScope) ? $targetScope : []; $failures = $run['failures'] ?? []; $failures = is_array($failures) ? $failures : []; $completedAt = $run['completed_at'] ?? null; $completedAt = is_string($completedAt) && $completedAt !== '' ? $completedAt : null; $completedAtLabel = null; if ($completedAt !== null) { try { $completedAtLabel = \Carbon\CarbonImmutable::parse($completedAt)->format('Y-m-d H:i'); } catch (\Throwable) { $completedAtLabel = $completedAt; } } $checks = is_array($verificationReport['checks'] ?? null) ? $verificationReport['checks'] : []; $summaryOverall = is_array($verificationReport['summary'] ?? null) ? ($verificationReport['summary']['overall'] ?? null) : null; $summaryOverall = is_string($summaryOverall) ? $summaryOverall : null; $sortWeight = static function (array $check): int { $status = is_array($check) ? ($check['status'] ?? null) : null; $blocking = is_array($check) ? ($check['blocking'] ?? false) : false; if ($status === 'fail' && $blocking === true) { return 0; } if ($status === 'fail') { return 1; } if ($status === 'warn') { return 2; } if ($status === 'running') { return 3; } if ($status === 'skip') { return 4; } if ($status === 'pass') { return 5; } return 6; }; $hasReport = $verificationReport !== null; @endphp
@if ($run === null)
No verification run has been started yet.
@elseif ($status !== 'completed')
@if (! $hasReport) No report yet. Use “Refresh results” to update stored status. @else Partial results available. Use “Refresh results” to update stored status. @endif
@else @php $sortedChecks = collect($checks) ->filter(fn ($check) => is_array($check)) ->sortBy(fn (array $check) => $sortWeight($check)) ->values() ->all(); $issueChecks = collect($sortedChecks) ->filter(fn (array $check) => in_array((string) ($check['status'] ?? ''), ['fail', 'warn', 'running'], true)) ->values() ->all(); $otherChecks = collect($sortedChecks) ->filter(fn (array $check) => ! in_array((string) ($check['status'] ?? ''), ['fail', 'warn', 'running'], true)) ->values() ->all(); @endphp @if ($summaryOverall !== null) @php $overallSpec = \App\Support\Badges\BadgeRenderer::spec(\App\Support\Badges\BadgeDomain::VerificationReportOverall, $summaryOverall); @endphp
Overall
{{ $overallSpec->label }}
@endif @if ($sortedChecks === []) @if ($outcome === 'succeeded')
All verification checks passed.
@elseif ($failures === [])
Report unavailable. The run completed, but no failure details were recorded.
@else
Findings
    @foreach ($failures as $failure) @php $reasonCode = is_array($failure) ? ($failure['reason_code'] ?? null) : null; $message = is_array($failure) ? ($failure['message'] ?? null) : null; $reasonCode = is_string($reasonCode) && $reasonCode !== '' ? $reasonCode : null; $message = is_string($message) && $message !== '' ? $message : null; @endphp @if ($reasonCode !== null || $message !== null)
  • @if ($reasonCode !== null)
    {{ $reasonCode }}
    @endif @if ($message !== null)
    {{ $message }}
    @endif
  • @endif @endforeach
@endif @else @if ($issueChecks !== [])
Issues
    @foreach ($issueChecks as $check) @php $title = (string) ($check['title'] ?? 'Check'); $status = (string) ($check['status'] ?? 'fail'); $message = (string) ($check['message'] ?? '—'); $reasonCode = (string) ($check['reason_code'] ?? ''); $nextSteps = is_array($check['next_steps'] ?? null) ? $check['next_steps'] : []; $statusSpec = \App\Support\Badges\BadgeRenderer::spec(\App\Support\Badges\BadgeDomain::VerificationCheckStatus, $status); @endphp
  • {{ $title }}
    @if ($reasonCode !== '')
    {{ $reasonCode }}
    @endif
    {{ $statusSpec->label }}
    {{ $message }}
    @if ($nextSteps !== [])
    @foreach ($nextSteps as $step) @php $label = is_array($step) ? ($step['label'] ?? null) : null; $url = is_array($step) ? ($step['url'] ?? null) : null; $label = is_string($label) && $label !== '' ? $label : null; $url = is_string($url) && $url !== '' ? $url : null; @endphp @if ($label !== null && $url !== null) {{ $label }} @endif @endforeach
    @endif
  • @endforeach
@else
All verification checks passed.
@endif @if ($otherChecks !== [])
View all checks
@foreach ($otherChecks as $check) @php $title = (string) ($check['title'] ?? 'Check'); $status = (string) ($check['status'] ?? 'skip'); $message = (string) ($check['message'] ?? '—'); $statusSpec = \App\Support\Badges\BadgeRenderer::spec(\App\Support\Badges\BadgeDomain::VerificationCheckStatus, $status); @endphp
{{ $title }}
{{ $statusSpec->label }}
{{ $message }}
@endforeach
@endif @endif @endif @if ($targetScope !== [])
Target scope
@php $entraTenantId = $targetScope['entra_tenant_id'] ?? null; $entraTenantName = $targetScope['entra_tenant_name'] ?? null; $entraTenantId = is_string($entraTenantId) && $entraTenantId !== '' ? $entraTenantId : null; $entraTenantName = is_string($entraTenantName) && $entraTenantName !== '' ? $entraTenantName : null; @endphp @if ($entraTenantName !== null)
Entra tenant: {{ $entraTenantName }}
@endif @if ($entraTenantId !== null)
Entra tenant ID: {{ $entraTenantId }}
@endif
@endif @if ($runUrl !== null) @endif