@extends('layouts.theme') @section('title',__('View All')) @section('main-wrapper')
@php $withlogin= $configs->withlogin; $catlog= $configs->catlog; $auth=Auth::user(); $subscribed = null; @endphp @if (isset($pusheditems) && count($pusheditems) > 0 )
{{__('View All In')}} {{ $genre->name }}
@if(isset($pusheditems)) @foreach($pusheditems as $item) @if($auth && getSubscription()->getData()->subscribed == true) @php if ($item['type'] == 'M') { $wishlist_check = \Illuminate\Support\Facades\DB::table('wishlists')->where([ ['user_id', '=', $auth->id], ['movie_id', '=', $item->id], ])->first(); } $gets1 = App\Season::where('tv_series_id','=',$item->id)->first(); if (isset($gets1)) { $wishlist_check = \Illuminate\Support\Facades\DB::table('wishlists')->where([ ['user_id', '=', $auth->id], ['season_id', '=', $gets1->id], ])->first(); } @endphp @endif @if($item['type'] == "M") @php $image = 'images/movies/thumbnails/'.$item->thumbnail; // Read image path, convert to base64 encoding $imageData = base64_encode(@file_get_contents($image)); if($imageData){ // Format the image SRC: data:{mime};base64,{data}; $src = 'data: '.mime_content_type($image).';base64,'.$imageData; }else{ $src = Avatar::create($item->title)->toBase64(); } @endphp @if(hidedata($item->id,$item->type) != 1)
@if($auth && getSubscription()->getData()->subscribed == true) @if($src) genre-image @endif
@if(timecalcuate($auth->id,$item->id,$item->type) != 0)
@endif @else @if($src) genre-image @endif @endif @if($item->is_custom_label == 1) @if(isset($item->label_id)) {{$item->label->name}} @endif @endif
@if(isset($protip) && $protip == 1)
{{$item->title}}
  • {{__('Rating')}} {{$item->rating}}
  • {{$item->duration}} {{__('mins')}}
  • {{$item->publish_year}}
  • {{$item->maturity_rating}}
  • @if($item->subtitle == 1)
  • {{__('Sub Titles')}}
  • @endif

{{$item->detail}}

{{__('Read More')}}
@if($auth && getSubscription()->getData()->subscribed == true) @if($item->is_upcoming != 1) @if(checkInMovie($item) == true && isset($item->video_link)) @if($item->maturity_rating == 'all age' || $age>=str_replace('+', '', $item->maturity_rating)) @if(isset($item->video_link['iframeurl']) && $item->video_link['iframeurl'] != null) {{__('Play Now')}} @else {{__('Play Now')}} @endif @else {{__('Play Now')}} @endif @endif @endif @if($item->trailer_url != null || $item->trailer_url != '') {{__('Watch Trailer')}} @endif @else @if($item->trailer_url != null || $item->trailer_url != '') {{__('Watch Trailer')}} @endif @endif @if($catlog ==0 && getSubscription()->getData()->subscribed == true) @if (isset($wishlist_check->added)) {{$wishlist_check->added == 1 ? __('Remove From Watchlist') : __('Add to Watchlist')}} @else {{__('Add to Watchlist')}} @endif @elseif($catlog ==1 && $auth) @if (isset($wishlist_check->added)) {{$wishlist_check->added == 1 ? __('Remove From Watchlist') : __('Add to Watchlist')}} @else {{__('Add to Watchlist')}} @endif @endif
@endif
@endif @elseif($item['type'] == "T") @php $image = 'images/tvseries/thumbnails/'.$item->thumbnail; // Read image path, convert to base64 encoding $imageData = base64_encode(@file_get_contents($image)); if($imageData){ // Format the image SRC: data:{mime};base64,{data}; $src = 'data: '.mime_content_type($image).';base64,'.$imageData; }else{ $src = Avatar::create($item->title)->toBase64(); } @endphp @if(hidedata($item->seasons[0]['id'],$item->seasons[0]['type']) != 1) @if(isset($item->seasons[0]) && hidedata($item->seasons[0]['id'],$item->seasons[0]['type']) != 1)
@if($auth && getSubscription()->getData()->subscribed == true) @if($src) genre-image @endif
@else @if($src) genre-image @endif @endif
@if(isset($protip) && $protip == 1)
{{$item->title}}
{{__('Tmdb Rating')}} {{$item->rating}}
  • {{__('Season')}} {{$item->season_no}}
  • {{$item->publish_year}}
  • {{$item->age_req}}
  • @if($item->subtitle == 1)
  • {{__('Sub Titles')}}
  • @endif
@if ($item->detail != null || $item->detail != '')

{{$item->detail}}

@endif
@if($auth && getSubscription()->getData()->subscribed == true) @if (isset($item->seasons[0]->episodes[0]) && checkInTvseries($item) == true && isset($item->seasons[0]->episodes[0]->video_link)) @if($item->age_req == 'all age' || $age>=str_replace('+', '', $item->age_req)) @if(isset($item->seasons[0]) && $item->seasons[0]->episodes[0]->video_link['iframeurl'] !="") {{__('Play Now')}} @else {{__('Play Now')}} @endif @else {{__('Play Now')}} @endif @endif @if(isset($item->seasons[0]) && $item->seasons[0]->trailer_url != null || isset($item->seasons[0]) && $item->seasons[0]->trailer_url != '') {{__('Watch Trailer')}} @endif @else @if(isset($item->seasons[0]) && $item->seasons[0]->trailer_url != null || isset($item->seasons[0]) && $item->seasons[0]->trailer_url != '') {{__('watch trailer')}} @endif @endif @if($catlog ==0 && getSubscription()->getData()->subscribed == true) @if (isset($wishlist_check->added)) {{$wishlist_check->added == 1 ? __('Remove From Watchlist') : __('Add to Watchlist')}} @else {{__('Add to Watchlist')}} @endif @elseif($catlog ==1 && $auth ) @if(isset($item->seasons[0])) @if (isset($wishlist_check->added)) {{$wishlist_check->added == 1 ? __('Remove From Watchlist') : __('Add to Watchlist')}} @else {{__('Add to Watchlist')}} @endif @endif @endif
@endif
@endif @endif @endif @endforeach @endif
{!! $pusheditems->links() !!}
@if (isset($ad)) @if ($ad->isviewall==1 && $ad->status==1) @php $code= $ad->code; echo html_entity_decode($code); @endphp @endif @endif
@endif @endsection @section('custom-script') @endsection