@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)
@endif
@if(timecalcuate($auth->id,$item->id,$item->type) != 0)
@endif
@else
@if($src)
@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
@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(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
@endif
@endif
@endif
@endif
@endforeach
@endif