mirror of
https://github.com/brunofontes/shareit.git
synced 2025-11-15 16:00:54 -03:00
Restyling / refactoring ITEM
This commit is contained in:
17
resources/views/item/otherItems.blade.php
Normal file
17
resources/views/item/otherItems.blade.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<div class="card mt-4">
|
||||
<div class="card-header">
|
||||
Other items from the same product
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<ul>
|
||||
@forelse ($otherItems as $otherItem)
|
||||
@if (!$otherItem->used_by)
|
||||
<li><a href="/item/{{ $otherItem->id }}">{{ $otherItem->name }}</a></li>
|
||||
@endif
|
||||
@empty
|
||||
<p>There are no items yet. Include one with the form above.</p>
|
||||
@endforelse
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user