diff --git a/app/Controllers/Opd.php b/app/Controllers/Opd.php index a061b55..7fb5309 100644 --- a/app/Controllers/Opd.php +++ b/app/Controllers/Opd.php @@ -3878,34 +3878,37 @@ class Opd extends BaseController $labels = ['No Pain', 'Mild', 'Moderate', 'Intense', 'Worst']; $colors = ['#22c55e', '#84cc16', '#eab308', '#f97316', '#ef4444']; // green to red gradient - $painImageHtml = '
| ' . $tick . ' | '; + $arrow = $active ? '▼' : ' '; + $painImageHtml .= '' . $arrow . ' | '; } $painImageHtml .= '
| ' . $i . ' | '; + $bg = $active ? $colors[$i] : '#ffffff'; + $borderColor = $active ? '#000000' : '#d1d5db'; + $borderWidth = $active ? '3px' : '1px'; + $color = $active ? '#ffffff' : '#374151'; + $painImageHtml .= '' . $i . ' | '; } $painImageHtml .= '
| ' . esc($labels[$i]) . ' | '; + $textColor = $active ? '#000000' : '#6b7280'; + $fontSize = $active ? '9px' : '8px'; + $painImageHtml .= '' . esc($labels[$i]) . ' | '; } $painImageHtml .= '