瀏覽代碼

Added by and at on sticky note

Samson Mutunga 3 年之前
父節點
當前提交
8d70c8911b
共有 1 個文件被更改,包括 6 次插入0 次删除
  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>