@extends('front.layout-ref') @section('csrf_token') @endsection @section('custom_og_meta') @if(isset($currentUpcomingPlayingVideo)) @php $video = $currentUpcomingPlayingVideo->ls_videos @endphp @elseif(isset($currentUpcomingVideo)) @php $video = $currentUpcomingVideo->ls_videos @endphp @endif @endsection @section('ls_scripts') @endsection @section('content')

Select Channel

@isset($livebroadcastchannels) @foreach($livebroadcastchannels as $channel)
@php if ($display_device == 'mb') { $dp_dev = 'mb'; $channel_thumbnail = $channel->channel_thumbnail_potrait; } else { $dp_dev = 'dp'; $channel_thumbnail = $channel->channel_thumbnail; } ($channel->id == $activebroadcastchannel->id) ? $channel_display_class = "active-display-channel-item" : $channel_display_class = ''; @endphp id"])}}" class="{{$channel_display_class}} channel-display-container d-block text-decoration-none p-0 m-0 position-relative"> {{$channel->channel_name}}
{{$channel->channel_name}}
@endforeach @endisset
{{--livestream display logic --}} @if(isset($livestreamingevents)) @if($playing_video_subscription == 'Pay per view set up') @if($user_view_rights_on_playing_video == 1) @php $streamprotocol = "https"; $streamprotocolconnector = "://"; // $streamserver = "1677306836.rsc.cdn77.org/"; $streamserver = "verity.live/"; $streampath = "streams/hls/"; $streamchannel = $live_stream_creds->stream_app; $streamkey = $live_stream_creds->streamkey; $streamformat = ".m3u8"; // $streamthumbnail = "https://1309607084.rsc.cdn77.org/video-thumbnail/{$livestreamingevents->thumbnail}"; $streamthumbnail = $livestreamingevents->thumbnail; $streamurl = "{$streamprotocol}{$streamprotocolconnector}{$streamserver}{$streampath}{$streamchannel}/{$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'))
{{-- sm devices ratings badge --}} @isset($livestreamingevents->getRating->image) @endisset @isset($livestreamingevents->getRating) {{ $livestreamingevents->getRating->description }} @endisset
{{-- sm devices like/dislike buttons --}}
{{-- sm devices share button --}}
{{$livestreamingevents->title}}

{{Str::words($livestreamingevents->sub_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 = "1677306836.rsc.cdn77.org/"; $streamserver = "verity.live/"; $streampath = "streams/hls/"; $streamchannel = $live_stream_creds->stream_app; $streamkey = $live_stream_creds->streamkey; $streamformat = ".m3u8"; // $streamthumbnail = "https://1309607084.rsc.cdn77.org/video-thumbnail/{$livestreamingevents->thumbnail}"; $streamthumbnail = "$livestreamingevents->thumbnail"; $streamurl = "{$streamprotocol}{$streamprotocolconnector}{$streamserver}{$streampath}{$streamchannel}/{$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
{{-- sm devices ratings badge --}} @isset($livestreamingevents->getRating->image) @endisset @isset($livestreamingevents->getRating) {{ $livestreamingevents->getRating->description }} @endisset
{{-- sm devices like/dislike buttons --}}
{{-- sm devices share button --}}
{{$livestreamingevents->title}}

{{Str::words($livestreamingevents->sub_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 = "1677306836.rsc.cdn77.org/"; $streamserver = "verity.live/"; $streampath = "streams/hls/"; $streamchannel = $live_stream_creds->stream_app; $streamkey = $live_stream_creds->streamkey; $streamformat = ".m3u8"; //$streamthumbnail = "https://1309607084.rsc.cdn77.org/video-thumbnail/{$livestreamingevents->thumbnail}"; $streamthumbnail = "$livestreamingevents->thumbnail"; $streamurl = "{$streamprotocol}{$streamprotocolconnector}{$streamserver}{$streampath}{$streamchannel}/{$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'))
{{-- sm devices ratings badge --}} @isset($livestreamingevents->getRating->image) @endisset @isset($livestreamingevents->getRating) {{ $livestreamingevents->getRating->description }} @endisset
{{-- sm devices like/dislike buttons --}}
{{-- sm devices share button --}}
{{$livestreamingevents->title}}
{{-- desktop share & like/dislike sections --}}
{{-- sm devices like/dislike buttons --}}
{{-- sm devices share button --}}
{{-- desktop share & like/dislike sections --}}

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

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

{!! $livestreamingevents->description !!}
@endif @endif {{--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') desputed here @if($user_view_rights_on_playing_video == 1)
live-streaming
@if(isset($video->getRating->image)) @endif @if(isset($video->getRating)) {{ $video->getRating->description }} @endif
{{-- sm devices ratings badge --}} @isset($video->getRating->image) @endisset @isset($video->getRating) {{ $video->getRating->description }} @endisset
{{-- sm devices like/dislike buttons --}}
{{-- sm devices share button --}}
{{$video->title}} @if(!isset($video->video_path)) @endif

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

{{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
{{-- sm devices ratings badge --}} @isset($video->getRating->image) @endisset @isset($video->getRating) {{ $video->getRating->description }} @endisset
{{-- sm devices like/dislike buttons --}}
{{-- sm devices share button --}}
{{$video->title}} @if(!isset($video->video_path)) @endif

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

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

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

{!! $video->description !!}
@if(!isset($video->video_path)) @endif @if($user_view_rights_on_playing_video == 2) @else @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
{{-- sm devices ratings badge --}} @isset($video->getRating->image) @endisset @isset($video->getRating) {{ $video->getRating->description }} @endisset
{{-- sm devices like/dislike buttons --}}
{{-- sm devices share button --}}
{{$video->title}} @if(!isset($video->video_path)) @endif

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

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

{!! $video->description !!}
@if(!isset($video->video_path)) @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
{{-- sm devices ratings badge --}} @isset($video->getRating->image) @endisset @isset($video->getRating) {{ $video->getRating->description }} @endisset
{{-- sm devices like/dislike buttons --}}
{{-- sm devices share button --}}
{{$video->title}} @if(!isset($video->video_path)) @endif

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

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

{!! $video->description !!}
@if(!isset($video->video_path)) @endif @endif {{--deals with upcoming videos display logic --}} @elseif(isset($currentUpcomingVideo)) @php $video = $currentUpcomingVideo->ls_videos; @endphp {{--@endif (ending)--}} {{--deals with upcoming videos display logic --}} {{--deals with upcoming live events display logic --}} @elseif(isset($upcominglivestreamingevents)) @php $streamprotocol = "https"; $streamprotocolconnector = "://"; //$streamserver = "1677306836.rsc.cdn77.org/"; $streamserver = "verity.live/"; $streampath = "streams/hls/"; $streamchannel = $upcoming_live_stream_creds->stream_channel; $streamkey = $upcoming_live_stream_creds->streamkey; $streamformat = ".m3u8"; //$streamthumbnail = "https://1309607084.rsc.cdn77.org/video-thumbnail/{$upcominglivestreamingevents->thumbnail}"; $streamthumbnail = "$upcominglivestreamingevents->thumbnail"; $streamurl = "{$streamprotocol}{$streamprotocolconnector}{$streamserver}{$streampath}{$streamchannel}/{$streamkey}{$streamformat}"; @endphp {{--deals with upcoming live events display logic --}} {{--deals with when there is no video to display logic --}} @else @if(get_live_stream_setting('no_programme_display')) @php $novideodisplaythumbnail = url('setting-images') . '/' . get_live_stream_setting('no_programme_display')->value; @endphp @else @php $novideodisplaythumbnail = ""; @endphp @endif @endif {{--deals with when there is no video to display logic --}}

@if(isset($activebroadcastchannel) && !empty($activebroadcastchannel)) Program Lineup - {{ $activebroadcastchannel->channel_name }} @else Program Lineup @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(10); @endphp @else @php $groupedVideos = $all_program_lineups->chunk(5); @endphp @endif
@foreach($groupedVideos as $group) @endforeach
{{-- pagination links --}}
{{-- pagination links --}} @endif
@endif
@endsection