Эх сурвалжийг харах

added claims resolver view

unknown 4 жил өмнө
parent
commit
2471da2b54

+ 26 - 3
resources/views/app/patient/claims-resolver.blade.php

@@ -14,8 +14,31 @@
             <th></th>
         </tr>
         </thead>
+        <tbody>
+        @php $lastDate = null; @endphp
+        @foreach($patient->notesAscending as $note)
+            <?php
+                $lastDate = $lastDate == null ? $note->effective_dateest : $lastDate;
+                $daysLater = (strtotime($note->effective_dateest) - strtotime($lastDate)) / (60 * 60 * 24);
+            ?>
+            <tr>
+                <td>
+                    {{ $note->effective_dateest }}
+                </td>
+                <td>
+                    {{ $daysLater }}
+                </td>
+                <td>
+
+                </td>
+                <td>
+
+                </td>
+                <td>
+
+                </td>
+            </tr>
+        @endforeach
+        </tbody>
     </table>
-    @foreach($patient->notesAscending as $note)
-        <h3>Note: {{$note->effective_dateest}}</h3>
-    @endforeach
 @endsection