@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')}} {{ $alang->language }}
@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->tv_series_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 @else 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}}
  • {{__('Tdmb Rating')}} {{$item->rating}}
  • {{$item->duration}} {{__('Rins')}}
  • {{$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'] == "S") @php $image = 'images/tvseries/thumbnails/'.$item->tvseries->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->tvseries->title)->toBase64(); } @endphp @if(hidedata($item['id'],$item['type']) != 1)
@if($auth && getSubscription()->getData()->subscribed == true) @if($src) genre-image @else genre-image @endif
@else @if($src) genre-image @else genre-image @endif @endif @if($item->tvseries->is_custom_label == 1) @if(isset($item->tvseries->label_id)) {{$item->tvseries->label->name}} @endif @endif
@if(isset($protip) && $protip == 1)
{{$item->tvseries->title}}
{{__('Tmdb Rating')}} {{$item->tvseries->rating}}
  • {{__('Season')}} {{$item->season_no}}
  • {{$item->tvseries->publish_year}}
  • {{$item->tvseries->age_req}}
  • @if($item->tvseries->subtitle == 1)
  • {{__('Sub Titles')}}
  • @endif
@if ($item->tvseries->detail != null || $item->tvseries->detail != '')

{{$item->tvseries->detail}}

@endif
@if($auth && getSubscription()->getData()->subscribed == true) @if (isset($item->episodes[0]) && checkInTvseries($item->tvseries) == true && isset($item->episodes[0]->video_link)) @if($item->tvseries->age_req == 'all age' || $age>=str_replace('+', '', $item->tvseries->age_req)) @if($item->episodes[0]->video_link['iframeurl'] !="") {{__('Play Now')}} @else {{__('Play Now')}} @endif @else {{__('Play Now')}} @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 @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