@php($rendered = collect()) @foreach ($catalog as $o) @continue($rendered->contains($o->id)) @php($rendered->push($o->id)) @if (! ($d=$o->myduplicates()->get())->count()) @continue @else @foreach($d as $item) @continue($rendered->contains($item->id)) @php($rendered->push($item->id)) @endforeach @endif @endforeach
Remove Source
@include($o::config.'.widgets.thumbnail',['o'=>$o,'reference'=>$o->newInstance(),'css'=>'thumbnail']) No other duplicates found? @include($item::config.'.widgets.thumbnail',['o'=>$item,'reference'=>$o,'css'=>'thumbnail'])