Quellcode durchsuchen

Pros with access - 1 row / pro for non-admins

Vijayakrishnan vor 3 Jahren
Ursprung
Commit
a78b3e39fc
1 geänderte Dateien mit 9 neuen und 2 gelöschten Zeilen
  1. 9 2
      resources/views/app/patient/pros.blade.php

+ 9 - 2
resources/views/app/patient/pros.blade.php

@@ -17,8 +17,15 @@
                 @php $prevPro = ''; @endphp
                 @foreach($prosWithAccess as $aPro)
                     <tr>
-                        <td class="px-2 {{ $aPro['pro'] !== $prevPro ? 'font-weight-bold' : 'text-secondary' }}">{{ $aPro['pro'] }}</td>
-                        <td class="px-2">{{ $aPro['association'] }}</td>
+                        @if($pro->pro_type === 'ADMIN')
+                            <td class="px-2 {{ $aPro['pro'] !== $prevPro ? 'font-weight-bold' : 'text-secondary' }}">{{ $aPro['pro'] }}</td>
+                            <td class="px-2">{{ $aPro['association'] }}</td>
+                        @else
+                            @if($aPro['pro'] !== $prevPro)
+                                <td class="px-2 {{ $aPro['pro'] !== $prevPro ? 'font-weight-bold' : 'text-secondary' }}">{{ $aPro['pro'] }}</td>
+                                <td class="px-2">{{ $aPro['association'] }}</td>
+                            @endif
+                        @endif
                         @php $prevPro = $aPro['pro']; @endphp
                     </tr>
                 @endforeach