@extends('layouts.admin') @section('title', 'Manage Videos') @section('content')

Manage Videos

+ Add New Video
@if(session('success')) @endif
@forelse($videos as $video) @empty @endforelse
Thumbnail Title Type Class/Subject Topic Source Premium Featured Status Actions
@if($video->thumbnail_url) {{ $video->title }} @else
📹
@endif
{{ $video->title }} @if($video->description)
{{ Str::limit($video->description, 50) }} @endif
{{ $video->type }} @if($video->genre)
{{ $video->genre }} @endif
@if($video->classModel) {{ $video->classModel->name }} @endif @if($video->subject)
{{ $video->subject->name }} @endif
{{ $video->topic ?? '-' }} @if($video->player_code) 🎬 Player Code
Custom code set @elseif($video->video_hash) 🎬 Hash
{{ Str::limit($video->video_hash, 20) }} @elseif($video->video_file_path) 📁 File
{{ basename($video->video_file_path) }} @elseif($video->getRawVideoUrl()) 🔗 URL
{{ Str::limit($video->getRawVideoUrl(), 30) }} @else ❌ None @endif
@if($video->is_premium) 🔒 Premium @else 🆓 Free @endif @if($video->is_featured) ⭐ Featured @else - @endif @if($video->is_active) Active @else Inactive @endif
✏️ Edit
@csrf @method('DELETE')
@if($video->is_premium)
@csrf @method('PUT')
@else
@csrf @method('PUT')
@endif
No videos found. Create one.
@endsection