Skip to content

A free open source IT asset/license management system

Added location to asset view

snipeada8e77b8577
diff --git a/resources/views/account/view-assets.blade.php b/resources/views/account/view-assets.blade.php
index 96683fa9b1..08062e29a5 100755
--- a/resources/views/account/view-assets.blade.php
+++ b/resources/views/account/view-assets.blade.php
@@ -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) !!}