Skip to content

Commit

Permalink
Merge pull request #14500 from Godmartinz/add-accessory-signature-to-…
Browse files Browse the repository at this point in the history
…print-all

Added signature to user print report for Accessories and Consumables
  • Loading branch information
snipe committed Mar 27, 2024
2 parents 545a185 + 84cc888 commit 57010b4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions resources/views/users/print.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ class="snipe-table table table-striped inventory"
<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
Expand All @@ -274,6 +275,12 @@ class="snipe-table table table-striped inventory"
<td>{{ ($accessory->manufacturer) ? $accessory->manufacturer->name : '' }} {{ $accessory->name }} {{ $accessory->model_number }}</td>
<td>{{ $accessory->category->name }}</td>
<td>{{ $accessory->pivot->created_at }}</td>

<td>
@if (($accessory->assetlog->first()) && ($accessory->assetlog->first()->accept_signature!=''))
<img style="width:auto;height:100px;" src="{{ asset('/') }}display-sig/{{ $accessory->assetlog->first()->accept_signature }}">
@endif
</td>
</tr>
@php
$acounter++
Expand Down Expand Up @@ -308,6 +315,8 @@ class="snipe-table table table-striped inventory"
<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
Expand All @@ -329,6 +338,11 @@ class="snipe-table table table-striped inventory"
</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++
Expand Down

0 comments on commit 57010b4

Please sign in to comment.