@php $findingsLastRun = $this->findingsLastRun(); $findingsLastRunStatusSpec = $findingsLastRun ? \App\Support\Badges\BadgeRenderer::spec(\App\Support\Badges\BadgeDomain::OperationRunStatus, (string) $findingsLastRun->status) : null; $findingsLastRunOutcomeSpec = $findingsLastRun && (string) $findingsLastRun->status === 'completed' ? \App\Support\Badges\BadgeRenderer::spec(\App\Support\Badges\BadgeDomain::OperationRunOutcome, (string) $findingsLastRun->outcome) : null; @endphp

Operator warning

Runbooks can modify or assess customer data across tenants. Always run preflight first, and ensure you have the correct scope selected.

Rebuild Findings Lifecycle Backfills legacy findings lifecycle fields, SLA due dates, and consolidates drift duplicate findings. {{ $this->findingsScopeLabel() }}
@if ($findingsLastRun)
Last run {{ $findingsLastRun->created_at?->diffForHumans() ?? '—' }} @if ($findingsLastRunStatusSpec) {{ $findingsLastRunStatusSpec->label }} @endif @if ($findingsLastRunOutcomeSpec) {{ $findingsLastRunOutcomeSpec->label }} @endif @if ($findingsLastRun->initiator_name) by {{ $findingsLastRun->initiator_name }} @endif
@endif @if (is_array($this->findingsPreflight))

Affected

{{ number_format((int) ($this->findingsPreflight['affected_count'] ?? 0)) }}

Total scanned

{{ number_format((int) ($this->findingsPreflight['total_count'] ?? 0)) }}

Estimated tenants

{{ is_numeric($this->findingsPreflight['estimated_tenants'] ?? null) ? number_format((int) $this->findingsPreflight['estimated_tenants']) : '—' }}

@if ((int) ($this->findingsPreflight['affected_count'] ?? 0) <= 0)
Nothing to do for the current scope.
@endif @else
Run Preflight to see how many findings would change for the selected scope.
@endif