Restyling / refactoring ITEM

This commit is contained in:
2018-09-16 16:18:49 -03:00
parent d407e5d109
commit a3a7821578
6 changed files with 125 additions and 76 deletions

View 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>