Jelajahi Sumber

fixed handouts

= 3 tahun lalu
induk
melakukan
430caf28f6

+ 1 - 1
resources/views/app/patient/handouts-list.blade.php

@@ -37,7 +37,7 @@
         </tr>
         </thead>
         <tbody>
-        @foreach($patient->handouts($note) as $handout)
+        @foreach($handouts as $handout)
             <?php $downloadLink = config('app.url') . "/guest/handout/{$handout->handout_client_uid}"; ?>
             <tr>
                 <td>{{$handout->internal_name}}</td>

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

@@ -795,7 +795,7 @@
 
                 <!-- handouts -->
                 <div class="p-3 border-bottom screen-only" data-non-segment-section="Handouts">
-                    <?php $handouts = \App\Models\Handout::where('is_active', true)->get(); ?>
+                    <?php $handouts = $patient->handouts($note); ?>
                     @include('app.patient.handouts-list', compact('patient', 'handouts', 'note'))
                 </div>