@extends('layouts.app') @section('content') 'id', 'Thumbnail'=>'thumbnail', 'Signature'=>'signature', 'Date Taken'=>'datetaken', 'File Created'=>'created', 'File Modified'=>'modified', 'Filename'=>'filepath', 'Filesize'=>'filesize', 'Width'=>'width', 'Height'=>'height', 'Orientation'=>'orientation', 'Make'=>'make', 'Model'=>'model', 'Exif Diff'=>'exif', ]; $form = [ 'duplicate', 'flag', 'remove', ]; function changed($k,$v,$l=0) { static $changed = []; if (! isset($changed[$l][$k])) $changed[$l][$k] = $v; return $changed[$l][$k] === $v; } ?> @foreach ($photos as $photo) list_duplicate(TRUE); ?>
Duplicate Photo {{ $photo->id }}
{{ $photos->links() }}
@foreach ($data as $k=>$v) @foreach ($duplicates as $id) where('id',$id)->first(); switch ($v) : case 'id': $x=$id; $y=sprintf('%s',url('/info/'.$o->id),$o->id); break; case 'thumbnail': $x=md5($o->thumbnail); $y=sprintf('',url('/view/'.$o->id),url('/thumbnail/'.$o->id)); break; case 'signature': $x=$y=$o->signature(TRUE); break; case 'datetaken': $x=$y=$o->date_taken(); break; case 'created': $x=$y=$o->file_date('c',TRUE); break; case 'modified': $x=$y=$o->file_date('m',TRUE); break; case 'filepath': $x=$y=$o->file_path(TRUE); break; case 'filesize': $x=$y=$o->file_size(); break; case 'width': $x=$y=$o->width; break; case 'height': $x=$y=$o->height; break; case 'orientation': $x=$y=$o->orientation; break; case 'make': $x=$y=$o->make; break; case 'model': $x=$y=$o->model; break; case 'exif': $y='
{{ $k }}
'; foreach ($o->properties() as $a => $b) $y.=sprintf('',(changed($a,$b,1) ? '' : 'warning'),$a,$b); $y.='
%s<>%s
';$x=md5($y); break; endswitch ?> @endforeach {{-- photo --}} @endforeach {{-- data --}} @foreach ($form as $v) {{ $v }} @foreach ($duplicates as $id) where('id',$id)->first(); ?> $v==1 ? 'checked="checked"' : '' }}> @endforeach {{-- photo --}} @endforeach {{-- form --}} @foreach ($duplicates as $id) @endforeach {{-- photo --}} {{ csrf_field() }}
@endforeach @endsection