shareit/resources/views/item/buttons.blade.php

22 lines
643 B
PHP
Raw Normal View History

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 -->
@if ($item[0]->admin_id == \Auth::id())
<form action="/item/{{$item[0]->id}}" method="POST">
@method('PATCH')
<button type="button" class="btn-sm btn-secondary mr-1">Edit</button>
</form>
@endif
<!-- DELETE BUTTON -->
<form action="/item/{{$item[0]->id}}" method="POST">
@method('DELETE')
<button type="button" class="btn-sm btn-danger">Delete</button>
</form>
</div>
</span>