2018-09-11 23:48:09 +00:00
|
|
|
<span class="d-inline-block text-truncat float-right">
|
|
|
|
<div class="btn-group btn-group-sm" role="group">
|
|
|
|
|
|
|
|
|
|
|
|
<!-- EDIT BUTTON -->
|
2018-09-12 05:31:03 +00:00
|
|
|
@if ($item->product->user_id == \Auth::id())
|
|
|
|
<form action="/item/{{$item->id}}" method="POST">
|
2018-09-11 23:48:09 +00:00
|
|
|
@method('PATCH')
|
|
|
|
<button type="button" class="btn-sm btn-secondary mr-1">Edit</button>
|
|
|
|
</form>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
|
|
<!-- DELETE BUTTON -->
|
2018-09-13 00:27:04 +00:00
|
|
|
<form action="/item/" method="POST">
|
2018-09-11 23:48:09 +00:00
|
|
|
@method('DELETE')
|
2018-09-13 00:27:04 +00:00
|
|
|
{{ csrf_field() }}
|
|
|
|
<input type="hidden" name="item" value="{{$item->id}}">
|
|
|
|
<button type="submit" class="btn-sm btn-danger">Delete</button>
|
2018-09-11 23:48:09 +00:00
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</span>
|