mirror of
https://github.com/brunofontes/shareit.git
synced 2025-11-15 16:00:54 -03:00
Imrpoving Item, Product and Users
This commit is contained in:
22
resources/views/item/buttons.blade.php
Normal file
22
resources/views/item/buttons.blade.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user