@extends('layouts.app') @section('content')
@if(Session::has('success_message')) @endif @if(Session::has('error_message')) @endif @php $video_id = $video->id; @endphp
@if ($video->provider != 'tiktok') @if(strpos(strtolower($video->embed_url), 'youtube.com')) @include('video.youtube') @else
@endif @else {{-- Tiktok Embed Video --}} {!! $video->embed_url !!} {{-- {!! $oembed_data->html !!} --}} @endif
{!! __($video->name) !!}
{!! __($video->category->name) !!}
{{ $video->user->name }}
{{ $video->click_counter ?? 0 }}
{{ $video->created_at->diffForHumans() }}
{{--
{!! __($video->category->name) !!}
--}} {{-- Ha nem a felhasználóé a videó, akkor megjelenítjük a szavazást || Ha a felhasználóé a videó, és aktív a hozzátartozó verseny akkor megjelenítjük a szavazást, egyébként nem. --}} @if (!isset($owner_video) || (isset($owner_video) && ($owner_video == false || ($owner_video == true && $video->competition->status == 'active'))))
{{ $video->get_rank($video->id)['rank'] ?? $video->rank }}
{{-- Counter --}}
@include('video/counter_small')
{{-- Szavazás --}}
{{-- {!! RecaptchaV3::field('register') !!} --}} {!! __('link.sendVote') !!}
{{-- Szavazás üzenetek --}} @push('scripts') @endpush
{{-- Copy To Clipboard --}}
{{-- Copy To Clipboard üzenetek --}}
@endif
{{-- Recently added videos --}} @if ($more_videos->count() >= 4)
{!! __('video.list.recentlyAddedList.title') !!}
@include('video.layout.slider', ['videos' => $more_videos, 'carousel_id' => 'fresh_videos_carousel']) {{--
@forelse ($more_videos as $more_video)
@include('video.layout.card', ['video' => $more_video])
@empty @include('video.layout.empty', ['title' => __('video.notFoundSearch.title'), 'description' => __('video.notFoundSearch.description')]) @endforelse
--}}
@endif
@push('scripts') @endpush @endsection