mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Fixed error on unaccepted asset report
This commit is contained in:
parent
f0e6a5c905
commit
5faf8bfcd0
|
@ -47,14 +47,16 @@
|
|||
<tbody>
|
||||
@if ($assetsForReport)
|
||||
@foreach ($assetsForReport as $assetItem)
|
||||
<tr>
|
||||
<td>{{ is_null($assetItem->company) ? '' : $assetItem->company->name }}</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>
|
||||
@if ($assetItem)
|
||||
<tr>
|
||||
<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>
|
||||
|
|
Loading…
Reference in a new issue