Fixed depreciation report not showing assigned to

This commit is contained in:
snipe 2018-01-16 07:46:34 -08:00
parent 69a7ea63e2
commit 3b5e4c44eb

View file

@ -74,11 +74,12 @@
@endif
</td>
<td>
@if ($asset->assignedTo)
@if ($asset->assignedTo->deleted_at!='')
<del>{{ $asset->assignedTo->present()->name() }}</del>
@if ($asset->checkedOutToUser())
{{ $asset->assigned->getFullNameAttribute() }}
@else
{!! $asset->assignedTo->present()->nameUrl() !!}
@if ($asset->assigned)
{{ $asset->assigned->name }}
@endif
@endif
</td>