photo/resources/views/catalog/widgets/duplicates.blade.php
2019-12-26 16:46:35 +11:00

34 lines
661 B
PHP

<table class="table">
<thead>
<tr>
<th class="w-50">Remove</th>
<th class="w-50">Source</th>
</tr>
</thead>
@foreach ($catalog as $o)
<tbody>
<tr>
<td>
<input type="hidden" name="items[]" value="{{ $o->id }}">
@include($o->type.'.widgets.thumbnail',['o'=>$o])
</td>
@if (! ($d=$o->duplicates()->get())->count())
<td>
No other duplicates found?
</td>
@continue
@else
@foreach($d as $item)
<td>
<input type="hidden" name="items[]" value="{{ $item->id }}">
@include($item->type.'.widgets.thumbnail',['o'=>$item])
</td>
@endforeach
@endif
</tr>
</tbody>
@endforeach
</table>