photo/resources/views/catalog/duplicatereview.blade.php

74 lines
1.6 KiB
PHP
Raw Normal View History

2019-11-09 02:52:04 +00:00
@extends('adminlte::layouts.app')
2019-11-08 10:43:36 +00:00
2019-11-23 01:51:30 +00:00
@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
2019-11-08 10:43:36 +00:00
2019-11-09 02:52:04 +00:00
@section('main-content')
2019-11-23 01:51:30 +00:00
<div class="col-12">
@if ($catalog->count())
<span class="pagination justify-content-center">{{ $catalog->links() }}</span>
<form action="{{ $return }}" method="POST">
{{ csrf_field() }}
2019-11-08 10:43:36 +00:00
2019-11-23 01:51:30 +00:00
<table class="table table-striped table-sm table-hover table-bordered">
<thead>
<tr>
<th class="w-50">Remove</th>
2019-12-14 11:29:54 +00:00
<th class="w-50">Source</th>
2019-11-23 01:51:30 +00:00
</tr>
</thead>
2019-11-08 10:43:36 +00:00
2019-11-23 01:51:30 +00:00
@foreach ($catalog as $o)
2019-12-14 11:29:54 +00:00
<tbody>
<tr>
2019-11-23 01:51:30 +00:00
<td>
2019-12-14 11:29:54 +00:00
<input type="hidden" name="items[]" value="{{ $o->id }}">
@include('photo.widgets.thumbnail',['o'=>$o])
2019-11-23 01:51:30 +00:00
</td>
2019-12-14 11:29:54 +00:00
@if (! ($d=$o->duplicates()->with('software.model.make')->get())->count())
2019-11-23 01:51:30 +00:00
<td>
2019-12-14 11:29:54 +00:00
No other duplicates found?
2019-11-23 01:51:30 +00:00
</td>
2019-12-14 11:29:54 +00:00
@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>
2019-11-23 01:51:30 +00:00
@endforeach
2019-12-14 11:29:54 +00:00
<tfoot>
<tr>
<td colspan="2"><button class="btn btn-primary">Update</button></td>
</tr>
</tfoot>
2019-11-23 01:51:30 +00:00
</table>
2019-12-14 11:29:54 +00:00
{{--
2019-11-23 01:51:30 +00:00
<input type="hidden" name="pagenext" value="{{ $catalog->hasMorePages() ? $catalog->currentPage()+1 : NULL }}">
2019-12-14 11:29:54 +00:00
--}}
2019-11-23 01:51:30 +00:00
</form>
@else
NONE!
@endif
2019-11-08 10:43:36 +00:00
</div>
2019-11-23 01:51:30 +00:00
@endsection