@php
// Remember what we have rendered
$rendered = collect();
@endphp
@foreach ($catalog as $o)
@if($rendered->search($o->id)) @continue @endif
@php($rendered->push($o->id))
@include($o->type.'.widgets.thumbnail',['o'=>$o])
@if (! ($d=$o->myduplicates()->get())->count())
No other duplicates found?
@continue
@else
@foreach($d as $item)
@if($rendered->search($item->id)) @continue @endif
@php($rendered->push($item->id))