Check for valid category

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-10-31 12:16:39 -07:00
parent 7cb4740359
commit a930661150

View file

@ -421,7 +421,11 @@
<img src="{{ Storage::disk('public')->url(app('models_upload_path').e($asset->model->image)) }}" style="max-height: 30px; width: auto" class="img-responsive">
@endif
</td>
<td>{{ $asset->model->category->name }}</td>
<td>
@if (($asset->model) && ($asset->model->category))
{{ $asset->model->category->name }}
@endif
</td>
<td>{{ $asset->asset_tag }}</td>
<td>{{ $asset->name }}</td>
<td>