Przeglądaj źródła

Patients list - info tooltip with the latest memo

Vijayakrishnan 3 lat temu
rodzic
commit
d7d69ae0a5

+ 2 - 2
resources/views/app/admin/patients-table-extended.blade.php

@@ -71,10 +71,10 @@
                 <td>
                     <div class="d-flex align-items-baseline flex-nowrap">
                         <span>{{$patient->displayName()}}</span>
+                        <?php $latestMemo = $patient->latestMemo(); ?>
                         <div class="on-hover-show d-inline-block on-hover-opaque ml-auto mr-1">
-                            <i class="fa fa-info-circle ml-1"></i>
+                            <i class="fa fa-info-circle ml-1 {{$latestMemo ? '' : 'opacity-35'}}"></i>
                             <div class="on-hover-content py-2 pl-3 text-nowrap text-dark" style="left:0;right:auto;">
-                                <?php $latestMemo = $patient->latestMemo(); ?>
                                 @if($latestMemo)
                                     <p class="mb-1 font-weight-bold text-secondary">Last Memo: {{$latestMemo->category}}</p>
                                     <div class="text-wrap mb-1">{{$latestMemo->content}}</div>