소스 검색

fixed division by zero

= 4 년 전
부모
커밋
ac0510b241
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      resources/views/app/patient/claims-resolver.blade.php

+ 4 - 0
resources/views/app/patient/claims-resolver.blade.php

@@ -85,10 +85,14 @@
                 <div class="d-flex">
                     <span class="fill-percent-content">{{ $totalNotesWithBillingClosed }} / {{$totalNotes}}</span>
                     <div class="d-inline-flex flex-grow-1 ml-3">
+                        @if($totalNotes > 0)
                         <span class="fill-percent-value">{{round($totalNotesWithBillingClosed * 100 / $totalNotes, 1)}}%</span>
                         <div class="flex-grow-1 position-relative fill-bar">
                             <div class="bg-info position-absolute" style="left: 0; top: 0; height: 100%; width: {{$totalNotesWithBillingClosed * 100 / $totalNotes}}%"></div>
                         </div>
+                        @else 
+                         No notes
+                        @endif
                     </div>
                 </div>
             </td>