diff --git a/app/Http/Controllers/PhotoController.php b/app/Http/Controllers/PhotoController.php
index 7028742..c82e039 100644
--- a/app/Http/Controllers/PhotoController.php
+++ b/app/Http/Controllers/PhotoController.php
@@ -34,7 +34,10 @@ class PhotoController extends Controller
public function deletes($id=NULL)
{
- return view('catalog.deletereview',['return'=>url('/p/deletes'),'catalog'=>is_null($id) ? Photo::where('remove',1)->paginate(50) : Photo::where('id',$id)->paginate(1)]);
+ return view('catalog.deletereview',[
+ 'return'=>url('p/deletes'),
+ 'catalog'=>is_null($id) ? Photo::where('remove',1)->with('software.model.make')->paginate(10) : Photo::where('id',$id)->paginate(1)
+ ]);
}
public function deletesUpdate(Request $request)
@@ -53,7 +56,7 @@ class PhotoController extends Controller
public function duplicates($id=NULL)
{
return view('catalog.duplicatereview',[
- 'return'=>url('/p/duplicates'),
+ 'return'=>url('p/duplicates'),
'catalog'=>is_null($id) ? Photo::notRemove()->where('duplicate',1)->with('software.model.make')->paginate(10) : Photo::where('id',$id)->paginate(1)
]);
}
diff --git a/resources/views/catalog/deletereview.blade.php b/resources/views/catalog/deletereview.blade.php
index fb46284..bc2420d 100644
--- a/resources/views/catalog/deletereview.blade.php
+++ b/resources/views/catalog/deletereview.blade.php
@@ -5,89 +5,31 @@
@endsection
@section('contentheader_title')
- Deletes
+ Review Pending Delete Items
@endsection
@section('contentheader_description')
- #
+ {{ $catalog->count() }} to review
@endsection
@section('page_title')
Deletes
@endsection
-['id','idlink'],
- 'Signature'=>['signature','signature'],
- 'File Signature'=>['file_signature','file_signature'],
- 'Date Created'=>['date_created','datecreatedtext'],
- 'Filename'=>['filename','filename'],
- 'Filesize'=>['filesize','filesize'],
- 'Is Duplicate'=>['duplicate','duplicatetext'],
- 'Flagged'=>['flag','flagtext'],
- 'Delete'=>['remove','removecheckbox'],
-];?>
+@section('main-content')
+
+ @if ($catalog->count())
+
-@section('content')
+
@else
NONE!
diff --git a/resources/views/catalog/widgets/duplicates.blade.php b/resources/views/catalog/widgets/duplicates.blade.php
new file mode 100644
index 0000000..46f48c3
--- /dev/null
+++ b/resources/views/catalog/widgets/duplicates.blade.php
@@ -0,0 +1,34 @@
+
+
+
+ Remove |
+ Source |
+
+
+
+ @foreach ($catalog as $o)
+
+
+
+
+ @include('photo.widgets.thumbnail',['o'=>$o])
+ |
+
+ @if (! ($d=$o->duplicates()->get())->count())
+
+ No other duplicates found?
+ |
+ @continue
+
+ @else
+ @foreach($d as $item)
+
+
+ @include('photo.widgets.thumbnail',['o'=>$item])
+ |
+ @endforeach
+ @endif
+
+
+ @endforeach
+
\ No newline at end of file
diff --git a/resources/views/photo/view.blade.php b/resources/views/photo/view.blade.php
index 79feca9..e854110 100644
--- a/resources/views/photo/view.blade.php
+++ b/resources/views/photo/view.blade.php
@@ -5,10 +5,10 @@
@endsection
@section('contentheader_title')
- Photo #{{ $o->id }} @if($o->duplicate)
@endif @if($o->remove)
@endif
+ Photo #{{ $o->id }}
@endsection
@section('contentheader_description')
- #{{ $o->id }}
+ @if($o->duplicate)
@endif @if($o->remove)
@endif
@endsection
@section('page_title')
#{{ $o->id }}
diff --git a/resources/views/photo/widgets/thumbnail.blade.php b/resources/views/photo/widgets/thumbnail.blade.php
index 5d5b384..302e290 100644
--- a/resources/views/photo/widgets/thumbnail.blade.php
+++ b/resources/views/photo/widgets/thumbnail.blade.php
@@ -27,14 +27,12 @@
- {!! $o->getHtmlImageURL() !!}
-
-
+
{!! $o->getHtmlImageURL() !!}
PHOTOS
+PHOTOS
diff --git a/routes/web.php b/routes/web.php index dd75654..5e6a984 100644 --- a/routes/web.php +++ b/routes/web.php @@ -16,17 +16,18 @@ Route::get('/p/deletes/{id?}','PhotoController@deletes')->where('id','[0-9]+'); Route::get('/v/deletes/{id?}','VideoController@deletes')->where('id','[0-9]+'); Route::get('/p/duplicates/{id?}','PhotoController@duplicates')->where('id','[0-9]+'); Route::get('/v/duplicates/{id?}','VideoController@duplicates')->where('id','[0-9]+'); + Route::get('/p/info/{o}','PhotoController@info')->where('o','[0-9]+'); Route::get('/v/info/{id}','VideoController@info')->where('id','[0-9]+'); -Route::get('/p/thumbnail/{id}','PhotoController@thumbnail')->where('id','[0-9]+'); +Route::get('/p/thumbnail/{o}','PhotoController@thumbnail')->where('o','[0-9]+'); Route::get('/p/view/{o}','PhotoController@view')->where('o','[0-9]+'); Route::get('/v/view/{id}','VideoController@view')->where('id','[0-9]+'); -Route::post('/p/delete/{id}','PhotoController@delete')->where('id','[0-9]+'); +Route::post('/p/delete/{o}','PhotoController@delete')->where('o','[0-9]+'); Route::post('/v/delete/{id}','VideoController@delete')->where('id','[0-9]+'); Route::post('/p/duplicates','PhotoController@duplicatesUpdate'); Route::post('/v/duplicates','VideoController@duplicatesUpdate'); Route::post('/p/deletes','PhotoController@deletesUpdate'); Route::post('/v/deletes','VideoController@deletesUpdate'); -Route::post('/p/undelete/{id}','PhotoController@undelete')->where('id','[0-9]+'); +Route::post('/p/undelete/{o}','PhotoController@undelete')->where('o','[0-9]+'); Route::post('/v/undelete/{id}','VideoController@undelete')->where('id','[0-9]+'); \ No newline at end of file