@extends('layouts.app')
@section('title', $search ? "Search: {$search}" : 'All Videos')
@section('content')
{{-- Page Header --}}
@if($search)
Search Results
@else
All Videos
@endif
@if($search)
@endif
@if(isset($month) && $month)
@endif
{{-- Search Bar (prominent) --}}
{{-- Category Filter Pills --}}
@if(isset($categories) && $categories->isNotEmpty())
@endif
{{-- Active Category Banner --}}
@if(isset($activeCategory) && $activeCategory)
@endif
{{-- Filter & Sort Controls --}}
{{-- Month Filter --}}
@if(isset($months) && $months->isNotEmpty())
@endif
{{-- Sort Dropdown --}}
{{-- Play All & Shuffle Buttons --}}
@if(isset($allMatchingVideos) && $allMatchingVideos->isNotEmpty())
@endif
{{-- Results Count (pushed right) --}}
{{ $videos->total() }} {{ Str::plural('video', $videos->total()) }} found
{{-- Inline Player (hidden by default) --}}
{{-- Video Grid --}}
@if($videos->isEmpty())
@if($search)
No videos found for "{{ $search }}"
Try a different search term or browse all videos.
Browse All Videos
@else
No videos available
Check back soon for new content!
@endif
@else
{{-- Pagination --}}
@if($videos->hasPages())
{{ $videos->appends(request()->query())->links() }}
@endif
@endif
@endsection
@push('scripts')
@endpush
@push('styles')
@endpush