@php $cls = ['to_order' => 'bg-orange-100 text-orange-800', 'ordered' => 'bg-blue-100 text-blue-800', 'partially_received' => 'bg-yellow-100 text-yellow-800', 'received' => 'bg-green-100 text-green-800', 'cancelled' => 'bg-gray-200 text-gray-600'][$status] ?? 'bg-gray-100 text-gray-700'; @endphp {{ \App\Models\Purchase::STATUSES[$status] ?? $status }}