Samson Mutunga 3 жил өмнө
parent
commit
53a35849cb

+ 1 - 1
resources/views/app/patient/partials/coverage-information.blade.php

@@ -76,7 +76,7 @@
                     </a>
                 @endif
             @endif
-            <span class="mx-2">Created At: {{ friendly_date_time($cpc->created_at) }} by {{ $cpc->createdByPro->displayName() }}</span>
+            <span class="mx-2">Created At: {{ friendly_date_time($cpc->created_at) }} by {{ $cpc->createdByPro ? $cpc->createdByPro->displayName() : '---' }}</span>
         </div>
 
         <div class="mt-4 {{ $cpc->is_cancelled ? 'cpc-cancelled':'' }}">

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

@@ -345,7 +345,12 @@ $addressParts .= implode(", ", $addressPart2);
                 </div>
               </span> 
                 @if($_cpc->is_manually_determined)
-                <a href="{{ route('patients.view.primary-coverage', $patient) }}"><i class="ml-1 fas fa-code-branch text-info" title="Manually determined at {{ friendly_date($_cpc->created_at) }}"></i></a>
+                <a href="{{ route('patients.view.primary-coverage', $patient) }}" class="on-hover-show">
+                  <i class="ml-1 fas fa-code-branch text-info"></i>
+                  <div class="on-hover-content py-2 pl-3 text-nowrap">
+                    Manually determined at {{ friendly_date($_cpc->created_at) }}
+                </div>
+                </a>
                 @endif
             </div>
             @if($performer->pro->pro_type == 'ADMIN')