@php $overviewSecondaryListStackClasses = 'flex flex-col gap-2'; $overviewSecondaryListRowBaseClasses = 'min-w-0 rounded-xl border p-4 shadow-sm'; $overviewSecondaryListRowSurfaceClasses = 'border-gray-200 bg-white/80 dark:border-white/10 dark:bg-white/5'; $overviewSecondaryListInteractiveClasses = 'transition duration-150 hover:shadow-md hover:ring-1 hover:ring-gray-950/5 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500/50 dark:hover:ring-white/10'; @endphp
@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
@foreach ($governanceStatus as $status) @php $isGovernanceStatusInteractive = filled($status['actionUrl'] ?? null); $governanceStatusClasses = $isGovernanceStatusInteractive ? "{$overviewSecondaryListRowBaseClasses} {$overviewSecondaryListRowSurfaceClasses} {$overviewSecondaryListInteractiveClasses} flex items-start justify-between gap-4" : "{$overviewSecondaryListRowBaseClasses} {$overviewSecondaryListRowSurfaceClasses} flex items-start justify-between gap-4"; @endphp @if ($isGovernanceStatusInteractive)
@if (filled($status['icon'] ?? null)) @endif
{{ $status['label'] }}
{{ $status['description'] }}
{{ $status['value'] }}
@else
@if (filled($status['icon'] ?? null)) @endif
{{ $status['label'] }}
{{ $status['description'] }}
{{ $status['value'] }}
@endif @endforeach
@if ($activeOperationSummary)
{{ $activeOperationSummary['title'] }}
{{ $activeOperationSummary['count'] }}
{{ $activeOperationSummary['secondaryActionLabel'] }}
@foreach ($activeOperationSummary['items'] ?? [] as $operation)
@if (filled($operation['icon'] ?? null)) @endif
{{ $operation['title'] }}
@if (filled($operation['attentionLabel'] ?? null)) {{ $operation['attentionLabel'] }} @endif

{{ $operation['outcomeSentence'] }}

@if (filled($operation['timingLabel'] ?? null))
{{ $operation['timingLabel'] }}
@endif

{{ __('localization.dashboard.overview.label_reason') }}: {{ $operation['reason'] }}

{{ __('localization.dashboard.overview.label_impact') }}: {{ $operation['impact'] }}

{{ $operation['primaryActionLabel'] }}
@endforeach
@endif
@foreach ($readinessCards as $card) @php $cardMeta = array_values(array_filter($card['meta'] ?? [])); $headline = $card['headline'] ?? null; $cardProgress = array_values(array_filter($card['progress'] ?? [])); @endphp
{{ $card['title'] }}
@if (filled($headline))
{{ $headline }}
@else
{{ $card['status'] }}
@endif
{{ $card['status'] }}

{{ $card['body'] }}

@if ($cardProgress !== [])
@foreach ($cardProgress as $progress) @php $progressBarColor = match ($progress['tone'] ?? 'primary') { 'success' => 'var(--success-500)', 'warning' => 'var(--warning-500)', 'danger' => 'var(--danger-500)', default => 'var(--primary-500)', }; @endphp
{{ $progress['label'] }} {{ $progress['valueLabel'] }}
@endforeach
@endif @if ($cardMeta !== [])
@foreach ($cardMeta as $item)
{{ $item['label'] }} {{ $item['value'] }}
@endforeach
@endif @if (filled($card['actionLabel'] ?? null))
@if (filled($card['actionUrl'] ?? null)) {{ $card['actionLabel'] }} @else {{ $card['actionLabel'] }} @endif
@endif
@endforeach