@extends('admin.layout') @section('title', 'Edit Video') @section('page_title', 'Edit Video') @section('content') @if(session('success')) @endif @if(session('error')) @endif
Edit Video
Back to Videos
@csrf @method('PUT')
@error('title')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
@error('visibility')
{{ $message }}
@enderror
@error('type')
{{ $message }}
@enderror
@error('status')
{{ $message }}
@enderror
Cancel
Video Info
@if($video->thumbnail) {{ $video->title }} @else
@endif
Video ID #{{ $video->id }}
Uploaded {{ $video->created_at->format('M d, Y') }}
File Size {{ number_format($video->size / 1024 / 1024, 2) }} MB
Duration {{ $video->duration ? gmdate('H:i:s', $video->duration) : 'N/A' }}
Orientation {{ $video->orientation }}
Dimensions {{ $video->width ?? 'N/A' }} x {{ $video->height ?? 'N/A' }}
Views {{ number_format(\DB::table('video_views')->where('video_id', $video->id)->count()) }}
Likes {{ number_format(\DB::table('video_likes')->where('video_id', $video->id)->count()) }}

@endsection