@php $tenantDashboardStatusBadgeClasses = static fn (?string $tone): string => 'inline-flex items-center rounded-md border px-2 py-0.5 text-left text-xs font-medium leading-5 whitespace-normal break-words '.match ($tone) { 'danger' => 'border-danger-200 bg-danger-50 text-danger-700 dark:border-danger-800 dark:bg-danger-500/10 dark:text-danger-300', 'success' => 'border-success-200 bg-success-50 text-success-700 dark:border-success-800 dark:bg-success-500/10 dark:text-success-300', 'warning' => 'border-warning-200 bg-warning-50 text-warning-700 dark:border-warning-800 dark:bg-warning-500/10 dark:text-warning-300', 'info' => 'border-info-200 bg-info-50 text-info-700 dark:border-info-800 dark:bg-info-500/10 dark:text-info-300', 'primary' => 'border-primary-200 bg-primary-50 text-primary-700 dark:border-primary-800 dark:bg-primary-500/10 dark:text-primary-300', default => 'border-gray-200 bg-gray-50 text-gray-700 dark:border-white/10 dark:bg-white/5 dark:text-gray-200', }; @endphp

{{ $readinessDecision['question'] ?? 'Is this environment ready, blocked, stale, or requiring review?' }}

{{ $readinessDecision['status'] ?? ($posture['status'] ?? __('localization.dashboard.overview.status_unavailable')) }}
{{ $readinessDecision['statusLabel'] ?? 'Status' }}
{{ $readinessDecision['status'] ?? ($posture['status'] ?? __('localization.dashboard.overview.status_unavailable')) }}
{{ $readinessDecision['reasonLabel'] ?? 'Reason' }}
{{ $readinessDecision['reason'] ?? ($posture['headline'] ?? __('localization.dashboard.overview.tenant_context_unavailable_headline')) }}
{{ $readinessDecision['impactLabel'] ?? 'Impact' }}
{{ $readinessDecision['impact'] ?? ($posture['summary'] ?? __('localization.dashboard.overview.tenant_context_unavailable_summary')) }}
{{ $readinessDecision['nextActionLabel'] ?? 'Next action' }}
{{ $readinessDecision['actionLabel'] ?? 'Review readiness proof' }}
@if (filled($readinessDecision['actionUrl'] ?? null)) {{ $readinessDecision['actionLabel'] ?? 'Review readiness proof' }} @else {{ $readinessDecision['actionLabel'] ?? 'Review readiness proof' }} @endif @if (filled($readinessDecision['helperText'] ?? null))

{{ $readinessDecision['helperText'] }}

@endif
@forelse ($readinessDimensions as $dimension)
{{ $dimension['title'] ?? 'Readiness signal' }}
{{ $dimension['status'] ?? __('localization.dashboard.overview.status_unavailable') }}

{{ $dimension['description'] ?? '' }}

@empty
Readiness dimensions are unavailable until an environment context is selected.
@endforelse
Recommended next actions are derived from repo-backed blockers and proof gaps. @if ($recommendedActions === [])
{{ __('localization.dashboard.overview.empty_recommended_actions_headline') }}

{{ __('localization.dashboard.overview.empty_recommended_actions_summary') }}

@else
@foreach (array_slice($recommendedActions, 0, 3) as $index => $action)
{{ $index + 1 }}
@if (filled($action['icon'] ?? null)) @endif

{{ $action['title'] }}

Reason: {{ $action['reason'] }}

Impact: {{ $action['impact'] }}

@if (filled($action['actionUrl'] ?? null))
{{ $action['actionLabel'] ?? 'Review' }}
@endif
@endforeach
@endif
Additional readiness signals used to explain the current recommendation.
@if ($supportingSignals === [])
Supporting signals are unavailable until an environment context is selected.
@else
@foreach ($supportingSignals as $signal) @endforeach
Signal State Action
{{ $signal['label'] ?? 'Readiness signal' }} {{ $signal['value'] ?? __('localization.dashboard.overview.status_unavailable') }} @if (filled($signal['actionLabel'] ?? null)) @if (filled($signal['actionUrl'] ?? null) && ! ($signal['actionDisabled'] ?? false)) {{ $signal['actionLabel'] }} @else {{ $signal['actionLabel'] }} @endif @endif
@endif
{{ $diagnosticsDisclosure['label'] ?? 'Diagnostics - Collapsed' }}

{{ $diagnosticsDisclosure['summary'] ?? 'Support diagnostics stay closed by default and require the existing diagnostics capability.' }}

@foreach ($readinessProofPanel as $proof)
{{ $proof['label'] ?? 'Proof path' }}
{{ $proof['value'] ?? __('localization.dashboard.overview.status_unavailable') }}

{{ $proof['description'] ?? '' }}

@if (filled($proof['actionLabel'] ?? null))
@if (filled($proof['actionUrl'] ?? null)) {{ $proof['actionLabel'] }} @else {{ $proof['actionLabel'] }} @endif
@endif
@endforeach