{{__('Upcoming Movie')}} {{ $menu->name }}
@if($section->view == 1) @endif @if($section->view == 0)
@foreach($upcomingitems->menu_data as $item) @php if(isset($auth) && $auth != NULL){ if ($item->movie != NULL && $item->movie->type == 'M' && $item->movie['status'] == 1) { $wishlist_check = \Illuminate\Support\Facades\DB::table('wishlists')->where([ ['user_id', '=', $auth->id], ['movie_id', '=', $item->movie->id], ])->first(); } } @endphp @if($item->movie != NULL && $item->movie->type == 'M' && $item->movie['status'] == 1) @php $image = 'images/movies/thumbnails/'.$item->movie->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 = url('images/default-thumbnail.jpg'); } @endphp
@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->movie->is_custom_label == 1) @if(isset($item->movie->label_id)) {{$item->movie->label->name}} @endif @else @if(isset($item->movie->is_upcoming) && $item->movie->is_upcoming == 1) @if($item->upcoming_date != NULL) {{date('M jS Y',strtotime($item->upcoming_date))}} @else {{__('Coming Soon')}} @endif @endif @endif
@if(isset($protip) && $protip == 1)
{{$item->movie->title}}
  • {{__('Tmdb Rating')}} {{$item->movie->rating}}
  • {{$item->movie->duration}} {{__('Mins')}}
  • {{$item->movie->publish_year}}
  • {{$item->movie->maturity_rating}}

{{str_limit($item->movie->detail,100,'...')}}

@if($auth && getSubscription()->getData()->subscribed == true) {{__('Read More')}} @else {{__('Read More')}} @endif
@if($auth && getSubscription()->getData()->subscribed == true) @if($item->movie->trailer_url != null || $item->movie->trailer_url != '') {{__('Watch Trailer')}} @endif @else @if($item->movie->trailer_url != null || $item->movie->trailer_url != '') {{__('Watch Trailer')}} @endif @endif @if($catlog == 0 && getSubscription()->getData()->subscribed == true) @if (isset($wishlist_check->added)) @else @endif @elseif($catlog ==1 && $auth) @if (isset($wishlist_check->added)) @else @endif @endif
@endif
@endif @endforeach
@endif