{{-- Active pointer per environment --}}
| Environment | Active version |
Package | Files |
Checksum | Loaded |
@foreach ($knowledgeEnvironments as $e)
@php $a = $knowledgeActive[$e] ?? null; @endphp
| {{ $e }} |
@if ($a){{ $a->version }}@elsenot loaded@endif |
{{ $a?->package_version ?? '—' }}@if ($a && $a->registry_version) · reg {{ $a->registry_version }}@endif |
{{ $a?->file_count ?? '—' }} |
@if ($a){{ \Illuminate\Support\Str::limit((string) $a->checksum, 12) }}@endif |
{{ $a ? (optional($a->loaded_at)->format('Y-m-d H:i') ?? '—') : '—' }} |
@endforeach
{{-- Refresh (environment-scoped) --}}
@if ($knowledgeHistory->isNotEmpty())
Version history (immutable)
| Env | Version | Package |
Files | Status |
Checksum | Loaded | |
@foreach ($knowledgeHistory as $v)
| {{ $v->environment }} |
{{ $v->version }}
@if ($v->is_active)active@endif |
{{ $v->package_version ?? '—' }} |
{{ $v->file_count ?? '—' }} |
{{ $v->status }} |
{{ \Illuminate\Support\Str::limit((string) $v->checksum, 12) }} |
{{ optional($v->loaded_at)->format('Y-m-d H:i') ?? '—' }} |
@unless ($v->is_active)
@endunless
|
@endforeach
@endif