mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Addng "Category" column to "view assets" and re-organizing columns (#4970)
This commit is contained in:
parent
813106efd3
commit
cc5d36f8be
|
@ -28,24 +28,26 @@ View Assets for {{ $user->present()->fullName() }}
|
|||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="col-md-4">{{ trans('admin/hardware/table.asset_model') }}</th>
|
||||
<th class="col-md-3">{{ trans('general.category') }}</th>
|
||||
<th class="col-md-2">{{ trans('admin/hardware/table.asset_tag') }}</th>
|
||||
<th class="col-md-3">{{ trans('admin/hardware/table.serial') }}</th>
|
||||
<th class="col-md-3">{{ trans('general.name') }}</th>
|
||||
<th class="col-md-4">{{ trans('admin/hardware/table.asset_model') }}</th>
|
||||
<th class="col-md-3">{{ trans('admin/hardware/table.serial') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($user->assets as $asset)
|
||||
<tr>
|
||||
<td>{{ $asset->model->category->name }}</td>
|
||||
<td>{{ $asset->asset_tag }}</td>
|
||||
<td>{{ $asset->name }}</td>
|
||||
<td>
|
||||
@if ($asset->physical=='1')
|
||||
{{ $asset->model->name }}
|
||||
{{ $asset->model->name }}
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ $asset->asset_tag }}</td>
|
||||
<td>{{ $asset->serial }}</td>
|
||||
<td>{{ $asset->name }}</td>
|
||||
<td>
|
||||
@if (($asset->image) && ($asset->image!=''))
|
||||
<img src="{{ url('/') }}/uploads/assets/{{ $asset->image }}" height="50" width="50">
|
||||
|
|
Loading…
Reference in a new issue