@php $statusValue = $status ?? 'inactive'; $statusLabels = [ 'active' => 'Active', 'complete' => 'Onboarded', 'in_review' => 'In Review', 'in_progress' => 'In Progress', 'draft' => 'Draft', 'inactive' => 'Inactive', 'completed' => 'Completed', 'initialized' => 'Initialized', 'pending' => 'Pending', ]; $statusClass = in_array($statusValue, ['active', 'complete', 'completed'], true) ? 'po-status-success' : (in_array($statusValue, ['in_review', 'in_progress', 'initialized', 'pending'], true) ? 'po-status-warning' : 'po-status-muted'); @endphp {{ $label ?? ($statusLabels[$statusValue] ?? ucfirst(str_replace('_', ' ', $statusValue))) }}