Преглед на файлове

Shipment table - click to view label file pdf

Vijayakrishnan преди 4 години
родител
ревизия
6b4460d10a
променени са 1 файла, в които са добавени 11 реда и са изтрити 1 реда
  1. 11 1
      resources/views/app/patient/shipments.blade.php

+ 11 - 1
resources/views/app/patient/shipments.blade.php

@@ -76,13 +76,14 @@
                     cleared for shipment
                 </div>
             @endif
-            <table class="table table-sm table-bordered mb-0">
+            <table class="table table-sm table-bordered mb-0" style="table-layout: fixed">
                 @if($patient->shipments && count($patient->shipments))
                     <thead>
                     <tr class="bg-light">
                         <th class="px-2 text-nowrap text-secondary border-bottom-0">Created At</th>
                         <th class="px-2 text-nowrap text-secondary border-bottom-0">Supply Orders</th>
                         @if(!$shipment)
+                            <th class="px-2 text-nowrap text-secondary border-bottom-0">Label File</th>
                             <th class="px-2 text-nowrap text-secondary border-bottom-0">Courier</th>
                             <th class="px-2 text-nowrap text-secondary border-bottom-0">Tracking #</th>
                             <th class="px-2 text-nowrap text-secondary border-bottom-0">Status</th>
@@ -99,6 +100,15 @@
                             </td>
                             <td class="px-2">{{count($iShipment->supplyOrders)}}</td>
                             @if(!$shipment)
+                                <td class="px-2">
+                                    @if($iShipment->label_system_file_id)
+                                        <a class="pdf-viewer-trigger" native="" target="_blank"
+                                           href="/api/shipment/downloadLabel/{{$iShipment->uid}}" title="View">
+                                            <i class="fa fa-file-pdf text-danger on-hover-opaque"></i>
+                                            View
+                                        </a>
+                                    @endif
+                                </td>
                                 <td class="px-2">{{ $iShipment->courier }}</td>
                                 <td class="px-2">{{ $iShipment->tracking_number }}</td>
                                 <td class="px-2">{{ $iShipment->status }}</td>