Check for valid category name

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2021-09-13 15:47:13 -07:00
parent 4b303adda7
commit c6b26965a0

View file

@ -231,7 +231,7 @@
{{ ($consumable->manufacturer) ? $consumable->manufacturer->name : '' }} {{ $consumable->name }} {{ $consumable->model_number }}
@endif
</td>
<td>{{ $consumable->category->name }}</td>
<td>{{ ($consumable->category) ? $consumable->category->name : ' invalid/deleted category' }} </td>
<td>{{ $consumable->assetlog->first()->created_at }}</td>
</tr>
@php