mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-13 06:47:46 -08:00
Added - display asset model category on hardware view page
This commit is contained in:
parent
3b5e4c44eb
commit
409f5cc4fd
|
@ -180,11 +180,34 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
{{ trans('general.category') }}</td>
|
||||||
|
<td>
|
||||||
|
@if ($asset->model->category)
|
||||||
|
|
||||||
|
@can('view', \App\Models\Category::class)
|
||||||
|
|
||||||
|
<a href="{{ route('categories.show', $asset->model->category->id) }}">
|
||||||
|
{{ $asset->model->category->name }}
|
||||||
|
</a>
|
||||||
|
@else
|
||||||
|
{{ $asset->model->category->name }}
|
||||||
|
@endcan
|
||||||
|
@else
|
||||||
|
Invalid category
|
||||||
|
@endif
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{{ trans('admin/hardware/form.model') }}</td>
|
{{ trans('admin/hardware/form.model') }}</td>
|
||||||
<td>
|
<td>
|
||||||
@can('view', \App\Models\AssetModel::class)
|
@can('view', \App\Models\AssetModel::class)
|
||||||
<a href="{{ route('models.show', $asset->model->id) }}">
|
<a href="{{ route('models.show', $asset->model->id) }}">
|
||||||
{{ $asset->model->name }}
|
{{ $asset->model->name }}
|
||||||
</a>
|
</a>
|
||||||
|
@ -193,6 +216,8 @@
|
||||||
@endcan
|
@endcan
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ trans('admin/models/table.modelnumber') }}</td>
|
<td>{{ trans('admin/models/table.modelnumber') }}</td>
|
||||||
<td>
|
<td>
|
||||||
|
|
Loading…
Reference in a new issue