@extends('layouts.theme') @section('title',__('watch history')) @section('main-wrapper')
@php $withlogin= App\Config::findOrFail(1)->withlogin; $catlog= App\Config::findOrFail(1)->catlog; $auth=Auth::user(); @endphp @if (isset($pusheditems) && count($pusheditems) > 0 )
{{__('watch history')}}
@if(isset($pusheditems)) @foreach($pusheditems as $item) @if($auth && getSubscription()->getData()->subscribed == true) @php if (isset($item->type) && $item->type == 'M') { $wishlist_check = \Illuminate\Support\Facades\DB::table('wishlists')->where([ ['user_id', '=', $auth->id], ['movie_id', '=', $item->id], ])->first(); } if (isset($item->type) && $item->type == 'S') { $wishlist_check = \Illuminate\Support\Facades\DB::table('wishlists')->where([ ['user_id', '=', $auth->id], ['season_id', '=', $item->id], ])->first(); } @endphp @endif @if(isset($item->type) && $item->type == "M") @if($item->status == 1) @php $is_play = 0; if(getSubscription()->getData()->subscribed == true){ foreach($item->menus as $moviemenu){ if(array_search($moviemenu->menu_id, array_column(getSubscription()->getData()->nav_menus, 'id')) !== false) { $is_play = 1; } } } @endphp @if(hidedata($item->id,$item->type) != 1)
@if($item->thumbnail != null || $item->thumbnail != '') genre-image @else genre-image @endif @if(timecalcuate($auth->id,$item->id,$item->type) != 0)
@endif @if($item->is_custom_label == 1) @if(isset($item->label_id)) {{$item->label->name}} @endif @else @if(isset($item->is_upcoming) && $item->is_upcoming == 1) @if($item->upcoming_date != NULL) {{date('M jS Y',strtotime($item->upcoming_date))}} @else {{__('Coming Soon')}} @endif @endif @endif
{!! Form::open(['method' => 'DELETE', 'action' => ['WatchController@moviedestroy', $item->id]]) !!}
{!! Form::close() !!} @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) @if($item->maturity_rating == 'all age' || $age>=str_replace('+', '', $item->maturity_rating)) @if($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 != '') {{__('watcht railer')}} @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 @elseif(isset($item->type) && $item->type == "S") @if($item->tvseries->status == 1) @if(hidedata($item->id,$item->type) != 1)
@if($item->tvseries->thumbnail != null || $item->tvseries->thumbnail != '') genre-image @else genre-image @endif @if($item->tvseries->is_custom_label == 1) @if(isset($item->tvseries->label_id)) {{$item->tvseries->label->name}} @endif @endif
{!! Form::open(['method' => 'DELETE', 'action' => ['WatchController@showdestroy', $item->tvseries->id]]) !!}
{!! Form::close() !!} @if(isset($protip) && $protip == 1)
{{$item->tvseries->title}}
{{__('Tmdb Rating')}} {{$item->tvseries->rating}}
  • {{__('Season')}}{{$item->season_no}}
  • {{$item->publish_year}}
  • {{$item->tvseries->age_req}}
  • @if($item->subtitle == 1)
  • {{__('Subtitles')}}
  • @endif
@if ($item->detail != null || $item->detail != '')

{{$item->detail}}

@else

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

@endif
@if($auth && getSubscription()->getData()->subscribed == true) @if(isset($item->episodes[0]) && checkInTvseries($item->tvseries) == true) @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 @endif @endforeach @endif
{!! $pusheditems->links() !!}
@endif @endsection @section('custom-script') @endsection