@@ -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>
@@ -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>