浏览代码

server changes

root 4 年之前
父节点
当前提交
27d3f5d755
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      resources/views/app/practice-management/patient-claim-summary.blade.php

+ 2 - 2
resources/views/app/practice-management/patient-claim-summary.blade.php

@@ -126,9 +126,9 @@
                             <td>{{$patient->notes_total}}</td>
                             <td>
                                 <div class="d-flex align-items-center">
-                                    <span class="fill-percent-value">{{round(($patient->notes_total - $patient->notes_without_claiming_closed) *100/$patient->notes_total, 1)}}%</span>
+                                    <span class="fill-percent-value">{{$patient->notes_total ? round(($patient->notes_total - $patient->notes_without_claiming_closed) *100/ $patient->notes_total, 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: {{($patient->notes_total - $patient->notes_without_claiming_closed) *100/$patient->notes_total}}%"></div>
+                                        <div class="bg-info position-absolute" style="left: 0; top: 0; height: 100%; width: {{ $patient->notes_total ? ($patient->notes_total - $patient->notes_without_claiming_closed ) * 100 / $patient->notes_total : '-'}}%"></div>
                                     </div>
                                 </div>
                             </td>