mirror of
https://github.com/brunofontes/shareit.git
synced 2025-11-15 16:00:54 -03:00
Including occupied username and renaming DB field
Now it shows the username of who is using an item. Item db field 'usedBy' was renamed to 'used_by' to keep consistence.
This commit is contained in:
7
resources/views/home/unusedItem.blade.php
Normal file
7
resources/views/home/unusedItem.blade.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<span class="float-right">
|
||||
<form action="/take" method="POST">
|
||||
{{ csrf_field() }}
|
||||
<input type="hidden" name="item" value="{{$item->id}}">
|
||||
<button type="submit" class="btn btn-sm btn-success">Take It</button>
|
||||
</form>
|
||||
</span>
|
||||
Reference in New Issue
Block a user