photo/resources/views/catalog/duplicatereview.blade.php
2019-12-14 22:29:54 +11:00

74 lines
1.6 KiB
PHP

@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')
<div class="col-12">
@if ($catalog->count())
<span class="pagination justify-content-center">{{ $catalog->links() }}</span>
<form action="{{ $return }}" method="POST">
{{ csrf_field() }}
<table class="table table-striped table-sm table-hover table-bordered">
<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('photo.widgets.thumbnail',['o'=>$o])
</td>
@if (! ($d=$o->duplicates()->with('software.model.make')->get())->count())
<td>
No other duplicates found?
</td>
@continue
@else
@foreach($d as $item)
<td>
<input type="hidden" name="items[]" value="{{ $item->id }}">
@include('photo.widgets.thumbnail',['o'=>$item])
</td>
@endforeach
@endif
</tr>
</tbody>
@endforeach
<tfoot>
<tr>
<td colspan="2"><button class="btn btn-primary">Update</button></td>
</tr>
</tfoot>
</table>
{{--
<input type="hidden" name="pagenext" value="{{ $catalog->hasMorePages() ? $catalog->currentPage()+1 : NULL }}">
--}}
</form>
@else
NONE!
@endif
</div>
@endsection