Added location to asset view

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-11-13 21:16:08 +00:00
parent 02ba13be26
commit ada8e77b85

View file

@ -431,6 +431,9 @@
<th class="col-md-2" data-switchable="true" data-visible="false">
{{ trans('admin/hardware/form.default_location') }}
</th>
<th class="col-md-2" data-switchable="true" data-visible="false">
{{ trans('general.location') }}
</th>
@can('self.view_purchase_cost')
<th class="col-md-6" data-footer-formatter="sumFormatter" data-fieldname="purchase_cost">
@ -489,6 +492,9 @@
<td>
{{ ($asset->defaultLoc) ? $asset->defaultLoc->name : '' }}
</td>
<td>
{{ ($asset->location) ? $asset->location->name : '' }}
</td>
@can('self.view_purchase_cost')
<td>
{!! Helper::formatCurrencyOutput($asset->purchase_cost) !!}