Browse Source

Merge branch 'master' into dev-vj

Vijayakrishnan 3 years ago
parent
commit
125ccb4b9e
2 changed files with 3 additions and 2 deletions
  1. 1 2
      app/Models/Pro.php
  2. 2 0
      resources/views/app/patient/notes.blade.php

+ 1 - 2
app/Models/Pro.php

@@ -57,8 +57,7 @@ class Pro extends Model
 
     public function isDefaultNA()
     {
-        // TODO are we using this?
-        return true; // $this->is_considered_for_dna;
+       return $this->is_considered_for_dna;
     }
 
     public function lastPayment() {

+ 2 - 0
resources/views/app/patient/notes.blade.php

@@ -228,7 +228,9 @@
                         <i class="fa fa-info-circle"></i>
                         <div class="position-absolute bg-white border rounded p-2 stag-tooltip-content">
                             <div class="text-nowrap small text-left pb-1">Created on <b>{{ friendly_date_time($note->created_at, true) }}</b></div>
+                            @if($note->createdSession && $note->createdSession->pro)
                             <div class="text-nowrap small text-left">Created by <b>{{ $note->createdSession->pro->displayName() }}</b></div>
+                            @endif
                         </div>
                     </div>
                 </td>