@extends('front.layout') @section('custom-style') @if(isset($currentUpcomingPlayingVideo)) @php $video = $currentUpcomingPlayingVideo->ls_videos @endphp @elseif(isset($currentUpcomingVideo[0])) @php $video = $currentUpcomingVideo[0]->ls_videos @endphp @else @endif @endsection @section('content')
{{-- for desktop --}}
Select Channel
@if(isset($livebroadcastchannels)) @foreach($livebroadcastchannels as $channel) @if($channel->id === $activebroadcastchannel->id)
{{-- for desktop --}} {{-- for mobile --}}
Select Channel
@if(isset($livebroadcastchannels)) @foreach($livebroadcastchannels as $channel) @if($channel->id === $activebroadcastchannel->id)
{{-- for mobile --}}
{{--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'))
@elseif($livestreamingevents->date = now()->format('Y-m-d') && $livestreamingevents->start_time <= now()->format('H:i:s'))
live-streaming
@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'))
@if($user_view_rights_on_playing_video == 2) @else @endif @elseif($livestreamingevents->date = now()->format('Y-m-d') && $livestreamingevents->start_time <= now()->format('H:i:s'))
@if($user_view_rights_on_playing_video == 2) @else @endif
live-streaming
@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'))
@elseif($livestreamingevents->date = now()->format('Y-m-d') && $livestreamingevents->start_time <= now()->format('H:i:s'))
live-streaming
@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)
live-streaming
@if(isset($video->getRating->image)) @endif @if(isset($video->getRating)) {{ $video->getRating->description }} @endif
{{$video->title}} @if(!isset($video->video_path)) @endif

{{Str::words($video->sub_title)}}

{!! $video->description !!}
@if(!isset($video->video_path)) @endif @endif @if($user_view_rights_on_playing_video == 0 || $user_view_rights_on_playing_video == 2)
live-streaming
@if(isset($video->getRating->image)) @endif @if(isset($video->getRating)) {{ $video->getRating->description }} @endif
{{$video->title}} @if(!isset($video->video_path)) @endif

{{Str::words($video->sub_title)}}

{!! $video->description !!}
@if(!isset($video->video_path)) @endif @if($user_view_rights_on_playing_video == 2) @else @endif @endif @endif @if($playing_video_subscription == 'Free view' || $playing_video_subscription == 'not set' || $playing_video_subscription == 'Pay per view set up missing subscription')
live-streaming
@if(isset($video->getRating->image)) @endif @if(isset($video->getRating)) {{ $video->getRating->description }} @endif
{{$video->title}} @if(!isset($video->video_path)) @endif

{{Str::words($video->sub_title)}}

{!! $video->description !!}
@if(!isset($video->video_path)) @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 --}}
@if(Route::is('front.livebroadcastvideos_partial')) @php $date = (isset($_GET['date'])) ? $_GET['date'] : ''; @endphp
@endif @if(count($all_program_lineups) > 0)
Broadcast channels
@if(isset($livebroadcastchannels)) @foreach($livebroadcastchannels as $channel)
@endforeach @endif
@if(isset($activebroadcastchannel) && !empty($activebroadcastchannel)) Program Lineup - {{ $activebroadcastchannel->channel_name }} @else Program Lineup @endif
@endif
@if(isset($all_program_lineups))
@if(isset($all_program_lineups)) @if(isset($display_device) && $display_device === "mb") @php $groupedVideos = $all_program_lineups->chunk(3); @endphp @elseif(isset($display_device) && $display_device === "dp") @php $groupedVideos = $all_program_lineups->chunk(9); @endphp @else @php $groupedVideos = $all_program_lineups->chunk(5); @endphp @endif
@foreach($groupedVideos as $group) @endforeach
{{-- pagination links --}}
{{-- pagination links --}} @endif
@endif
@endsection @section('custom-script') {{-- //auto play upcoming video, checking every time --}} @endsection