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

97 lines
2.7 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')
2024-09-16 13:17:51 +00:00
Video - {{ $vo->id }}
2019-12-15 12:34:42 +00:00
@endsection
@section('contentheader_title')
2024-09-16 13:17:51 +00:00
Video #{{ $vo->id }}
2019-12-15 12:34:42 +00:00
@endsection
@section('contentheader_description')
@endsection
@section('page_title')
2024-09-16 13:17:51 +00:00
#{{ $vo->id }}
2019-12-15 12:34:42 +00:00
@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">
2024-09-16 13:17:51 +00:00
<x-video.thumbnail :id="$vo->id"/>
2016-07-04 06:00:33 +00:00
2024-09-16 13:17:51 +00:00
<div class="pagination justify-content-center">
<x-pagination.nav :o="$vo" pre="v"/>
</div>
2019-12-15 12:34:42 +00:00
</div>
2016-07-04 06:00:33 +00:00
2019-12-15 12:34:42 +00:00
<div class="col-8">
2024-09-16 13:17:51 +00:00
<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
@if($vo->flag)<button class="btn btn-sm btn-primary">FLAG</button>@endif
2024-09-16 13:17:51 +00:00
</div>
<div class="dl-horizontal">
<dt>Signature</dt><dd>{{ $vo->signature(TRUE) }}</dd>
<dt>Filename</dt><dd>{{ $vo->filename }}<dd>
2019-12-15 12:34:42 +00:00
2024-09-16 13:17:51 +00:00
@if ($vo->shouldMove())
<dt>NEW Filename</dt><dd>{{ $vo->file_name() }}<dd>
@endif
2019-12-15 12:34:42 +00:00
2024-09-16 13:17:51 +00:00
<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>
2019-12-15 12:34:42 +00:00
2024-09-16 13:17:51 +00:00
@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>
2019-12-15 12:34:42 +00:00
2024-09-16 13:17:51 +00:00
@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>
2019-12-15 12:34:42 +00:00
2024-09-16 13:17:51 +00:00
@if ($vo->remove)
<form action="{{ url('v/undelete',$vo->id) }}" method="POST">
<button class="btn btn-sm btn-primary">Undelete</button>
2019-12-15 12:34:42 +00:00
2024-09-16 13:17:51 +00:00
@else
<form action="{{ url('v/delete',$vo->id) }}" method="POST">
<button class="btn btn-sm btn-danger">Delete</button>
@endif
@csrf
</form>
</div>
</div>
2016-07-04 06:00:33 +00:00
</div>
</div>
2024-09-16 13:17:51 +00:00
@endsection