2019-11-09 02:52:04 +00:00
|
|
|
@extends('adminlte::layouts.app')
|
2016-06-22 05:49:20 +00:00
|
|
|
|
2019-11-23 01:51:30 +00:00
|
|
|
@section('htmlheader_title')
|
|
|
|
Photo - {{ $o->id }}
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('contentheader_title')
|
2019-12-15 00:30:29 +00:00
|
|
|
Photo #{{ $o->id }}
|
2019-11-23 01:51:30 +00:00
|
|
|
@endsection
|
|
|
|
@section('contentheader_description')
|
2019-12-15 12:34:42 +00:00
|
|
|
@if(! $o->scanned)<button class="btn btn-sm btn-info">TO SCAN</button>@endif
|
|
|
|
@if($o->duplicate)<button class="btn btn-sm btn-warning">DUPLICATE</button>@endif
|
|
|
|
@if($o->remove)<button class="btn btn-sm btn-danger">PENDING DELETE</button>@endif
|
2019-11-23 01:51:30 +00:00
|
|
|
@endsection
|
|
|
|
@section('page_title')
|
|
|
|
#{{ $o->id }}
|
|
|
|
@endsection
|
|
|
|
|
2019-11-09 02:52:04 +00:00
|
|
|
@section('main-content')
|
2016-06-29 10:49:02 +00:00
|
|
|
<div class="row">
|
2019-12-14 11:29:54 +00:00
|
|
|
<div class="col-3">
|
2019-12-15 12:34:42 +00:00
|
|
|
<a href="{{ url('p/view',$o->id) }}">{!! $o->getHtmlImageURL() !!}</a>
|
2016-06-22 05:49:20 +00:00
|
|
|
|
2019-12-14 11:29:54 +00:00
|
|
|
<span class="pagination justify-content-center">
|
|
|
|
<nav>
|
|
|
|
<ul class="pagination">
|
|
|
|
<li class="page-item @if(! $x=$o->previous())disabled @endif" aria-disabled="@if(! $x)true @else false @endif" aria-label="« Previous">
|
|
|
|
<a class="page-link" href="{{ $x ? url('p/info',$x->id) : '#' }}"><<</a>
|
|
|
|
</li>
|
2016-06-29 10:49:02 +00:00
|
|
|
|
2019-12-14 11:29:54 +00:00
|
|
|
<li class="page-item active" aria-current="page"><span class="page-link">{{ $o->id }}</span></li>
|
2016-06-29 10:49:02 +00:00
|
|
|
|
2019-12-14 11:29:54 +00:00
|
|
|
<li class="page-item @if(! $x=$o->next())disabled @endif" aria-disabled="@if(! $x)true @else false @endif" aria-label="« Previous">
|
|
|
|
<a class="page-link" href="{{ $x ? url('p/info',$x->id) : '#' }}">>></a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-9">
|
|
|
|
<div class="dl-horizontal">
|
|
|
|
<dt>Signature</dt><dd>{{ $o->signature(TRUE) }}</dd>
|
|
|
|
<dt>Filename</dt><dd>{{ $o->file_path(TRUE) }}<dd>
|
|
|
|
|
|
|
|
@if ($o->shouldMove())
|
|
|
|
<dt>NEW Filename</dt><dd>{{ $o->file_path(TRUE,TRUE) }}<dd>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<dt>Size</dt><dd>{{ $o->file_size() }}<dd>
|
|
|
|
<dt>Dimensions</dt><dd>{{ $o->dimensions }} @ {{ $o->orientation }}<dd>
|
|
|
|
<hr>
|
|
|
|
<dt>Date Taken</dt><dd>{{ $o->date_taken() }}<dd>
|
|
|
|
<dt>Camera</dt><dd>{{ $o->device() }}<dd>
|
|
|
|
<hr>
|
2019-12-15 12:34:42 +00:00
|
|
|
<dt>Location</dt>
|
|
|
|
<dd>
|
|
|
|
@if($o->gps() == 'UNKNOWN')
|
|
|
|
UNKNOWN
|
|
|
|
@else
|
|
|
|
<div id="map" style="width: 400px; height: 300px"></div>
|
|
|
|
@endif
|
2019-12-14 11:29:54 +00:00
|
|
|
</dd>
|
2019-12-15 12:34:42 +00:00
|
|
|
<hr>
|
2019-12-14 11:29:54 +00:00
|
|
|
<dt>Exif Data</dt><dd>
|
|
|
|
<table>
|
|
|
|
@foreach ($o->properties() as $k => $v)
|
|
|
|
<tr><th>{{ $k }}<><td>{{ $v }}<td></tr>
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
</dd>
|
2019-12-15 12:34:42 +00:00
|
|
|
<hr>
|
|
|
|
@if($x = $o->duplicates()->get())
|
|
|
|
<dt>Duplicates</dt>
|
|
|
|
<dd>
|
|
|
|
@foreach($x as $oo)
|
|
|
|
@if(! $loop->first)| @endif
|
|
|
|
{!! $oo->id_link !!}
|
|
|
|
@endforeach
|
|
|
|
</dd>
|
|
|
|
@endif
|
2016-06-29 10:49:02 +00:00
|
|
|
</div>
|
2019-12-14 11:29:54 +00:00
|
|
|
|
|
|
|
@if ($o->remove)
|
|
|
|
<form action="{{ url('p/undelete',$o->id) }}" method="POST">
|
|
|
|
<button class="btn btn-primary">Undelete</button>
|
2019-12-15 12:34:42 +00:00
|
|
|
|
2019-12-14 11:29:54 +00:00
|
|
|
@else
|
|
|
|
<form action="{{ url('p/delete',$o->id) }}" method="POST">
|
|
|
|
<button class="btn btn-danger">Delete</button>
|
2019-12-15 12:34:42 +00:00
|
|
|
|
2019-12-14 11:29:54 +00:00
|
|
|
@endif
|
2019-12-15 12:34:42 +00:00
|
|
|
{{ csrf_field() }}
|
2019-12-14 11:29:54 +00:00
|
|
|
</form>
|
2016-06-29 10:49:02 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-12-14 11:29:54 +00:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('page-scripts')
|
|
|
|
@if($o->gps() !== 'UNKNOWN')
|
|
|
|
@js('//maps.google.com/maps/api/js?sensor=false')
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
var myLatLng = {lat: {{ $o->gps_lat }}, lng: {{ $o->gps_lon }}};
|
|
|
|
var map = new google.maps.Map(document.getElementById("map"), {
|
|
|
|
zoom: 16,
|
|
|
|
center: myLatLng,
|
|
|
|
mapTypeId: google.maps.MapTypeId.ROADMAP
|
|
|
|
});
|
|
|
|
var marker = new google.maps.Marker({
|
|
|
|
map: map,
|
|
|
|
position: myLatLng,
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
@endif
|
|
|
|
@append
|