@extends('adminlte::layouts.app') @section('htmlheader_title') Duplicates @endsection @section('contentheader_title') Review Duplicate Items @endsection @section('contentheader_description') {{ $catalog->count() }} to review @endsection @section('page_title') Duplicates @endsection @section('main-content')
@if ($catalog->count()) {{ $catalog->links() }}
{{ csrf_field() }} @php $c=0; @endphp @foreach ($catalog as $o) @php $d=$o->list_duplicates(TRUE); $src=[]; @endphp @if ($d->count() == 1) @continue @else @foreach($d as $item) @if($loop->first) @continue @endif @php($diff=collect($src)->diffAssoc($item)) @endforeach @endif @endforeach
Source Remove
@if($d->where('duplicate',null)->count() > 1) More than 1 source? @elseif($d->count()) @php($src=$d->first()) @include('photo.widgets.thumbnail',['o'=>$src]) @endif No other duplicates found? XX @include('photo.widgets.thumbnail',['o'=>$src])
@else NONE! @endif
@endsection