Adding URL to PRODUCT

This commit is contained in:
2018-09-16 20:32:32 -03:00
parent af0c05f42c
commit be39b48dc3
4 changed files with 37 additions and 12 deletions

View File

@@ -18,8 +18,16 @@
<hr class="m-3">
@endif
<div class="my-4 p-2">
@if ($item->product->url)
<a href="{{$item->product->url}}" class="link-unstyled" target="_blank" rel="noopener noreferrer">
@endif
<strong>{{$item->name}}</strong> ({{$item->product->name}})
@if ($item->product->url)
</a>
@endif
@if ($item->used_by)
@include('home.usedItem')
@else