Prechádzať zdrojové kódy

Bills show/hide dep on performer

Vijayakrishnan 3 rokov pred
rodič
commit
edeb1c927f

+ 4 - 2
resources/views/app/patient/note/dashboard.blade.php

@@ -1090,7 +1090,7 @@
                 @endif
 
                 {{-- bills --}}
-                @if($pro->pro_type === 'ADMIN' || ($note->hcpPro && $pro->id === $note->hcpPro->id) || ($note->allyPro && $pro->id === $note->allyPro->id))
+                @if($pro->pro_type === 'ADMIN' || ($note->hcpPro && $pro->id === $note->hcpPro->id))
                 @if($note->bills->count())
                     <div class="p-3 border-bottom">
                         <div class="d-flex align-items-center mb-2">
@@ -2003,7 +2003,9 @@
                 @endif
 
                 {{-- generic bills --}}
-                @include('app.generic-bills.inline', ['patient' => $patient, 'note' => $note, 'class' => 'p-3 border-top', 'label' => 'NA', 'entityType' => 'Note', 'entityUid' => $note->uid])
+                @if($pro->pro_type === 'ADMIN' || ($note->allyPro && $pro->id === $note->allyPro->id))
+                    @include('app.generic-bills.inline', ['patient' => $patient, 'note' => $note, 'class' => 'p-3 border-top', 'label' => 'NA', 'entityType' => 'Note', 'entityUid' => $note->uid])
+                @endif
 
                 <div class="border-top p-3 screen-only">
                     @if($note->addendums->count())