@props(['s']) @php $map = ['paid'=>'green','active'=>'green','answered'=>'blue','processing'=>'blue','open'=>'amber','pending'=>'amber','unpaid'=>'amber','high'=>'red','cancelled'=>'red','closed'=>'slate','low'=>'slate','normal'=>'blue']; $c = $map[$s] ?? 'slate'; $cls = ['green'=>'bg-green-100 text-green-700','blue'=>'bg-blue-100 text-blue-700','amber'=>'bg-amber-100 text-amber-700','red'=>'bg-red-100 text-red-700','slate'=>'bg-slate-200 text-slate-700'][$c]; @endphp {{ ucfirst($s) }}