Bläddra i källkod

Pending notes to sign - add col for pro, hide cancelled ones

Vijayakrishnan 3 år sedan
förälder
incheckning
6efadc4955

+ 1 - 1
app/Http/Controllers/PracticeManagementController.php

@@ -368,7 +368,7 @@ OFFSET {$offset} LIMIT {$perPage}
     public function notes(Request $request, $filter = '')
     {
         $proID = $this->performer()->pro->id;
-        $query = Note::where('hcp_pro_id', $proID);
+        $query = Note::where('hcp_pro_id', $proID)->where('is_cancelled', FALSE);
         switch ($filter) {
             case 'not-yet-signed':
                 $query = $query->where('is_signed_by_hcp', false);

+ 4 - 1
resources/views/app/practice-management/notes.blade.php

@@ -30,7 +30,7 @@
                         <th class="px-3 border-0">Created</th>
                         <th class="border-0">Effective Date</th>
                         <th class="border-0">Patient</th>
-                        <th class="border-0 w-50">Content</th>
+                        <th class="border-0 w-50">Pro</th>
                     </tr>
                 </thead>
                 <tbody>
@@ -48,6 +48,9 @@
                         <td class="">
                             <a href="/patients/view/{{ $note->client->uid }}">{{ $note->client->displayName() }}</a>
                         </td>
+                        <td class="">
+                            {{ $note->hcpPro ? $note->hcpPro->displayName() : '-' }}
+                        </td>
                         <td class="">
                             <?php
                             $textContent = strip_tags($note->free_text_html);