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

96 lines
2.7 KiB
PHP

@extends('adminlte::layouts.app')
@section('htmlheader_title')
Video - {{ $vo->id }}
@endsection
@section('contentheader_title')
Video #{{ $vo->id }}
@endsection
@section('contentheader_description')
@endsection
@section('page_title')
#{{ $vo->id }}
@endsection
@section('main-content')
<div class="row">
<div class="col-4">
<x-video.thumbnail :id="$vo->id"/>
<div class="pagination justify-content-center">
<x-pagination.nav :o="$vo" pre="v"/>
</div>
</div>
<div class="col-8">
<div class="card">
<div class="card-body">
<div class="float-right">
@if(! $vo->scanned)<button class="btn btn-sm btn-info">TO SCAN</button>@endif
@if($vo->duplicate)<button class="btn btn-sm btn-warning">DUPLICATE</button>@endif
@if($vo->ignore_duplicate)<button class="btn btn-sm btn-secondary">DUPLICATE IGNORE</button>@endif
@if($vo->remove)<button class="btn btn-sm btn-danger">PENDING DELETE</button>@endif
</div>
<div class="dl-horizontal">
<dt>Signature</dt><dd>{{ $vo->signature(TRUE) }}</dd>
<dt>Filename</dt><dd>{{ $vo->filename }}<dd>
@if ($vo->shouldMove())
<dt>NEW Filename</dt><dd>{{ $vo->file_name() }}<dd>
@endif
<dt>Size</dt><dd>{{ number_format($vo->file_size) }}<dd>
<dt>Date Taken</dt><dd>{{ $vo->created?->format('Y-m-d H:i:s') }}<dd>
@if($vo->scanned)
<dt>Dimensions</dt><dd>{{ $vo->dimensions }}<dd>
<dt>Length</dt><dd>{{ $vo->length }}<dd>
<dt>Type</dt><dd>{{ $vo->type }}<dd>
<hr>
<dt>Audio Codec</dt><dd>{{ $vo->audio_codec }}<dd>
<dt>Audio Channels</dt><dd>{{ $vo->audio_channels }}<dd>
<dt>Sample Rate</dt><dd>{{ $vo->audio_samplerate }}<dd>
<hr>
<dt>Video Codec</dt><dd>{{ $vo->video_codec }}<dd>
<dt>Video Framerate</dt><dd>{{ $vo->video_framerate }}<dd>
<dt>Camera</dt><dd>{{ $vo->device }}<dd>
<hr>
<dt>Location</dt>
<dd>
@if(! $vo->gps)
UNKNOWN
@else
<x-map :o="$vo"/>
@endif
</dd>
@if(($x=$vo->myduplicates()->get())->count())
<dt>Duplicates</dt>
<dd>
@foreach($x as $oo)
@if(! $loop->first)| @endif
{!! $oo->id_link !!}
@endforeach
</dd>
@endif
@endif
</div>
@if ($vo->remove)
<form action="{{ url('v/undelete',$vo->id) }}" method="POST">
<button class="btn btn-sm btn-primary">Undelete</button>
@else
<form action="{{ url('v/delete',$vo->id) }}" method="POST">
<button class="btn btn-sm btn-danger">Delete</button>
@endif
@csrf
</form>
</div>
</div>
</div>
</div>
@endsection