@extends('layouts.app') @section('title', 'Educational Videos - Primary Learning Tutor') @section('content')

📺 Educational Videos

Watch interactive videos, stories, and lessons to enhance your learning experience!

🔍 Filter Videos
Clear Filters
@if($featuredVideos->count() > 0)

⭐ Featured Videos

@foreach($featuredVideos as $video)
player_code || $video->video_hash) onclick="window.location.href='{{ route('videos.show', $video) }}'" @else onclick="openVideoModalPublic('{{ addslashes($video->title) }}', '{{ $video->video_url }}', '{{ $video->description ?? '' }}', {{ $video->is_premium && !auth()->check() ? 'true' : 'false' }})" @endif style="cursor: pointer;">
@if($video->thumbnail_url) {{ $video->title }} @else
📹
@endif
@if($video->duration) {{ $video->duration }} @endif @if($video->is_premium) 🔒 Premium @endif ⭐ Featured
{{ $video->title }}
{{ $video->type }} @if($video->genre) {{ $video->genre }} @endif @if($video->rating > 0) ⭐ {{ number_format($video->rating, 1) }} @endif
@if($video->classModel || $video->subject)

@if($video->classModel){{ $video->classModel->name }}@endif @if($video->subject) • {{ $video->subject->name }}@endif @if($video->topic) • {{ $video->topic }}@endif

@endif
@endforeach
@endif

All Videos

@if($videos->count() > 0)
@foreach($videos as $video)
player_code || $video->video_hash) onclick="window.location.href='{{ route('videos.show', $video) }}'" @else onclick="openVideoModalPublic('{{ addslashes($video->title) }}', '{{ $video->video_url }}', '{{ $video->description ?? '' }}', {{ $video->is_premium && !auth()->check() ? 'true' : 'false' }})" @endif style="cursor: pointer;">
@if($video->thumbnail_url) {{ $video->title }} @else
📹
@endif
@if($video->duration) {{ $video->duration }} @endif @if($video->is_premium) 🔒 Premium @endif
{{ $video->title }}
{{ $video->type }} @if($video->genre) {{ $video->genre }} @endif @if($video->rating > 0) ⭐ {{ number_format($video->rating, 1) }} @endif
@if($video->classModel || $video->subject)

@if($video->classModel){{ $video->classModel->name }}@endif @if($video->subject) • {{ $video->subject->name }}@endif @if($video->topic) • {{ $video->topic }}@endif

@endif
@endforeach
{{ $videos->links() }}
@else
📺

No videos found

Try adjusting your filters or check back later for new videos!

View All Videos
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush