photo/resources/views/catalog/widgets/duplicates.blade.php

34 lines
661 B
PHP
Raw Normal View History

2019-12-15 11:30:29 +11:00
<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 }}">
2019-12-26 16:46:35 +11:00
@include($o->type.'.widgets.thumbnail',['o'=>$o])
2019-12-15 11:30:29 +11:00
</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 }}">
2019-12-26 16:46:35 +11:00
@include($item->type.'.widgets.thumbnail',['o'=>$item])
2019-12-15 11:30:29 +11:00
</td>
@endforeach
@endif
</tr>
</tbody>
@endforeach
</table>