Added: Location column in 'View Assigned Assets' View.

This commit is contained in:
swift2512 2024-09-12 09:23:48 +03:00 committed by GitHub
parent 7e14f8c6d6
commit d7ad981f29
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -411,13 +411,17 @@
<th class="col-md-2" data-switchable="true" data-visible="true"> <th class="col-md-2" data-switchable="true" data-visible="true">
{{ trans('admin/hardware/table.asset_tag') }} {{ trans('admin/hardware/table.asset_tag') }}
</th> </th>
<th class="col-md-2" data-switchable="true" data-visible="false">{{ trans('general.name') }}</th> <th class="col-md-2" data-switchable="true" data-visible="false">
{{ trans('general.name') }}</th>
<th class="col-md-2" data-switchable="true" data-visible="true"> <th class="col-md-2" data-switchable="true" data-visible="true">
{{ trans('admin/hardware/table.asset_model') }} {{ trans('admin/hardware/table.asset_model') }}
</th> </th>
<th class="col-md-3" data-switchable="true" data-visible="true"> <th class="col-md-3" data-switchable="true" data-visible="true">
{{ trans('admin/hardware/table.serial') }} {{ trans('admin/hardware/table.serial') }}
</th> </th>
<th class="col-md-2" data-switchable="true" data-visible="false">
{{ trans('general.location') }}
</th>
<th class="col-md-2" data-switchable="true" data-visible="false"> <th class="col-md-2" data-switchable="true" data-visible="false">
{{ trans('admin/hardware/form.default_location') }} {{ trans('admin/hardware/form.default_location') }}
</th> </th>
@ -476,6 +480,9 @@
<td> <td>
{{ $asset->serial }} {{ $asset->serial }}
</td> </td>
<td>
{{ ($asset->location) ? $asset->location->name : '' }}
</td>
<td> <td>
{{ ($asset->defaultLoc) ? $asset->defaultLoc->name : '' }} {{ ($asset->defaultLoc) ? $asset->defaultLoc->name : '' }}
</td> </td>