photo/resources/views/video/view.blade.php

115 lines
3.4 KiB
PHP
Raw Normal View History

2019-12-15 12:34:42 +00:00
@extends('adminlte::layouts.app')
2016-07-04 06:00:33 +00:00
2019-12-15 12:34:42 +00:00
@section('htmlheader_title')
Video - {{ $o->id }}
@endsection
@section('contentheader_title')
Video #{{ $o->id }}
@endsection
@section('contentheader_description')
@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->ignore_duplicate)<button class="btn btn-sm btn-secondary">DUPLICATE IGNORE</button>@endif
2019-12-15 12:34:42 +00:00
@if($o->remove)<button class="btn btn-sm btn-danger">PENDING DELETE</button>@endif
@endsection
@section('page_title')
#{{ $o->id }}
@endsection
@section('main-content')
2016-07-04 06:00:33 +00:00
<div class="row">
2019-12-15 12:34:42 +00:00
<div class="col-4">
<a href="{{ url('p/view',$o->id) }}">{!! $o->getHtmlImageURL() !!}</a>
2016-07-04 06:00:33 +00:00
2019-12-15 12:34:42 +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="&laquo; Previous">
2019-12-21 11:57:34 +00:00
<a class="page-link" href="{{ $x ? url('v/info',$x->id) : '#' }}">&lt;&lt;</a>
2019-12-15 12:34:42 +00:00
</li>
2016-07-04 06:00:33 +00:00
2019-12-15 12:34:42 +00:00
<li class="page-item active" aria-current="page"><span class="page-link">{{ $o->id }}</span></li>
<li class="page-item @if(! $x=$o->next())disabled @endif" aria-disabled="@if(! $x)true @else false @endif" aria-label="&laquo; Previous">
2019-12-21 11:57:34 +00:00
<a class="page-link" href="{{ $x ? url('v/info',$x->id) : '#' }}">&gt;&gt;</a>
2019-12-15 12:34:42 +00:00
</li>
</ul>
</nav>
</span>
</div>
2016-07-04 06:00:33 +00:00
2019-12-15 12:34:42 +00:00
<div class="col-8">
<div class="dl-horizontal">
<dt>Signature</dt><dd>{{ $o->signature(TRUE) }}</dd>
<dt>Filename</dt><dd>{{ $o->filename }}<dd>
2019-12-15 12:34:42 +00:00
@if ($o->shouldMove())
<dt>NEW Filename</dt><dd>{{ $o->file_name() }}<dd>
2019-12-15 12:34:42 +00:00
@endif
<dt>Size</dt><dd>{{ $o->file_size() }}<dd>
<dt>Dimensions</dt><dd>{{ $o->dimensions }}<dd>
<dt>Length</dt><dd>{{ $o->length }}<dd>
<dt>Type</dt><dd>{{ $o->type }}<dd>
<dt>Codec</dt><dd>{{ $o->codec }}<dd>
<dt>Audio Channels</dt><dd>{{ $o->audiochannels }}<dd>
<dt>Channels Mode</dt><dd>{{ $o->channelmode }}<dd>
<dt>Sample Rate</dt><dd>{{ $o->samplerate }}<dd>
<hr>
<dt>Date Taken</dt><dd>{{ $o->date_taken() }}<dd>
2019-12-26 04:56:31 +00:00
<dt>Camera</dt><dd>{{ $o->device() }}<dd>
2019-12-15 12:34:42 +00:00
<dt>Identifier</dt><dd>{{ $o->identifier }}<dd>
<hr>
<dt>Location</dt>
<dd>
@if($o->gps() == 'UNKNOWN')
UNKNOWN
@else
<div id="map" style="width: 400px; height: 300px"></div>
@endif
</dd>
@if(($x=$o->myduplicates()->get())->count())
2019-12-15 12:34:42 +00:00
<dt>Duplicates</dt>
<dd>
@foreach($x as $oo)
@if(! $loop->first)| @endif
{!! $oo->id_link !!}
@endforeach
</dd>
@endif
2016-07-04 06:00:33 +00:00
</div>
2019-12-15 12:34:42 +00:00
@if ($o->remove)
<form action="{{ url('v/undelete',$o->id) }}" method="POST">
<button class="btn btn-primary">Undelete</button>
@else
<form action="{{ url('v/delete',$o->id) }}" method="POST">
<button class="btn btn-danger">Delete</button>
@endif
{{ csrf_field() }}
</form>
2016-07-04 06:00:33 +00:00
</div>
</div>
@endsection
2019-12-15 12:34:42 +00:00
@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