Răsfoiți Sursa

added measurement timestamp

= 4 ani în urmă
părinte
comite
f73e1e0554
2 a modificat fișierele cu 5 adăugiri și 0 ștergeri
  1. 1 0
      app/Models/Pro.php
  2. 4 0
      resources/views/app/dashboard.blade.php

+ 1 - 0
app/Models/Pro.php

@@ -356,6 +356,7 @@ class Pro extends Model
             $measurement->patient = $client;
 
             $measurement->careMonth = $measurement->client->currentCareMonth();
+            $measurement->timestamp = friendly_date_time($measurement->created_at);
 
             unset($measurement->client); // we do not need this travelling to the frontend
         }

+ 4 - 0
resources/views/app/dashboard.blade.php

@@ -181,6 +181,7 @@
                                 <th class="border-0 px-2 text-secondary">Patient</th>
                                 <th class="border-0 px-2 text-secondary">Category</th>
                                 <th class="border-0 px-2 text-secondary">Value</th>
+                                <th class="border-0 px-2 text-secondary">Timestamp</th>
                                 <th class="border-0 px-2 text-secondary">Mins this month</th>
                                 <th class="border-0 px-2 text-secondary text-center">Stamp</th>
                                 <th class="border-0 px-2 text-secondary text-center">Entry</th>
@@ -213,6 +214,9 @@
                                         </div>
                                     </div>
                                 </td>
+                                <td>
+                                    @{{measurement.timestamp}}
+                                </td>
                                 <td class="px-2">
                                     @{{Math.floor(measurement.careMonth.rm_total_time_in_seconds/60).toFixed(0)}}
                                 </td>