@extends('layouts.app') @section('content')
@if(Session::has('verified')) @endif @if(Session::has('success_message')) @endif @if(Session::has('error_message')) @endif
{!! __('welcome.title.1') !!}
{!! __('welcome.title.2') !!}
@if (isset($active_competition) && $active_competition != null)
{!! __('welcome.title.3', [ 'first_award' => json_decode($active_competition->award)[0], 'second_award' => json_decode($active_competition->award)[1], 'third_award' => json_decode($active_competition->award)[2], 'registration_fee' => json_decode($active_competition->registration_fee, true)['USD'], 'competition_start_date' => $active_competition->start_date, 'competition_end_date' => $active_competition->end_date, ]) !!}
@else
{!! __('welcome.title.3.default') !!}
@endif
@include('video/instruction') @include('video/counter')
{!! __('welcome.rules.title') !!}
{!! __('welcome.rules.description') !!}
{!! __('welcome.videos.title') !!}
{!! __('welcome.videos.description') !!}
{!! __('welcome.winners.title') !!}
{!! __('welcome.winners.description') !!}
{!! __('welcome.opinions.title') !!}
{!! __('welcome.opinions.description') !!}
@php $show_video_block = false; if($fresh_videos != null && $fresh_videos->count() >= 4) $show_video_block = true; if($winner_videos != null && $winner_videos->count() > 0) $show_video_block = true; @endphp @if ( $show_video_block )
{!! __('welcome.videoList.title.1') !!}
{!! __('welcome.videoList.title.2') !!}
@if($fresh_videos->count() >= 4 || $top_videos->count() >= 4 || $winner_videos) {{-- Recently added videos --}} @if ($fresh_videos->count() >= 4)
{!! __('video.list.recentlyAddedList.title') !!}
@include('video.layout.slider', ['videos' => $fresh_videos, 'carousel_id' => 'fresh_videos_carousel']) {{--
@forelse ($fresh_videos as $fresh_video)
@include('video.layout.card', ['video' => $fresh_video])
@empty @include('video.layout.empty', ['title' => __('video.notFoundSearch.title'), 'description' => __('video.notFoundSearch.description')]) @endforelse
--}}
@endif {{-- First 9 videos --}} @if ($top_videos->count() >= 4)
{!! __('video.list.topList.title') !!}
@include('video.layout.slider', ['videos' => $top_videos, 'carousel_id' => 'top_videos_carousel']) {{--
@forelse ($top_videos as $top_video)
@include('video.layout.card', ['video' => $top_video])
@empty @include('video.layout.empty', ['title' => __('video.notFoundSearch.title'), 'description' => __('video.notFoundSearch.description')]) @endforelse
--}}
@endif {{-- Winner videos --}} @if (isset($winner_videos))
{!! __('video.list.prevWinnerVideoList.title') !!}
@if ($winner_videos->count() >= 4) @include('video.layout.slider', ['videos' => $winner_videos, 'carousel_id' => 'winner_videos_carousel', 'winner' => true]) @else
@forelse ($winner_videos as $winner_video)
@include('video.layout.card', ['video' => $winner_video, 'winner' => true])
@empty @include('video.layout.empty', ['title' => __('video.notFoundSearch.title'), 'description' => __('video.notFoundSearch.description')]) @endforelse
@endif
@endif @else @include('video.layout.empty', ['title' => __('video.notFoundSearch.title'), 'description' => __('video.notFoundSearch.description')]) @endif
@endif @if(!empty($messages)) @include('video.layout.opinion') @endif @push('scripts') @endpush @endsection