|
@@ -37,11 +37,11 @@
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody>
|
|
<tbody>
|
|
- @foreach($handouts as $handout)
|
|
|
|
- <?php $downloadLink = config('app.url') . "/guest/handout/{$handout->handout_client_uid}"; ?>
|
|
|
|
|
|
+ @foreach($clientHandouts as $clientHandout)
|
|
|
|
+ <?php $downloadLink = config('app.url') . "/guest/handout/".$clientHandout->uid; ?>
|
|
<tr>
|
|
<tr>
|
|
- <td>{{$handout->internal_name}}</td>
|
|
|
|
- <td>{{$handout->display_name}}</td>
|
|
|
|
|
|
+ <td>{{$clientHandout->handout->internal_name}}</td>
|
|
|
|
+ <td>{{$clientHandout->handout->display_name}}</td>
|
|
<td>
|
|
<td>
|
|
<a native href="{{ $downloadLink }}" target="_blank" class="pdf-viewer-triggerd-flex align-items-center">
|
|
<a native href="{{ $downloadLink }}" target="_blank" class="pdf-viewer-triggerd-flex align-items-center">
|
|
<i class="fa fa-eye mr-2"></i>View
|
|
<i class="fa fa-eye mr-2"></i>View
|
|
@@ -59,7 +59,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="mb-2">
|
|
<div class="mb-2">
|
|
<label for="" class="text-sm text-secondary mb-1">Message</label>
|
|
<label for="" class="text-sm text-secondary mb-1">Message</label>
|
|
- <textarea type="text" rows="10" class="form-control form-control-sm" name="message">Dear {{$patient->displayName()}}, Access the handout ({{$handout->display_name}}) at the following link: <a href="{{$downloadLink}}">{{$downloadLink}}</a></textarea>
|
|
|
|
|
|
+ <textarea type="text" rows="10" class="form-control form-control-sm" name="message">Dear {{$patient->displayName()}}, Access the handout ({{$clientHandout->handout->display_name}}) at the following link: <a href="{{$downloadLink}}">{{$downloadLink}}</a></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="d-flex align-items-center">
|
|
<div class="d-flex align-items-center">
|
|
<button class="btn btn-sm btn-primary mr-2" submit="">Send</button>
|
|
<button class="btn btn-sm btn-primary mr-2" submit="">Send</button>
|