@extends('layouts.theme') @php $auth = Illuminate\Support\Facades\Auth::user(); $withlogin= $configs->withlogin; $catlog = $configs->catlog; @endphp @if(isset($movie)) @section('custom-meta') @section('title',$movie->title.' | ') @endsection @elseif($season) @php $title = $season->tvseries->title; @endphp @section('custom-meta') @endsection @section('title',"$title") @endif @section('main-wrapper') @include('modal.agemodal') @include('modal.agewarning')
@if(isset($movie)) @if($movie->poster != null)
@else
@endif @endif @if(isset($season)) @if($season->poster != null)
@elseif($season->tvseries->poster != null)
@else
@endif @endif
@if(isset($movie)) @php $a_languages = collect(); if ($movie->a_language != null) { $a_lan_list = explode(',', $movie->a_language); for($i = 0; $i < count($a_lan_list); $i++) { try { $a_language = App\AudioLanguage::find($a_lan_list[$i])->language; $a_languages->push($a_language); } catch (Exception $e) { } } } if(isset($auth)){ $wishlist_check = \Illuminate\Support\Facades\DB::table('wishlists')->where([ ['user_id', '=', $auth->id], ['movie_id', '=', $movie->id], ])->first(); } // Directors list of movie from model $directors = collect(); if ($movie->director_id != null) { $p_directors_list = explode(',', $movie->director_id); for($i = 0; $i < count($p_directors_list); $i++) { try { $p_director = App\Director::find($p_directors_list[$i])->name; $directors->push($p_director); } catch (Exception $e) { } } } // Actors list of movie from model $actors = collect(); if ($movie->actor_id != null) { $p_actors_list = explode(',', $movie->actor_id); for($i = 0; $i < count($p_actors_list); $i++) { try { $p_actor = App\Actor::find($p_actors_list[$i])->name; $actors->push($p_actor); } catch (Exception $e) { } } } // Genre list of movie from model $genres = collect(); if (isset($movie->genre_id)){ $genre_list = explode(',', $movie->genre_id); for ($i = 0; $i < count($genre_list); $i++) { try { $genre = App\Genre::find($genre_list[$i])->name; $genres->push($genre); } catch (Exception $e) { } } } @endphp

{{$movie->title}} @if($movie->live == 1) @if($movie->livetvicon != NULL) @php $livetv = App\Config::pluck('livetvicon')->first(); @endphp livetvicon-image @else livetvicon-image @endif @endif

    @if(isset($movie->publish_year))
  • {{$movie->publish_year}}
  • @endif @if($movie->live !=1) @if(isset($movie->duration))
  • {{$movie->duration}} {{__('Mins')}}
  • @endif @endif @if(isset($movie->maturity_rating))
  • {{$movie->maturity_rating}}
  • @endif @if($movie->live != 1) @if($configs->user_rating != 1) @if(isset($movie->rating))
  • {{__('Tmdb Rating')}} {{$movie->rating}}
  • @endif @endif @endif
  • {{ views($movie) ->unique() ->count() + $movie->views }}
  • @if($configs->user_rating==1)
  • @endif
@if($auth && getSubscription()->getData()->subscribed == true) @if($movie->is_upcoming != 1) @if(checkInMovie($movie) == true && isset($movie->video_link)) @if($movie->maturity_rating == 'all age' || $age>=str_replace('+', '',$movie->maturity_rating)) @if(isset($movie->video_link['iframeurl']) && $movie->video_link['iframeurl'] != null) {{__('Play Now')}} @else {{__('Play Now')}} @endif @else {{__('Play Now')}} @endif @endif @endif @if($movie->trailer_url != null || $movie->trailer_url != '') {{__('Watch Trailer')}} @endif @else @if($movie->trailer_url != null || $movie->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 @php $mlc = array(); if(isset($movie->multilinks)){ foreach ($movie->multilinks as $key => $value) { if($value->download == 1){ $mlc[] = 1; }else{ $mlc[] = 0; } } } @endphp @if(isset($movie->multilinks) && count($movie->multilinks) > 0 ) @if(Auth::user() && getSubscription()->getData()->subscribed == true) @if(in_array(1, $mlc))
@foreach($movie->multilinks as $key=> $link) @if($link->download == 1) @php $lang = App\AudioLanguage::where('id',$link->language)->first(); @endphp @endif @endforeach
@endif @endif @endif

{{$movie->detail}}

    @if($movie->live!=1) @if (count($directors) > 0)
  • {{__('Directors')}} : @for($i = 0; $i < count($directors); $i++) @if($i == count($directors)-1) {{$directors[$i]}} @else {{$directors[$i]}}, @endif @endfor
  • @endif @if (count($actors) > 0)
  • {{__('Starring')}} : @for($i = 0; $i < count($actors); $i++) @if($i == count($actors)-1) {{$actors[$i]}} @else {{$actors[$i]}}, @endif @endfor
  • @endif @endif @if (count($genres) > 0)
  • {{__('genres')}} : @for($i = 0; $i < count($genres); $i++) @if($i == count($genres)-1) {{$genres[$i]}} @else {{$genres[$i]}}, @endif @endfor
  • @endif
  • {{__('Uploaded By')}} : {{$movie->user->name}}
  • @if(count($movie->subtitles)>0)
  • {{__('Sub titles')}} : @foreach($movie->subtitles as $key=> $sub) @if($key == count($movie->subtitles)-1) {{ $sub['sub_lang'] }} @else {{ $sub['sub_lang'] }}, @endif @endforeach
  • @endif @if (count($a_languages) > 0)
  • {{__('Audio language')}} : @if($movie->a_language != null && isset($a_languages)) @for($i = 0; $i < count($a_languages); $i++) @if($i == count($a_languages)-1) {{$a_languages[$i]}} @else {{$a_languages[$i]}}, @endif @endfor @endif
  • @endif
@if($button->remove_thumbnail == 0)
@if($movie->thumbnail != null || $movie->thumbnail != '') genre-image @else genre-image @endif
@endif
@elseif(isset($season)) @php $a_languages = collect(); if ($season->a_language != null) { $a_lan_list = explode(',', $season->a_language); for($i = 0; $i < count($a_lan_list); $i++) { try { $a_language = App\AudioLanguage::find($a_lan_list[$i])->language; $a_languages->push($a_language); } catch (Exception $e) { } } } if(isset($auth)){ $wishlist_check = \Illuminate\Support\Facades\DB::table('wishlists')->where([ ['user_id', '=', $auth->id], ['season_id', '=', $season->id], ])->first(); } // Actors list of movie from model $actors = collect(); if ($season->actor_id != null) { $p_actors_list = explode(',', $season->actor_id); for($i = 0; $i < count($p_actors_list); $i++) { try { $p_actor = App\Actor::find(trim($p_actors_list[$i]))->name; $actors->push($p_actor); } catch (Exception $e) { } } } // Genre list of movie from model $genres = collect(); if ($season->tvseries->genre_id != null){ $genre_list = explode(',', $season->tvseries->genre_id); for ($i = 0; $i < count($genre_list); $i++) { try { $genre = App\Genre::find($genre_list[$i])->name; $genres->push($genre); } catch (Exception $e) { } } } @endphp

{{$season->tvseries->title}}



    @if(isset($season->publish_year))
  • {{$season->publish_year}}
  • @endif @if(isset($season->season_no))
  • {{$season->season_no}} {{__('Season')}}
  • @endif @if(isset($season->tvseries->age_req))
  • {{$season->tvseries->age_req}}
  • @endif @if($configs->user_rating != 1) @if(isset($season->tvseries->rating))
  • {{__('Tmdb Rating')}} {{$season->tvseries->rating}}
  • @endif @endif
  • {{ views($season) ->unique() ->count() + $season->views }}
  • @if($configs->user_rating==1)
  • @endif
@if($auth && getSubscription()->getData()->subscribed == true) @if(isset($season->episodes[0]) && checkInTvseries($season->tvseries) == true && isset($season->episodes[0]->video_link)) @if($season->tvseries->age_req =='all age' || $age>=str_replace('+', '',$season->tvseries->age_req)) @if($season->episodes[0]->video_link['iframeurl'] !="") {{__('Play Now')}} @else {{__('Play Now')}} @endif @else {{__('Play Now')}} @endif @endif @if($season->trailer_url != null || $season->trailer_url != '') {{__('Watch Trailer')}} @endif @else @if($season->trailer_url != null || $season->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

@if ($season->detail != null || $season->detail != '') {{$season->detail}} @else {{$season->tvseries->detail}} @endif

    @if (count($actors) > 0)
  • {{__('Starring')}} : @for($i = 0; $i < count($actors); $i++) @if($i == count($actors)-1) {{$actors[$i]}} @else {{$actors[$i]}}, @endif @endfor
  • @endif @if (count($genres) > 0)
  • {{__('genres')}} : @for($i = 0; $i < count($genres); $i++) @if($i == count($genres)-1) {{$genres[$i]}} @else {{$genres[$i]}}, @endif @endfor
  • @endif
  • {{__('Uploaded By')}} : {{$season->tvseries->user->name}}
  • @if(count($season->episodes)>0) @php $subtitles = collect(); foreach ($season->episodes as $e) { foreach ($e->subtitles as $sub) { $subtitles->push($sub->sub_lang); } } $subtitles = $subtitles->unique(); @endphp @if(count($subtitles)>0)
  • {{__('subtitles')}} : @foreach($subtitles as $key=> $sub) @if($key == count($subtitles)-1) {{ $sub }} @else {{ $sub }}, @endif @endforeach
  • @endif @endif @if($season->a_language != null && isset($a_languages))
  • {{__('audiolanguage')}} : @for($i = 0; $i < count($a_languages); $i++) @if($i == count($a_languages)-1) {{$a_languages[$i]}} @else {{$a_languages[$i]}}, @endif @endfor
  • @endif
@if($button->remove_thumbnail == 0)
@if($season->thumbnail != null) genre-image @elseif($season->tvseries->thumbnail != null) genre-image @else genre-image @endif
@endif
@endif
@if(isset($actors) && count($actors) > 0)
{{__('Starring')}}
@endif @if(isset($movie->movie_series) && $movie->series != 1) @if(count($movie->movie_series) > 0)
Series {{count($movie->movie_series)}}
@foreach($movie->movie_series as $series) @php $single_series = \App\Movie::where('id', $series->series_movie_id)->first(); if(isset($auth)){ $wishlist_check = \Illuminate\Support\Facades\DB::table('wishlists')->where([ ['user_id', '=', $auth->id], ['movie_id', '=', $single_series->id], ])->first(); } @endphp
@if($single_series->thumbnail != null || $single_series->thumbnail != '') movie-image @else movie-image @endif
@if($auth && getSubscription()->getData()->subscribed == true)
{{$single_series->title}}
@else
{{$single_series->title}}
@endif
  • {{$single_series->duration}} {{__('Mins')}}

{{str_limit($single_series->detail,360)}}

@if($auth && getSubscription()->getData()->subscribed == true) {{__('Read More')}} @else {{__('Read More')}} @endif
@if($auth && getSubscription()->getData()->subscribed == true) @if($single_series->is_upcoming != 1) @if(checkInMovie($single_series) == true && isset($single_series->video_link)) @if($single_series->maturity_rating == 'all age' || $age>=str_replace('+', '',$single_series->maturity_rating)) @if(isset($single_series->video_link['iframeurl']) && $single_series->video_link['iframeurl'] != null) {{__('Play Now')}} @else {{__('Play Now')}} @endif @else {{__('Play Now')}} @endif @endif @endif @if($single_series->trailer_url != null || $single_series->trailer_url != '') {{__('Watch Trailer')}} @endif @else @if($single_series->trailer_url != null || $single_series->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 @php $mlc = array(); if(isset($single_series->multilinks)){ foreach ($single_series->multilinks as $key => $value) { if($value->download == 1){ $mlc[] = 1; }else{ $mlc[] = 0; } } } @endphp @if(isset($single_series->multilinks) && count($single_series->multilinks) > 0 ) @if(Auth::user() && getSubscription()->getData()->subscribed == true) @if(in_array(1, $mlc))
@foreach($single_series->multilinks as $key=> $link) @if($link->download == 1) @php $lang = App\AudioLanguage::where('id',$link->language)->first(); @endphp @endif @endforeach
@endif @endif @endif
@endforeach
@endif @endif @if(isset($filter_series) && $movie->series == 1) @if(count($filter_series) > 0)
{{__('Series')}} {{count($filter_series)}}
@foreach($filter_series as $key => $series) @php if(isset($auth)){ $wishlist_check = \Illuminate\Support\Facades\DB::table('wishlists')->where([ ['user_id', '=', $auth->id], ['movie_id', '=', $series->id], ])->first(); } @endphp
@if($series->thumbnail != null) movie-image @else movie-image @endif
@if($auth && getSubscription()->getData()->subscribed == true)
{{$series->title}}
@else
{{$series->title}}
@endif
  • {{$series->duration}} {{__('Mins')}}

{{str_limit($series->detail,360)}}

@if($auth && getSubscription()->getData()->subscribed == true) {{__('Read More')}} @else {{__('Read More')}} @endif
@if($auth && getSubscription()->getData()->subscribed == true) @if($series->is_upcoming != 1) @if(checkInMovie($series) == true && isset($series->video_link)) @if($series->maturity_rating == 'all age' || $age>=str_replace('+', '',$series->maturity_rating)) @if(isset($series->video_link['iframeurl']) && $series->video_link['iframeurl'] != null) {{__('Play Now')}} @else {{__('Play Now')}} @endif @else {{__('Play Now')}} @endif @endif @endif @if($series->trailer_url != null || $series->trailer_url != '') {{__('Watch Trailer')}} @endif @else @if($series->trailer_url != null || $series->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 @php $mlc = array(); if(isset($series->multilinks)){ foreach ($series->multilinks as $key => $value) { if($value->download == 1){ $mlc[] = 1; }else{ $mlc[] = 0; } } } @endphp @if(isset($series->multilinks) && count($series->multilinks) > 0 ) @if(Auth::user() && getSubscription()->getData()->subscribed == true) @if(in_array(1, $mlc))
@foreach($series->multilinks as $key=> $link) @if($link->download == 1) @php $lang = App\AudioLanguage::where('id',$link->language)->first(); @endphp @endif @endforeach
@endif @endif @endif
@endforeach
@endif @endif

@if(isset($season->episodes)) @if(count($season->episodes) > 0)
{{__('Episodes')}} {{count($season->episodes)}}
@foreach($season->episodes as $key => $episode)
@if($episode->thumbnail != null) genre-image @elseif($episode->thumbnail != null) genre-image @else genre-image @endif
@if($auth && getSubscription()->getData()->subscribed == true) @if(checkInTvseries($episode->seasons->tvseries) == true && isset($episode->video_link)) @if($episode->seasons->tvseries->maturity_rating =='all age' || $age>=str_replace('+', '',$episode->seasons->tvseries->maturity_rating)) @if(isset($episode->video_link['iframeurl']) && $episode->video_link['iframeurl'] !="")
{{$key+1}}. {{$episode->title}}
@else
{{$key+1}}. {{$episode->title}}
@endif @else
{{$key+1}}. {{$episode->title}}
@endif @else
{{$key+1}}. {{$episode->title}}
@endif @else
{{$key+1}}. {{$episode->title}}
@endif
@if(isset($episode->duration) && $episode->duration > 0)
  • {{$episode->duration}}{{__('Mins')}}
@endif
@php $a_languages = collect(); if ($episode->a_language != null) { $a_lan_list = explode(',', $episode->a_language); for($i = 0; $i < count($a_lan_list); $i++) { try { $a_language = App\AudioLanguage::find($a_lan_list[$i])->language; $a_languages->push($a_language); } catch (Exception $e) { } } } @endphp

{{str_limit($episode->detail, 480)}}

@php $elc = array(); if(isset($episode->multilinks)){ foreach ($episode->multilinks as $key => $value) { if($value->download == 1){ $elc[] = 1; }else{ $elc[] = 0; } } } @endphp @if(isset($episode->multilinks) && count($episode->multilinks) >0) @if(Auth::user() && getSubscription()->getData()->subscribed == true) @if(in_array(1, $elc))

@foreach($episode->multilinks as $key=> $link) @if($link->download == 1) @php $lang = App\AudioLanguage::where('id',$link->language)->first(); @endphp @endif @endforeach
@endif @endif @endif
@endforeach
@endif @endif
{{-- comments section start from here --}} @if(isset($movie)) @if($configs->comments == 1 || $configs->user_rating == 1)

@if($configs->comments == 1)
@if(isset($movie->comments) && $movie->comments->isEmpty())

 {{__('No comments yet!')}}

  {{__('Be the first to share what you think !')}}
@else

{{$movie->comments->where('status',1)->count()}} {{__('Comment')}}


@foreach ($movie->comments->where('status','1') as $comment)

{{$comment->name}}

{{date('F jS, Y - g:i a',strtotime($comment->created_at))}}

@if(Auth::check() && (Auth::user()->is_admin == 1 || $comment->user_id == Auth::user()->id)) @endif @if(getSubscription()->getData()->subscribed == true) @endif
{{$comment->comment}}
@foreach($comment->subcomments->where('status',1) as $subcomment)
@php $name=App\user::where('id',$subcomment->user_id)->first(); @endphp
{{$name->name}}

{{date('F jS, Y - g:i a',strtotime($subcomment->created_at))}}

@if(Auth::check() && (Auth::user()->is_admin == 1 || $subcomment->user_id == Auth::user()->id)) @endif
{{$subcomment->reply}}
@endforeach @endforeach @endif
@auth

{{__('Post Comment')}}:


{{Form::open( ['route' => ['movie.comment.store', $movie->id], 'method' => 'POST'])}}
{{Form::label('comment',__('Comment'))}} {{Form::textarea('comment', null, ['class' => 'form-control', 'rows'=> '5','cols' => '9'])}}
{{Form::submit(__('Add Comment'), ['class' => 'btn btn-md btn-default'])}}
@endauth @endif @if($configs->user_rating == 1)
@foreach($movieRating as $mrating)

{{$mrating->user->name}}

{{date('F jS, Y - g:i a',strtotime($mrating->created_at))}}

{{$mrating->review}}

@endforeach
@endif

@endif @endif {{-- comments section start from here --}} @if(isset($season)) @if($configs->comments == 1)

@if(isset($season->tvseries->comments) && $season->tvseries->comments->isEmpty())

 {{__('No comments yet!')}}

  {{__('Be the first to share what you think !')}}
@else

{{$season->tvseries->comments->where('status',1)->count()}} {{__('comment')}}


@foreach ($season->tvseries->comments->where('status',1) as $comment)

{{$comment->name}}

{{date('F jS, Y - g:i a',strtotime($comment->created_at))}}

@if(Auth::check() && (Auth::user()->is_admin == 1 || $comment->user_id == Auth::user()->id)) @endif @if(getSubscription()->getData()->subscribed == true) @endif
{{$comment->comment}}
@foreach($comment->subcomments->where('status',1) as $subcomment)
@php $name=App\user::where('id',$subcomment->user_id)->first(); @endphp
{{$name->name}}

{{date('F jS, Y - g:i a',strtotime($subcomment->created_at))}}

@if(Auth::check() && (Auth::user()->is_admin == 1 || $subcomment->user_id == Auth::user()->id)) @endif
{{$subcomment->reply}}
@endforeach @endforeach @endif
@auth

{{__('Post Comment')}}:


{{Form::open( ['route' => ['tv.comment.store', $season->tvseries->id], 'method' => 'POST'])}}
{{Form::label('comment',__('Comment'))}} {{Form::textarea('comment', null, ['class' => 'form-control', 'rows'=> '5','cols' => '10'])}}
{{Form::submit(__('add comment'), ['class' => 'btn btn-md btn-default'])}}
@endauth

@endif @endif
@if($prime_genre_slider == 1) @php $all = collect(); $all_fil_movies = App\Movie::where('status', 1)->get(); $all_fil_tv = App\TvSeries::all(); if (isset($movie)) { $genres = explode(',', $movie->genre_id); } elseif (isset($season)) { $genres = explode(',', $season->tvseries->genre_id); } for($i = 0; $i < count($genres); $i++) { foreach ($all_fil_movies as $fil_movie) { $fil_genre_item = explode(',', trim($fil_movie->genre_id)); for ($k=0; $k < count($fil_genre_item); $k++) { if (trim($fil_genre_item[$k]) == trim($genres[$i])) { if (isset($movie)) { if ($fil_movie->id != $movie->id) { $all->push($fil_movie); } } else { $all->push($fil_movie); } } } } } if (isset($movie)) { $all = $all->except($movie->id); } for($i = 0; $i < count($genres); $i++) { foreach ($all_fil_tv as $fil_tv) { $fil_genre_item = explode(',', trim($fil_tv->genre_id)); for ($k=0; $k < count($fil_genre_item); $k++) { if (trim($fil_genre_item[$k]) == trim($genres[$i])) { $fil_tv = $fil_tv->seasons; if (isset($season)) { $all->push($fil_tv->except($season->id)); } else { $all->push($fil_tv); } } } } } $all = $all->unique(); $all = $all->flatten(); @endphp @if (isset($all) && count($all) > 0)
{{__('Customer Also Watched')}}
@endif @else @php $all = collect(); $all_fil_movies = App\Movie::all(); $all_fil_tv = App\TvSeries::all(); if (isset($movie)) { $genres = explode(',', $movie->genre_id); } elseif (isset($season)) { $genres = explode(',', $season->tvseries->genre_id); } for($i = 0; $i < count($genres); $i++) { foreach ($all_fil_movies as $fil_movie) { $fil_genre_item = explode(',', trim($fil_movie->genre_id)); for ($k=0; $k < count($fil_genre_item); $k++) { if (trim($fil_genre_item[$k]) == trim($genres[$i])) { if (isset($movie)) { if ($fil_movie->id != $movie->id) { $all->push($fil_movie); } } else { $all->push($fil_movie); } } } } } if (isset($movie)) { $all = $all->except($movie->id); } for($i = 0; $i < count($genres); $i++) { foreach ($all_fil_tv as $fil_tv) { $fil_genre_item = explode(',', trim($fil_tv->genre_id)); for ($k=0; $k < count($fil_genre_item); $k++) { if (trim($fil_genre_item[$k]) == trim($genres[$i])) { $fil_tv = $fil_tv->seasons; if (isset($season)) { $all->push($fil_tv->except($season->id)); } else { $all->push($fil_tv); } } } } } $all = $all->unique(); $all = $all->flatten(); @endphp @if (isset($all) && count($all) > 0)

{{__('Customer Also Watched')}}

{{__('At the Big Screen at Home')}}

@endif @endif
@endsection @section('custom-script') @endsection