2018-09-13 00:28:39 +00:00
|
|
|
<span class="d-inline-block text-truncat float-right">
|
|
|
|
<div class="btn-group btn-group-sm" role="group">
|
|
|
|
|
|
|
|
|
|
|
|
<!-- EDIT BUTTON -->
|
|
|
|
@if ($product->user_id == \Auth::id())
|
2018-09-14 00:16:57 +00:00
|
|
|
<form action="/product" method="POST">
|
2018-09-13 00:28:39 +00:00
|
|
|
@method('PATCH')
|
2018-09-14 00:16:57 +00:00
|
|
|
<button type="submit" class="btn-sm btn-secondary mr-1">Edit</button>
|
2018-09-13 00:28:39 +00:00
|
|
|
</form>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
|
|
<!-- DELETE BUTTON -->
|
2018-09-14 00:16:57 +00:00
|
|
|
<form action="/product" method="POST">
|
2018-09-13 00:28:39 +00:00
|
|
|
@method('DELETE')
|
2018-09-14 00:16:57 +00:00
|
|
|
<button type="submit" class="btn-sm btn-danger">Delete</button>
|
2018-09-13 00:28:39 +00:00
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</span>
|