@if (count($themes) === 0) @else
@foreach ($themes as $theme) @php $isActive = $theme['slug'] === $activeTheme; $slotColor = match ($theme['slots_status'] ?? 'undeclared') { 'full' => 'success', 'partial', 'mismatch' => 'warning', default => 'danger', }; @endphp
@if ($isActive) {{ __('admin.pages.current') }} @endif {{ $theme['slots_label'] ?? __('admin.slots.status_undeclared') }} @if (($theme['slots_declared_count'] ?? 0) > 0) · {{ $theme['slots_declared_count'] }} @endif
@if (! empty($theme['preview'])) {{ $theme['title'] }} {{ __('admin.pages.preview') }} @else
{{ __('admin.pages.preview') }}
@endif

{{ $theme['description'] }}

@if (! empty($theme['slots_missing']))

{{ __('admin.messages.slots_missing_prefix') }}{{ implode(', ', array_slice($theme['slots_missing'], 0, 6)) }}{{ count($theme['slots_missing']) > 6 ? '…' : '' }}

@endif
{{ __('admin.pages.preview') }} @if ($isActive) {{ __('admin.pages.current') }} @else {{ __('admin.pages.activate') }} @endif
@endforeach
@endif