@extends('layouts.app') @section('content')
@forelse ($products as $items)
{{$items->first()->product->name}}
@forelse ($items->sortBy('name', SORT_NATURAL | SORT_FLAG_CASE) as $item) @if (!$loop->first)
@endif
@if ($item->used_by) @include('home.usedItem') @else @include('home.unusedItem') @endif
@empty

There are no items shared with you yet. Share an item!

@endforelse
@empty @endforelse
@endsection