@php $colors = [ 'draft' => 'bg-gray-100 text-gray-800', 'review' => 'bg-yellow-100 text-yellow-800', 'scheduled' => 'bg-blue-100 text-blue-800', 'published' => 'bg-green-100 text-green-800', 'archived' => 'bg-red-100 text-red-800', 'active' => 'bg-green-100 text-green-800', 'paused' => 'bg-yellow-100 text-yellow-800', 'pending' => 'bg-yellow-100 text-yellow-800', 'success' => 'bg-green-100 text-green-800', 'failed' => 'bg-red-100 text-red-800', ]; $labels = [ 'draft' => 'Rascunho', 'review' => 'Em revisão', 'scheduled' => 'Agendado', 'published' => 'Publicado', 'archived' => 'Arquivado', 'active' => 'Ativo', 'paused' => 'Pausado', 'pending' => 'Pendente', 'success' => 'Sucesso', 'failed' => 'Falhou', ]; $statusValue = is_object($status) ? $status->value : $status; $class = $colors[$statusValue] ?? 'bg-gray-100 text-gray-800'; $label = $labels[$statusValue] ?? ucfirst($statusValue); @endphp {{ $label }}