优化功能
Some checks failed
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled

This commit is contained in:
jiangdong.cheng
2026-02-12 17:10:36 +08:00
parent 56c685b579
commit a795b2c896
29 changed files with 2155 additions and 884 deletions

View File

@@ -0,0 +1,10 @@
@php
$statusValue = strtolower((string) ($status?->value ?? $status ?? 'default'));
$statusClass = match ($statusValue) {
'draft', 'review', 'published', 'stale', 'archived' => $statusValue,
default => 'default',
};
@endphp
<span class="status-badge status-{{ $statusClass }}">{{ $statusValue !== '' ? $statusValue : '-' }}</span>