adds signature for components

This commit is contained in:
Godfrey M 2024-03-26 12:18:10 -07:00
parent f4f9b165a7
commit 84cc88831d

View file

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