{{-- Row 1: Stats Overview --}} @if (in_array($state, ['ready', 'idle', 'comparing']))
{{-- Stat: Assigned Baseline --}}
Assigned Baseline
{{ $profileName ?? '—' }}
@if ($snapshotId) Snapshot #{{ $snapshotId }} @endif
{{-- Stat: Total Findings --}}
Total Findings
{{ $findingsCount ?? 0 }}
@if ($state === 'comparing')
Comparing…
@elseif (($findingsCount ?? 0) === 0 && $state === 'ready') All clear @endif
{{-- Stat: Last Compared --}}
Last Compared
{{ $lastComparedAt ?? 'Never' }}
@if ($this->getRunUrl()) View run @endif
@endif {{-- Critical drift banner --}} @if ($state === 'ready' && ($severityCounts['high'] ?? 0) > 0)
Critical Drift Detected
The current tenant state deviates from baseline {{ $profileName }}. {{ $severityCounts['high'] }} high-severity {{ Str::plural('finding', $severityCounts['high']) }} require immediate attention.
@endif {{-- State: No tenant / no assignment / no snapshot --}} @if (in_array($state, ['no_tenant', 'no_assignment', 'no_snapshot']))
@if ($state === 'no_tenant')
No Tenant Selected
@elseif ($state === 'no_assignment')
No Baseline Assigned
@elseif ($state === 'no_snapshot')
No Snapshot Available
@endif
{{ $message }}
@endif {{-- Severity breakdown + actions --}} @if ($state === 'ready' && ($findingsCount ?? 0) > 0) {{ $findingsCount }} {{ Str::plural('Finding', $findingsCount) }} The tenant configuration drifted from the baseline profile.
@if (($severityCounts['high'] ?? 0) > 0) {{ $severityCounts['high'] }} High @endif @if (($severityCounts['medium'] ?? 0) > 0) {{ $severityCounts['medium'] }} Medium @endif @if (($severityCounts['low'] ?? 0) > 0) {{ $severityCounts['low'] }} Low @endif
@if ($this->getFindingsUrl()) View all findings @endif @if ($this->getRunUrl()) Review last run @endif
@endif {{-- Ready: no drift --}} @if ($state === 'ready' && ($findingsCount ?? 0) === 0)
No Drift Detected
The tenant configuration matches the baseline profile. Everything looks good.
@if ($this->getRunUrl()) Review last run @endif
@endif {{-- Idle state --}} @if ($state === 'idle')
Ready to Compare
{{ $message }}
@endif