Check for category name

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2021-04-14 16:54:36 -07:00
parent 105f57e059
commit b693e5202b

View file

@ -221,7 +221,7 @@ View Assets for {{ $user->present()->fullName() }}
@foreach ($user->consumables as $consumable)
<tr>
<td>{{ $consumable->name }}</td>
<td>{{ $consumable->category->name }}</td>
<td>{{ ($consumable->category->name) ? $consumable->category->name : 'deleted category' }}</td>
</tr>
@endforeach
</tbody>