<td {{ $lastitem }}>
    @if($asset->parent_asset_id != null || count($asset->childrenAsset) > 0)
        <a href="#" data-toggle="modal" data-target="#link-asset" data-id="{{ $asset->id }}" data-parent-id="{{ $asset->parent_asset_id }}"><i class="icon icon-link"></i></a>
    @endif
</td>