Explorar o código

Added by and at on sticky note

Samson Mutunga %!s(int64=3) %!d(string=hai) anos
pai
achega
8d70c8911b
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      resources/views/layouts/patient-header.blade.php

+ 6 - 0
resources/views/layouts/patient-header.blade.php

@@ -485,8 +485,14 @@ $addressParts .= implode(", ", $addressPart2);
           </div>
         </div>
         @if($patient->sticky_note)
+        <?php
+        $patientRecentStickyNote = App\Models\ClientStickyNote::where('client_id', $patient->id)->orderBy('created_at', 'DESC')->limit(1)->first();
+        ?>
         <div class="">
           <span class="d-block text-secondary">{{$patient->sticky_note ?? '-' }}</span>
+          <div>
+            <small class="text-muted">By: {{ $patientRecentStickyNote->createdBy->pro->displayName()  }} • At: {{ friendlier_date($patientRecentStickyNote->created_at) }}</small>
+          </div>
         </div>
         @endif
       </div>