Browse Source

Notes list - check for null mcp and ally pro

Vijayakrishnan Krishnan 4 năm trước cách đây
mục cha
commit
39f1dc7d41
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      resources/views/app/patient/notes.blade.php

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

@@ -130,10 +130,10 @@
                         </a>
                     </td>
                     <td class="px-2">
-                        {{$note->hcpPro->name_display}}
+                        {{$note->hcpPro ? $note->hcpPro->name_display: '-'}}
                     </td>
                     <td class="px-2">
-                        {{$note->allyPro->name_display}}
+                        {{$note->allyPro ? $note->allyPro->name_display: '-'}}
                     </td>
                 </tr>
             @endforeach