{{--deals with livestream display logic --}}
@if(isset($livestreamingevents) && $livestreamingevents->count() > 0)
@if($playing_video_subscription == 'Pay per view set up')
@if($user_view_rights_on_playing_video == 1)
@php
$streamprotocol = "https";
$streamprotocolconnector = "://";
$streamserver = "verityplus.live/";
$streampath = "hls/streamchannel{$activebroadcastchannel->id}";
$streamchannel = $live_stream_creds->stream_channel;
$streamkey = $live_stream_creds->streamkey;
$streamformat = ".m3u8";
$streamthumbnail = "https://verity-tv-storage.s3-accelerate.amazonaws.com/video-thumbnail/{$livestreamingevents->thumbnail}";
$streamurl = "{$streamprotocol}{$streamprotocolconnector}{$streamserver}{$streampath}/{$streamkey}{$streamformat}";
@endphp
@if($livestreamingevents->date = now()->format('Y-m-d') && $livestreamingevents->start_time > now()->format('H:i:s'))
To view this video please enable JavaScript, and consider upgrading to a
web browser that
supports HTML5 video
@elseif($livestreamingevents->date = now()->format('Y-m-d') && $livestreamingevents->start_time <= now()->format('H:i:s'))
To view this video please enable JavaScript, and consider upgrading to a
web browser that
supports HTML5 video
@if(isset($livestreamingevents->getRating->image))
@endif
@if(isset($livestreamingevents->getRating))
{{ $livestreamingevents->getRating->description }}
@endif
{{$livestreamingevents->title}}
{{Str::words($livestreamingevents->sub_title)}}
{!! $livestreamingevents->description !!}
@endif
@endif
@if($user_view_rights_on_playing_video == 0 || $user_view_rights_on_playing_video == 2)
@php
$streamprotocol = "https";
$streamprotocolconnector = "://";
$streamserver = "verityplus.live/";
$streampath = "hls/streamchannel{$activebroadcastchannel->id}";
$streamchannel = $live_stream_creds->stream_channel;
$streamkey = $live_stream_creds->streamkey;
$streamformat = ".m3u8";
$streamthumbnail = "https://verity-tv-storage.s3-accelerate.amazonaws.com/video-thumbnail/{$livestreamingevents->thumbnail}";
$streamurl = "{$streamprotocol}{$streamprotocolconnector}{$streamserver}{$streampath}/{$streamkey}{$streamformat}";
@endphp
@if($livestreamingevents->date = now()->format('Y-m-d') && $livestreamingevents->start_time > now()->format('H:i:s'))
To view this video please enable JavaScript, and consider upgrading to a
web browser that
supports HTML5 video
@if($user_view_rights_on_playing_video == 2)
You need to be logged in to view
@else
Click to buy a subscription to view
@endif
@elseif($livestreamingevents->date = now()->format('Y-m-d') && $livestreamingevents->start_time <= now()->format('H:i:s'))
To view this video please enable JavaScript, and consider upgrading to a
web browser that
supports HTML5 video
@if($user_view_rights_on_playing_video == 2)
You need to be logged in to view
@else
Click to buy a subscription to view
@endif
@if(isset($livestreamingevents->getRating->image))
@endif
@if(isset($livestreamingevents->getRating))
{{ $livestreamingevents->getRating->description }}
@endif
{{$livestreamingevents->title}}
{{Str::words($livestreamingevents->sub_title)}}
{!! $livestreamingevents->description !!}
@endif
@endif
@endif
@if($playing_video_subscription == 'Free view' || $playing_video_subscription == 'not set')
@php
$streamprotocol = "https";
$streamprotocolconnector = "://";
$streamserver = "verityplus.live/";
$streampath = "hls/streamchannel{$activebroadcastchannel->id}";
$streamchannel = $live_stream_creds->stream_channel;
$streamkey = $live_stream_creds->streamkey;
$streamformat = ".m3u8";
$streamthumbnail = "https://verity-tv-storage.s3-accelerate.amazonaws.com/video-thumbnail/{$livestreamingevents->thumbnail}";
$streamurl = "{$streamprotocol}{$streamprotocolconnector}{$streamserver}{$streampath}/{$streamkey}{$streamformat}";
@endphp
@if($livestreamingevents->date = now()->format('Y-m-d') && $livestreamingevents->start_time > now()->format('H:i:s'))
To view this video please enable JavaScript, and consider upgrading to a
web browser that
supports HTML5 video
@elseif($livestreamingevents->date = now()->format('Y-m-d') && $livestreamingevents->start_time <= now()->format('H:i:s'))
To view this video please enable JavaScript, and consider upgrading to a
web browser that
supports HTML5 video
@if(isset($livestreamingevents->getRating->image))
@endif
@if(isset($livestreamingevents->getRating))
{{ $livestreamingevents->getRating->description }}
@endif
{{$livestreamingevents->title}}
{{Str::words($livestreamingevents->sub_title)}}
{!! $livestreamingevents->description !!}
@endif
@endif
{{--@endif (ending) --}}
{{--deals with livestream display logic --}}
{{--deals with pre-recorded videos display logic --}}
@elseif(isset($currentUpcomingPlayingVideo))
@php
$video = $currentUpcomingPlayingVideo->ls_videos;
@endphp
@if($playing_video_subscription == 'Pay per view set up')
@if($user_view_rights_on_playing_video == 1)
@if(isset($video->getRating->image))
@endif
@if(isset($video->getRating))
{{ $video->getRating->description }}
@endif
{{$video->title}}
@if(!isset($video->video_path))
Coming Soon
@endif
{{Str::words($video->sub_title)}}
{!! $video->description !!}
@if(!isset($video->video_path))
Coming Soon
@endif
@endif
@if($user_view_rights_on_playing_video == 0 || $user_view_rights_on_playing_video == 2)
@if(isset($video->getRating->image))
@endif
@if(isset($video->getRating))
{{ $video->getRating->description }}
@endif
{{$video->title}}
@if(!isset($video->video_path))
Coming Soon
@endif
{{Str::words($video->sub_title)}}
{!! $video->description !!}
@if(!isset($video->video_path))
Coming Soon
@endif
@if($user_view_rights_on_playing_video == 2)
You need to be logged in to view
@else
Click to buy a subscription to view
@endif
@endif
@endif
@if($playing_video_subscription == 'Free view' || $playing_video_subscription == 'not set' || $playing_video_subscription == 'Pay per view set up missing subscription')
@if($playing_video_subscription == 'not set' || $playing_video_subscription == 'Pay per view set up missing subscription')
@else
@endif
@if(isset($video->getRating->image))
@endif
@if(isset($video->getRating))
{{ $video->getRating->description }}
@endif
{{$video->title}}
@if(!isset($video->video_path))
Coming Soon
@endif
{{Str::words($video->sub_title)}}
{!! $video->description !!}
@if(!isset($video->video_path))
Coming Soon
@endif
@endif
{{--@endif (ending)--}}
{{--deals with pre-recorded videos display logic --}}
{{--deals with upcoming videos display logic --}}
@elseif(isset($currentUpcomingVideo) && $currentUpcomingVideo->count() > 0)
@php $video = $currentUpcomingVideo->ls_videos; @endphp
{{--@endif (ending)--}}
{{--deals with upcoming videos display logic --}}
{{--deals with when there is no video to display logic --}}
@else
@php
$novideodisplaythumbnail = "https://verity-tv-storage.s3-accelerate.amazonaws.com/video-thumbnail/9E3KRs1b42V5Z4u9kMOavoXsTeIqhLq1KdRveXFm.jpg";
@endphp
@endif
{{--deals with when there is no video to display logic --}}