2016-06-22 05:49:20 +00:00
|
|
|
@extends('layouts.app')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="container">
|
2016-06-29 10:49:02 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-10 col-md-offset-1">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
Photo {{ $photo->id }}<?php if ($photo->remove) : ?> - <strong>PENDING DELETE</strong><?php endif?>
|
|
|
|
</div>
|
2016-06-22 05:49:20 +00:00
|
|
|
|
2016-06-29 10:49:02 +00:00
|
|
|
<div class="panel-body">
|
|
|
|
<div class="col-md-2">
|
|
|
|
<a href="{{ url('/view/'.$photo->id) }}"><img src="{{ url('/thumbnail/'.$photo->id) }}" width="200px"></a>
|
|
|
|
<div class="text-center">
|
|
|
|
<ul class="pagination">
|
|
|
|
<li <?php if (! $x = $photo->previous()) : ?>class="disabled"<?php endif ?>><a href="{{ $x ? url('/info/'.$x->id) : '#' }}"><<</a></li>
|
|
|
|
<li <?php if (! $x = $photo->next()) : ?>class="disabled"<?php endif ?>><a href="{{ $x ? url('/info/'.$x->id) : '#' }}">>></a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="col-md-10">
|
|
|
|
<div class="dl-horizontal">
|
|
|
|
<dt>Signature</dt><dd>{{ $photo->signature(TRUE) }}</dd>
|
|
|
|
<dt>Filename</dt><dd>{{ $photo->file_path(TRUE) }}<dd>
|
|
|
|
<?php if ($photo->shouldMove()) : ?>
|
|
|
|
<dt>NEW Filename</dt><dd>{{ $photo->file_path(TRUE,TRUE) }}<dd>
|
|
|
|
<?php endif ?>
|
|
|
|
<dt>Size</dt><dd>{{ $photo->size() }}<dd>
|
2016-06-29 23:32:57 +00:00
|
|
|
<dt>Dimensions</dt><dd>{{ $photo->width }} x {{ $photo->height }} @ {{ $photo->orientation }}<dd>
|
2016-06-29 10:49:02 +00:00
|
|
|
<br/>
|
|
|
|
<dt>Date Taken</dt><dd>{{ $photo->date_taken() }}<dd>
|
|
|
|
<dt>Camera</dt><dd>{{ $photo->make }}<dd>
|
|
|
|
<dt>Model</dt><dd>{{ $photo->model }}<dd>
|
|
|
|
<br/>
|
|
|
|
<dt>Location</dt><dd>
|
|
|
|
<?php if ($photo->gps() == 'UNKNOWN') : ?>
|
|
|
|
UNKNOWN
|
|
|
|
<?php else : ?>
|
|
|
|
<div id="map" style="width: 400px; height: 300px"></div>
|
2016-06-22 06:51:31 +00:00
|
|
|
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
|
|
|
|
<script type="text/javascript">
|
2016-06-29 10:49:02 +00:00
|
|
|
var myLatLng = {lat: {{ $photo->gps_lat }}, lng: {{ $photo->gps_lon }}};
|
2016-06-22 06:51:31 +00:00
|
|
|
var map = new google.maps.Map(document.getElementById("map"), {
|
2016-06-29 10:49:02 +00:00
|
|
|
zoom: 16,
|
|
|
|
center: myLatLng,
|
|
|
|
mapTypeId: google.maps.MapTypeId.ROADMAP
|
2016-06-22 06:51:31 +00:00
|
|
|
});
|
|
|
|
var marker = new google.maps.Marker({
|
2016-06-29 10:49:02 +00:00
|
|
|
map: map,
|
|
|
|
position: myLatLng,
|
2016-06-22 06:51:31 +00:00
|
|
|
});
|
|
|
|
</script>
|
2016-06-29 10:49:02 +00:00
|
|
|
<?php endif ?>
|
|
|
|
</dd>
|
|
|
|
<br/>
|
|
|
|
<dt>Exif Data</dt><dd>
|
|
|
|
<table>
|
2016-06-29 23:32:57 +00:00
|
|
|
<?php foreach ($photo->info() as $k => $v) : ?>
|
2016-06-29 10:49:02 +00:00
|
|
|
<tr><th>{{ $k }}<><td>{{ $v }}<td></tr>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</table>
|
|
|
|
</dd>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php if ($photo->remove) : ?>
|
|
|
|
<form action="{{ url('/undelete/'.$photo->id) }}" method="POST">
|
|
|
|
<button class="btn btn-default">Undelete</button>
|
|
|
|
<?php else : ?>
|
|
|
|
<form action="{{ url('/delete/'.$photo->id) }}" method="POST">
|
|
|
|
<button class="btn btn-default">Delete</button>
|
|
|
|
<?php endif ?>
|
|
|
|
{{ csrf_field() }}
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-06-22 05:49:20 +00:00
|
|
|
</div>
|
|
|
|
@endsection
|