@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 Stats

All Live Streams Stats

@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 PPV Type Likes Dislikes Total Views Paid Views Content Acceptance Commission PPV Revenue (USD) Ad Revenue (USD) Stream Type Screening On Channel Created On Created By
    {{$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') @else @endif @if($collection->ppv_listing_type == 'Free View') @elseif($collection->ppv_listing_type == 'Pay Per View') @endif @if($collection->getLikesDislikes) {{$collection->getLikesDislikes->likes}} @else 0 @endif @if($collection->getLikesDislikes) {{$collection->getLikesDislikes->dislikes}} @else 0 @endif @if($collection instanceof App\Models\ls_videos) {{\app\Models\ls_videos::getViews($collection->id)}} @elseif($collection instanceof App\Models\live_broadcast_events) {{\app\Models\live_broadcast_events::getViews($collection->id)}} @endif @if($collection instanceof App\Models\ls_videos) {{\app\Models\ls_videos::getPaidViews($collection->id)}} @elseif($collection instanceof App\Models\live_broadcast_events) {{\app\Models\live_broadcast_events::getPaidViews($collection->id)}} @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 {{number_format($collection->ppv_revenue, 2, '.', ',')}} {{number_format($collection->ad_revenue, 2, '.', ',')}} @if($collection instanceof App\Models\ls_videos) @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
    @endsection @section('custom-scripts') @endsection