Sfoglia il codice sorgente

added handout thumbnails

= 3 anni fa
parent
commit
8cbd48631e

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

@@ -38,6 +38,7 @@
     <table class="table table-striped table-sm table-bordered m-0">
         <thead class="bg-light">
         <tr>
+            <th></th>
             <th class="border-0 text-secondary">Internal Name</th>
             <th class="border-0 text-secondary">Display Name</th>
             <th class="border-0 text-secondary">View</th>
@@ -49,6 +50,9 @@
         @foreach($clientHandouts as $clientHandout)            
             <?php $downloadLink = config('app.url') . "/guest/handout/".$clientHandout->uid; ?>
             <tr>
+                <td>
+                    <img width="100" src="/api/handout/download-thumbnail/{{ $clientHandout->handout->uid }}" alt="{{$clientHandout->handout->display_name}}">
+                </td>
                 <td>{{$clientHandout->handout->internal_name}}</td>
                 <td>{{$clientHandout->handout->display_name}}</td>
                 <td>

+ 4 - 0
resources/views/app/practice-management/handouts.blade.php

@@ -45,6 +45,7 @@
             <table class="table table-sm table-striped p-0 m-0">
                 <thead class="bg-light">
                 <tr>
+                    <th class="border-0"></th>
                     <th class="border-0">Display Name</th>
                     <th class="border-0">Internal Name</th>
                     <th class="border-0">Tags</th>
@@ -55,6 +56,9 @@
                 <tbody>
                 @foreach($handouts as $handout)
                     <tr class="{{$handout->is_active ? '' : 'bg-light text-secondary'}}">
+                        <td>
+                            <img width="100" src="/api/handout/download-thumbnail/{{ $handout->uid }}" alt="{{$handout->display_name}}">
+                        </td>
                         <td>{{ $handout->display_name }}</td>
                         <td>{{ $handout->internal_name }}</td>
                         <td>{{ $handout->tags }}</td>