@php $statusKey = strtolower((string) ($status ?? '')); $badgeClass = match ($statusKey) { 'pending' => 'pending', 'approved', 'active' => 'active', 'closed', 'paid' => 'closed', 'rejected' => 'rejected', default => 'default', }; @endphp {{ ucfirst($status ?? '—') }}