@extends('layouts.frontend') @php $site_name = App\Models\WebSetting::where('key', 'site_name')->value('value') ?? 'XTube'; $page_title = 'Search Results' . (isset($query) && $query ? ' - ' . $query : '') . ' - ' . $site_name; @endphp @section('title', $page_title) @section('content')

Search Results

@if (isset($query) && $query)

Found {{ $videos->total() }} result(s) for "{{ $query }}"

@endif
@include('components.banner', [ 'type' => 'banner_rectangle_small', 'class' => 'mb-6 flex w-full justify-center justify-center', ]) @if ($videos->count() > 0)
@foreach ($videos as $video)
@if ($video->thumbnail) {{ $video->title }} @else
@endif
{{ $video->formatted_duration }}

{{ $video->title }}

{{ $video->formatted_views }} views {{ $video->published_at->diffForHumans() }}
{{ $video->category->name }}
@endforeach
{{ $videos->appends(['q' => $query])->links() }}
@else

No results found

@if (isset($query) && $query) We couldn't find any videos matching "{{ $query }}" @else Please enter a search query @endif

@endif @include('components.banner', ['type' => 'banner_native_1', 'class' => 'mb-6 flex justify-center']) @endsection