@extends('admin.layout') @section('title', 'Video Management') @section('page_title', 'Video Management') @section('content') @if(session('success')) @endif @if(session('error')) @endif
Clear
All Videos ({{ $videos->total() }})
@forelse($videos as $video) @empty @endforelse
Video Owner Status Visibility Type Views Likes Uploaded Actions
@if($video->thumbnail) {{ $video->title }} @else
@endif
{{ $video->title }}
{{ Str::limit($video->description, 50) }}
{{ $video->user->name }} @switch($video->status) @case('ready') Ready @break @case('processing') Processing @break @case('pending') Pending @break @case('failed') Failed @break @endswitch @switch($video->visibility) @case('public') Public @break @case('unlisted') Unlisted @break @case('private') Private @break @endswitch {{ $video->type }} {{ number_format(\DB::table('video_views')->where('video_id', $video->id)->count()) }} {{ number_format(\DB::table('video_likes')->where('video_id', $video->id)->count()) }} {{ $video->created_at->format('M d, Y') }}
No videos found
{{ $videos->links() }}
@endsection @section('scripts') @endsection