mirror of
https://github.com/brunofontes/shareit.git
synced 2025-11-15 16:00:54 -03:00
Refactoring product view
Creating a separate buttons file to edit or delete a product
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
<div class="card mt-4">
|
||||
<div class="card-header">
|
||||
Product: <strong>{{$product['name']}}</strong>
|
||||
<span class="d-inline-block text-truncat float-right">Edit - Delete</span>
|
||||
@include ('product.buttons')
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
@@ -28,6 +28,7 @@
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<strong>Items:</strong>
|
||||
<ul>
|
||||
@forelse ($product->items as $item)
|
||||
<li><a href="/item/{{ $item->id }}">{{ $item->name }}</a></li>
|
||||
|
||||
Reference in New Issue
Block a user