@php use Illuminate\Support\Str; $isDev = auth()->user()?->hasRole('developer'); $type = (string) ($update->type ?? 'release'); $typeLabel = match ($type) { 'security' => 'Security', 'fix' => 'Fix', 'feature' => 'Feature', 'maintenance' => 'Maintenance', default => Str::upper($type ?: 'UPDATE'), }; $pill = match ($type) { 'security' => 'bg-red-50 text-red-700 border-red-200', 'fix' => 'bg-amber-50 text-amber-800 border-amber-200', 'feature' => 'bg-emerald-50 text-emerald-700 border-emerald-200', 'maintenance' => 'bg-blue-50 text-blue-700 border-blue-200', default => 'bg-neutral-100 text-rk-slate border-rk', }; $published = $update->published_at ?? $update->created_at; @endphp
{{-- Header --}}
{{ $update->title }}
@if ($update->version) Version {{ ltrim($update->version, 'v') }} @endif {{ strtoupper($update->type) }}
Veröffentlicht: {{ optional($published)->format('d.m.Y H:i') }}
Autor: {{ $update->creator?->email ?? '—' }}
Zurück @if ($isDev) Bearbeiten
@csrf @method('DELETE')
@endif
{{-- subtle footer bar --}}
Update-ID: {{ $update->id }}
Erstellt: {{ optional($update->created_at)->format('d.m.Y H:i') }} @if ($update->editor?->email) · Letzte Änderung: {{ $update->editor->email }} @endif
{{-- Content --}}
Inhalt
Änderungen & Hinweise im Detail.
{!! $update->body !!}
{{-- Optional: quick meta line --}}
{{ $typeLabel }} {{ optional($published)->format('d.m.Y H:i') }} @if ($update->creator?->email) {{ $update->creator->email }} @endif