@extends('admin.layout') @section('custom-style') @endsection @section('content') @php $date = (isset($_GET['date'])) ? $_GET['date'] : ''; @endphp @php $searchText = (isset($_GET['searchText'])) ? $_GET['searchText'] : ''; @endphp

Live Streams

All Live Streams

@if(check_Permission('Live Broadcast', 'create')) @endif
@if ($errors->any())
@foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
    @endif @if(\Session::has('error'))
  • {!! \Session::get('error') !!}
  • @endif @if(\Session::has('delete'))
  • {!! \Session::get('delete') !!}
  • @endif @if(\Session::has('success'))
  • {!! \Session::get('success') !!}
  • @endif
    @if(isset($sorted_livestreams_collection)) @foreach($sorted_livestreams_collection as $collection) @endforeach @endif
    S.No. Title Thumbnail Status Content Acceptance Commission PPV Type Stream Type Screening On Channel Created On Created By Action
    {{$loop->iteration}} @if($collection->ls_videos != null) @if(optional($collection->ls_videos)->title) {{$collection->ls_videos->title . " - " . $collection->ls_videos->sub_title}} @endif @if(optional($collection->ls_videos)->getRating) @endif @else {{$collection->title . "-" . $collection->sub_title}} @endif @if($collection instanceof App\Models\ls_videos) @elseif($collection instanceof App\Models\live_broadcast_events) @endif @if($collection->status == 'Active') @elseif($collection->status == 'In Review') @elseif($collection->status == 'Inactive' && (!$collection->in_compression_mode)) @elseif($collection->status == 'Inactive' && ($collection->in_compression_mode)) @else @endif @if($collection->status == 'Inactive' && is_null($collection->video_path) && (!$collection->in_compression_mode))
    Upload a Video @endif
    @if(is_null($collection->cac_status)) {{number_format($collection->cac_amount, 2, '.', ',')}} @else @if($collection->cac_status == 'Pending') {{number_format($collection->cac_amount, 2, '.', ',')}} @elseif($collection->cac_status == 'Allocated') {{number_format($collection->cac_amount, 2, '.', ',')}} @elseif($collection->cac_status == 'Applied') {{number_format($collection->cac_amount, 2, '.', ',')}} @elseif($collection->cac_status == 'Processed') {{number_format($collection->cac_amount, 2, '.', ',')}} @endif @endif @if($collection->ppv_listing_type == 'Free View') @elseif($collection->ppv_listing_type == 'Pay Per View') @endif @if($collection instanceof App\Models\ls_videos) @if(isset($collection->video_path)) @if($collection->status == 'In Review') @elseif($collection->status == 'Active') @else @endif @else @if($collection->in_compression_mode) @else @endif @endif @else @php $st_time = $collection->start_time; $et_time = $collection->end_time; $dt_time = $collection->end_time; // Use the helper function to calculate the time difference $time_difference = calculateTimeDifference($st_time, $et_time); @endphp @endif @if($collection instanceof App\Models\ls_videos) @if(isset($collection->videoMeta->date)) @endif @if(isset($collection->videoMeta->start_time)) @endif @if(isset($collection->videoMeta->end_time)) @endif @else @if(isset($collection->date)) @endif @if(isset($collection->start_time)) @endif @if(isset($collection->end_time)) @endif @endif @if($collection instanceof App\Models\ls_videos) {{ $collection->videoMeta->livebroadcastchannels->channel_name }} @else {{ $collection->livebroadcastchannels->channel_name }} @endif {{$collection->created_at->format('d M, Y')}} @if($collection instanceof App\Models\ls_videos) {{ $collection->createdBy->name }} @else {{ $collection->livestreamproducer->name }} @endif @if($collection instanceof App\Models\ls_videos) @if(check_Permission('Live Broadcast', 'edit')) @endif @if(check_Permission('Live Broadcast', 'edit')) @endif @if(check_Permission('Live Broadcast', 'view')) @endif @if(check_Permission('Live Broadcast', 'delete')) @endif @else @if(check_Permission('Live Broadcast', 'view')) @endif @if(check_Permission('Live Broadcast', 'edit')) @endif @if(check_Permission('Live Broadcast', 'delete')) @endif @endif
    @endsection @section('custom-scripts') @endsection