Преглед на файлове

added claims resolver view

unknown преди 4 години
родител
ревизия
1f2dc9f174
променени са 2 файла, в които са добавени 15 реда и са изтрити 4 реда
  1. 3 3
      app/Http/Controllers/PatientController.php
  2. 12 1
      resources/views/app/patient/claims-resolver.blade.php

+ 3 - 3
app/Http/Controllers/PatientController.php

@@ -29,16 +29,16 @@ class PatientController extends Controller
     public function claimsResolver(Request $request, Client $patient)
     {
         $notes = $patient->notesAscending;
-        $hcpSignedNotes = 0;
+        $hcpSignedNotesCount = 0;
         foreach($notes as $note){
             if($note->is_signed_by_hcp){
-                $hcpSignedNotes += 1;
+                $hcpSignedNotesCount += 1;
             }
         }
         $data = [
             'dog' => 'bark',
             'patient' => $patient,
-            'hcpSignedNotes' => $hcpSignedNotes
+            'hcpSignedNotesCount' => $hcpSignedNotesCount
         ];
         return view('app.patient.claims-resolver', $data);
     }

+ 12 - 1
resources/views/app/patient/claims-resolver.blade.php

@@ -2,8 +2,19 @@
 
 @section('inner-content')
     <h1>Here is the story of all the notes, bills, and claims for this patient.</h1>
-    <h2>HCP Signed Notes: {{$hcpSignedNotes}}</h2>
+    <h2>HCP notes signed: {{$hcpSignedNotesCount}}</h2>
     <h2>All Notes:</h2>
+    <table>
+        <thead>
+        <tr>
+            <th>Date</th>
+            <th>Days Later</th>
+            <th>Signed</th>
+            <th></th>
+            <th></th>
+        </tr>
+        </thead>
+    </table>
     @foreach($patient->notesAscending as $note)
         <h3>Note: {{$note->effective_dateest}}</h3>
     @endforeach