@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 ($recentOperations === [])
{{ __('localization.dashboard.overview.empty_recent_operations_headline') }}

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

@else
@foreach (array_slice($recentOperations, 0, 4) as $operation) @php $operationTone = match ($operation['outcomeTone']) { 'danger' => 'border-danger-200 bg-danger-50/10 dark:border-danger-800 dark:bg-danger-500/5', 'warning' => 'border-warning-200 bg-warning-50/10 dark:border-warning-800 dark:bg-warning-500/5', default => $overviewSecondaryListRowSurfaceClasses, }; @endphp
@if (filled($operation['icon'] ?? null)) @endif
{{ $operation['type'] }}
{{ $operation['statusLabel'] }} {{ $operation['outcomeLabel'] }}
{{ $operation['summary'] }}
@if ($operation['createdAt']) {{ $operation['createdAt'] }} @endif
@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