Browse Source

Vitals graph (temp) show the last 24 months in the filter

Vijayakrishnan 3 years ago
parent
commit
5d16d41f66
1 changed files with 1 additions and 1 deletions
  1. 1 1
      resources/views/app/patient/vitals-graph.blade.php

+ 1 - 1
resources/views/app/patient/vitals-graph.blade.php

@@ -10,7 +10,7 @@
         <?php
         $months = [];
         $monthNames = [];
-        for ($i=6; $i>=0; $i--) {
+        for ($i=24; $i>=0; $i--) {
             $m = date_sub(date_create(), date_interval_create_from_date_string($i . " month" . ($i === 1 ? '' : 's')));
             $monthNames[] = date_format($m, "M, Y");
             $months[] = date_format($m, "Y-m-01");