Skip to content

A free open source IT asset/license management system

adds signature for components

Godfrey M84cc88831d5e
diff --git a/resources/views/users/print.blade.php b/resources/views/users/print.blade.php
index 8526a6863a..4bbec7980b 100644
--- a/resources/views/users/print.blade.php
+++ b/resources/views/users/print.blade.php
@@ -315,6 +315,8 @@
<th style="width: 40%;" data-sortable="true" data-switchable="false">{{ trans('general.name') }}</th>
<th style="width: 50%;" data-sortable="true">{{ trans('general.category') }}</th>
<th style="width: 10%;" data-sortable="true">{{ trans('admin/hardware/table.checkout_date') }}</th>
+ <th style="width: 10%;" data-sortable="true">{{ trans('general.signature') }}</th>
+
</tr>
</thead>
@php
@@ -336,6 +338,11 @@
</td>
<td>{{ ($consumable->category) ? $consumable->category->name : ' invalid/deleted category' }} </td>
<td>{{ $consumable->pivot->created_at }}</td>
+ <td>
+ @if (($consumable->assetlog->first()) && ($consumable->assetlog->first()->accept_signature!=''))
+ <img style="width:auto;height:100px;" src="{{ asset('/') }}display-sig/{{ $consumable->assetlog->first()->accept_signature }}">
+ @endif
+ </td>
</tr>
@php
$ccounter++