Assigned tenants: {{ (int) ($reference['assignedTenantCount'] ?? 0) }}. Visible tenants: {{ $visibleTenantCount }}. @if (filled($reference['referenceSnapshotCapturedAt'] ?? null)) Reference captured {{ \Illuminate\Support\Carbon::parse($reference['referenceSnapshotCapturedAt'])->diffForHumans() }}. @endif
Auto mode resolves from the visible tenant set. Manual mode stays local to this route and never becomes stored preference truth.
@if (filled($reference['referenceReasonCode'] ?? null))Reference reason: {{ \Illuminate\Support\Str::headline(str_replace('.', ' ', (string) $reference['referenceReasonCode'])) }}
@endifRequested: {{ $this->presentationModeLabel($requestedMode) }}. Resolved: {{ $modeLabel }}.
@if ($activeFilterCount === 0) No narrowing filters are active. Showing every visible subject and tenant in the current baseline scope. @else {{ $activeFilterCount }} active {{ \Illuminate\Support\Str::plural('filter', $activeFilterCount) }} are already shaping the rendered matrix. @endif
@if ($activeFilterSummary !== [])The controls below differ from the current route state. Apply them when you are ready to redraw the matrix.
{{ $visibleTenantCount }} visible {{ \Illuminate\Support\Str::plural('tenant', $visibleTenantCount) }}. {{ $resolvedMode === 'dense' ? 'State-first dense scan stays active.' : 'Compact single-tenant review stays active.' }}
@if ($policyTypeOptions !== [])Manual refresh shows a blocking state only while you explicitly redraw. Background polling remains a passive hint.
@if ($autoRefreshActive)State, freshness, and trust stay available on demand without pushing the matrix down the page.
{{ $emptyState['body'] ?? 'Adjust the current inputs and try again.' }}
@if ($activeFilterCount > 0)Compact mode stays visible-set only. Subject drilldowns and run links still preserve the matrix context.
| Baseline subject | @foreach ($tenantSummaries as $tenantSummary) @php $freshnessSpec = $freshnessBadge($tenantSummary['freshnessState'] ?? null); @endphp
{{ $tenantSummary['tenantName'] }}
|
@endforeach
|---|---|
|
{{ $subject['displayName'] ?? $subject['subjectKey'] ?? 'Subject' }}
{{ $subject['policyType'] ?? 'Unknown policy type' }}
@if (filled($subject['baselineExternalId'] ?? null))
Reference ID: {{ $subject['baselineExternalId'] }}
@endif
|
@foreach ($cells as $cell)
@php
$cellStateSpec = $stateBadge($cell['state'] ?? null);
$cellFreshnessSpec = $freshnessBadge($cell['freshnessState'] ?? null);
$cellTrustSpec = $trustBadge($cell['trustLevel'] ?? null);
$cellSeveritySpec = filled($cell['severity'] ?? null) ? $severityBadge($cell['severity']) : null;
$tenantId = (int) ($cell['tenantId'] ?? 0);
$subjectKey = $subject['subjectKey'] ?? ($cell['subjectKey'] ?? null);
$primaryUrl = filled($cell['findingId'] ?? null)
? $this->findingUrl($tenantId, (int) $cell['findingId'], $subjectKey)
: $this->tenantCompareUrl($tenantId, $subjectKey);
$runUrl = filled($cell['compareRunId'] ?? null)
? $this->runUrl((int) $cell['compareRunId'], $tenantId, $subjectKey)
: null;
$attentionClasses = match ((string) ($cell['attentionLevel'] ?? 'review')) {
'needs_attention' => 'bg-danger-100 text-danger-700 dark:bg-danger-950/40 dark:text-danger-300',
'refresh_recommended' => 'bg-warning-100 text-warning-700 dark:bg-warning-950/40 dark:text-warning-300',
'aligned' => 'bg-success-100 text-success-700 dark:bg-success-950/40 dark:text-success-300',
default => 'bg-gray-100 text-gray-700 dark:bg-gray-800 dark:text-gray-300',
};
$cellSurfaceClasses = match ((string) ($cell['attentionLevel'] ?? 'review')) {
'needs_attention' => 'border-danger-300 bg-danger-50/80 ring-1 ring-danger-200/70 dark:border-danger-900/70 dark:bg-danger-950/15 dark:ring-danger-900/40',
'refresh_recommended' => 'border-warning-300 bg-warning-50/80 ring-1 ring-warning-200/70 dark:border-warning-900/70 dark:bg-warning-950/15 dark:ring-warning-900/40',
'aligned' => 'border-success-200 bg-success-50/70 dark:border-success-900/60 dark:bg-success-950/10',
default => 'border-gray-200 bg-gray-50 dark:border-gray-800 dark:bg-gray-950/40',
};
@endphp
@if (filled($cell['reasonSummary'] ?? null))
@endif
{{ $cell['reasonSummary'] }}
@endif
@if (filled($cell['lastComparedAt'] ?? null))
Compared {{ \Illuminate\Support\Carbon::parse($cell['lastComparedAt'])->diffForHumans() }}
@endif
@if ($primaryUrl)
More follow-up
@if ($runUrl)
|
@endforeach