Răsfoiți Sursa

Patients list - don't show ID (seqnum) to non-admins

Vijayakrishnan 4 ani în urmă
părinte
comite
1f9046b073
1 a modificat fișierele cu 5 adăugiri și 1 ștergeri
  1. 5 1
      resources/views/app/patients.blade.php

+ 5 - 1
resources/views/app/patients.blade.php

@@ -40,8 +40,10 @@
             <table class="table table-condensed p-0 m-0">
                 <thead class="bg-light">
                 <tr>
+                    @if($pro->pro_type === 'ADMIN')
                     <th class="border-0"></th>
-                    <th class="px-3 border-0">#</th>
+                    @endif
+                    <th class="px-3 border-0">Chart #</th>
                     <th class="border-0">Patient</th>
                     <th class="border-0">Created At</th>
                     @if($showProgramsColumn)<th class="border-0">Program(s)</th>@endif
@@ -54,7 +56,9 @@
                 <tbody>
                 @foreach($patients as $patient)
                     <tr>
+                        @if($pro->pro_type === 'ADMIN')
                         <td>{{$loop->index + 1}}</td>
+                        @endif
                         <td class="px-3">
                             <a href="{{route('patients.view.dashboard', $patient)}}">
                                 {{$patient->chart_number}}