2024-08-31 12:23:07 +00:00
|
|
|
<table class="table table-light">
|
2019-12-15 00:30:29 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="w-50">Remove</th>
|
|
|
|
<th class="w-50">Source</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
2024-08-31 12:23:07 +00:00
|
|
|
<!-- Remember what we have rendered -->
|
|
|
|
@php($rendered = collect())
|
2020-01-04 13:28:00 +00:00
|
|
|
|
2024-08-31 12:23:07 +00:00
|
|
|
<tbody>
|
2019-12-15 00:30:29 +00:00
|
|
|
@foreach ($catalog as $o)
|
2024-08-31 12:23:07 +00:00
|
|
|
@continue($rendered->search($o))
|
|
|
|
@php($rendered->push($o))
|
2020-01-04 13:28:00 +00:00
|
|
|
|
2019-12-15 00:30:29 +00:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<input type="hidden" name="items[]" value="{{ $o->id }}">
|
2024-09-18 03:55:09 +00:00
|
|
|
@include($o::config.'.widgets.thumbnail',['o'=>$o,'reference'=>$o->newInstance(),'css'=>'thumbnail'])
|
2019-12-15 00:30:29 +00:00
|
|
|
</td>
|
|
|
|
|
2020-01-04 13:28:00 +00:00
|
|
|
@if (! ($d=$o->myduplicates()->get())->count())
|
2019-12-15 00:30:29 +00:00
|
|
|
<td>
|
|
|
|
No other duplicates found?
|
|
|
|
</td>
|
|
|
|
@continue
|
|
|
|
|
|
|
|
@else
|
|
|
|
@foreach($d as $item)
|
2024-08-31 12:23:07 +00:00
|
|
|
@continue($rendered->search($item))
|
|
|
|
@php($rendered->push($item))
|
2019-12-15 00:30:29 +00:00
|
|
|
<td>
|
|
|
|
<input type="hidden" name="items[]" value="{{ $item->id }}">
|
2024-09-18 03:55:09 +00:00
|
|
|
@include($item::config.'.widgets.thumbnail',['o'=>$item,'reference'=>$o,'css'=>'thumbnail'])
|
2019-12-15 00:30:29 +00:00
|
|
|
</td>
|
|
|
|
@endforeach
|
|
|
|
@endif
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
2024-08-31 12:23:07 +00:00
|
|
|
</tbody>
|
2019-12-15 00:30:29 +00:00
|
|
|
</table>
|