Fixed error on unaccepted asset report

This commit is contained in:
snipe 2018-10-29 14:39:42 -07:00
parent f0e6a5c905
commit 5faf8bfcd0

View file

@ -47,14 +47,16 @@
<tbody>
@if ($assetsForReport)
@foreach ($assetsForReport as $assetItem)
@if ($assetItem)
<tr>
<td>{{ is_null($assetItem->company) ? '' : $assetItem->company->name }}</td>
<td>{{ ($assetItem->company) ? $assetItem->company->nam : '' }}</td>
<td>{{ $assetItem->model->category->name }}</td>
<td>{{ $assetItem->model->name }}</td>
<td>{!! $assetItem->present()->nameUrl() !!}</td>
<td>{{ $assetItem->asset_tag }}</td>
<td>{!! ($assetItem->assignedTo) ? $assetItem->assignedTo->present()->nameUrl() : 'Deleted user' !!}</td>
</tr>
@endif
@endforeach
@endif
</tbody>