@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

Videos Gallery

All Videos Gallery

@if(check_Permission('Video Gallery', 'create')) @endif
@if(\Session::has('delete'))
  • {!! \Session::get('delete') !!}
  • @endif
    @if(isset($videos)) @foreach($videos as $video) @endforeach @endif
    S.No. Title Thumbnail Category Duration Countries Status PPV Type Likes Dislikes Total Views Paid Views Content Acceptance Commission (USD) PPV Revenue (USD) Ad Revenue (USD) Created on Created By Action
    {{$loop->iteration}} {{$video->title . " - " . $video->sub_title}} @if(isset($video->getRating->image)) @endif @if(isset($video->landscape_thumbnail)) @endif @if(isset($video->getCategories)) @foreach($video->getCategories as $category) @if(isset($category->getCategory->name)) {{$category->getCategory->name}} @endif @endforeach @else Not found @endif {{-- for trailer --}} @if(isset($video->trailer_duration)) @if($video->status == 'In Review') @else @endif @else @endif {{-- for video --}} @if(isset($video->duration)) @if($video->status == 'In Review') @else @if($video->in_compression_mode) @else @endif @endif @else @endif @if(isset($video->countries)) @foreach($video->countries as $country) {{$country->country_name}}
    @endforeach @endif
    @if($video->status == 'Active') @elseif($video->status == 'In Review' && (!$video->in_compression_mode)) @elseif($video->status == 'In Review' && ($video->in_compression_mode)) @elseif($video->status == 'Inactive' && (!$video->in_compression_mode)) @elseif($video->status == 'Inactive' && ($video->in_compression_mode)) @else @endif @if($video->status == 'Inactive' && is_null($video->trailer_path) && (!$video->in_compression_mode))
    Upload a Trailer @endif @if($video->status == 'Inactive' && is_null($video->video_path) && (!$video->in_compression_mode))
    Upload a Video @endif
    @if($video->ppv_listing_type == 'Free View') @elseif($video->ppv_listing_type == 'Pay Per View') @endif @if($video->getLikesDislikes) {{$video->getLikesDislikes->likes}} @else 0 @endif @if($video->getLikesDislikes) {{$video->getLikesDislikes->dislikes}} @else 0 @endif {{\app\Models\Video::getViews($video->id)}} {{\app\Models\Video::getPaidViews($video->id)}} @if(is_null($video->cac_status)) {{number_format($video->cac_amount, 2, '.', ',')}} @else @if($video->cac_status == 'Pending') {{number_format($video->cac_amount, 2, '.', ',')}} @elseif($video->cac_status == 'Allocated') {{number_format($video->cac_amount, 2, '.', ',')}} @elseif($video->cac_status == 'Applied') {{number_format($video->cac_amount, 2, '.', ',')}} @elseif($video->cac_status == 'Processed') {{number_format($video->cac_amount, 2, '.', ',')}} @endif @endif {{number_format($video->ppv_revenue, 2, '.', ',')}} {{number_format($video->ad_revenue, 2, '.', ',')}} {{$video->created_at->format('d M, Y')}} @if(isset($video->createdBy->name)) {{$video->createdBy->name}} @else User not found @endif @if(check_Permission('Video Gallery', 'edit')) @endif @if(check_Permission('Video Gallery', 'edit')) @endif @if(check_Permission('Video Gallery', 'edit')) @endif @if(check_Permission('Video Gallery', 'view') && ($video->status == 'Active')) @endif @if(check_Permission('Video Gallery', 'delete')) @endif @if(check_Permission('Video Gallery', 'additional_video')) @endif
    @endsection @section('custom-scripts') @endsection