Parcourir la source

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

Vijayakrishnan il y a 3 ans
Parent
commit
5d16d41f66
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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");