@extends('layouts.app') @section('title', isset($query) ? 'Search: ' . $query . ' | TAKEONE' : 'Video Gallery | TAKEONE') @section('extra_styles') @endsection @section('content') @isset($query)

Search results for "{{ $query }}"

{{ $videos->total() }} videos found

@endif @if($videos->isEmpty())
@isset($query)

No results found

Try different keywords or browse all videos.

@else

No videos yet

Be the first to upload a video!

@endisset @auth Upload Video @else Login to Upload @endauth
@else
@foreach($videos as $video)
@if($video->thumbnail) {{ $video->title }} @else {{ $video->title }} @endif @if($video->duration) {{ gmdate('i:s', $video->duration) }} @endif
@if($video->user && $video->user->avatar_url) {{ $video->user->name }} @endif

{{ $video->title }}

{{ $video->user->name ?? 'Unknown' }}
{{ number_format($video->size / 1024 / 1024, 0) }} MB • {{ $video->created_at->diffForHumans() }}
@endforeach
{{ $videos->links() }}
@endif @include('layouts.partials.share-modal') @include('layouts.partials.upload-modal') @endsection @section('scripts') @endsection