@extends('layouts.theme') @section('title',"Search result for $searchKey") @section('main-wrapper') @php $age=0; if ($configs->age_restriction==1) { if(Auth::user()){ $user_id=Auth::user()->id; $user=App\User::findOrfail($user_id); $age=$user->age; } }else{ $age=100; } $withlogin= $configs->withlogin; $auth=Auth::user(); @endphp
@if(isset($actor))
@php if ($actor->image != null) { $content = @file_get_contents(public_path() . '/images/actors/' . $actor->image); if($content){ $image = public_path() .'/images/actors/' . $actor->image; }else{ $image = Avatar::create($actor->name)->toBase64(); } }else{ $image = Avatar::create($actor->name)->toBase64(); } $imageData = base64_encode(@file_get_contents($image)); if($imageData){ $actorsrc = 'data: '.mime_content_type($image).';base64,'.$imageData; } @endphp @if($actorsrc != NULL) actor-image @endif
{{$actor->name}}

{{__('dob')}}- {{$actor->DOB ? $actor->DOB : __('Not Available') }}

{{__('placeofbirth')}}- {{$actor->place_of_birth ? $actor->place_of_birth : __('Not Available')}}

{{$actor->biography}}

{{count($filter_video)}} {{__('Found For')}} "{{$searchKey}}"
@endif @if(isset($director))
@php if ($director->image != null) { $content = @file_get_contents(public_path() . '/images/directors/' . $director->image); if($content){ $image = public_path() .'/images/directors/' . $director->image; }else{ $image = Avatar::create($director->name)->toBase64(); } }else{ $image = Avatar::create($director->name)->toBase64(); } $imageData = base64_encode(@file_get_contents($image)); if($imageData){ $directorsrc = 'data: '.mime_content_type($image).';base64,'.$imageData; } @endphp @if($directorsrc !=NULL) Director-image @endif
{{$director->name}}

{{__('DOB')}}- {{$director->DOB}}

{{__('Place of Brth')}}- {{$director->place_of_birth}}

{{$director->biography}}

{{count($filter_video)}} {{__('Found For')}} "{{$searchKey}}"
@endif @if(isset($filter_video)) @if(count($filter_video) > 0) @foreach($filter_video->unique('id') as $key => $item) @php if($auth){ if ($item->type == 'M') { $wishlist_check = \Illuminate\Support\Facades\DB::table('wishlists')->where([ ['user_id', '=', $auth->id], ['movie_id', '=', $item->id], ])->first(); } else { $wishlist_check = \Illuminate\Support\Facades\DB::table('wishlists')->where([ ['user_id', '=', $auth->id], ['season_id', '=', $item->id], ])->first(); } } @endphp
@if($item->type == 'M') @php if($item->thumbnail != NULL){ $content = @file_get_contents(public_path() .'/images/movies/thumbnails/'.$item->thumbnail); if($content){ $image = public_path() .'/images/movies/thumbnails/'.$item->thumbnail; }else{ $image = Avatar::create($item->title)->toBase64(); } }else{ $image = Avatar::create($item->title)->toBase64(); } $imageData = base64_encode(@file_get_contents($image)); if($imageData){ $movie_src = 'data: '.mime_content_type($image).';base64,'.$imageData; } @endphp @if($movie_src != null) genre-image @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 @elseif($item->type == 'S') @php if($item->thumbnail != NULL){ $content = @file_get_contents(public_path() .'/images/tvseries/thumbnails/'. $item->thumbnail); if($content){ $image = public_path() .'/images/tvseries/thumbnails/'. $item->thumbnail; } }elseif($item->tvseries->thumbnail != NULL){ $content = @file_get_contents(public_path() .'/images/tvseries/thumbnails/'. $item->tvseries->thumbnail); if($content){ $image = public_path() .'/images/tvseries/thumbnails/'. $item->tvseries->thumbnail; } }else{ $image = Avatar::create($item->tvseries->title)->toBase64(); } $imageData = base64_encode(@file_get_contents($image)); if($imageData){ $tvseires_src = 'data: '.mime_content_type($image).';base64,'.$imageData; } @endphp @if($tvseires_src != null) genre-image @if($item->tvseries->is_custom_label == 1) @if(isset($item->tvseries->label_id)) {{$item->tvseries->label->name}} @endif @endif @endif @endif
@if($item->type == 'M') @if($auth && getSubscription()->getData()->subscribed == true) {{$item->title}} @else {{$item->title}} @endif @elseif($item->type == 'S') @if($auth && getSubscription()->getData()->subscribed == true) {{$item->tvseries->title}} @else {{$item->tvseries->title}} @endif @endif
  • @if($item->type == 'M') @if($item->duration != NULL) {{$item->duration}} {{__('Mins')}}@endif @else {{__('Season')}} {{$item->season_no}} @endif

@if($item->type == 'M') {{str_limit($item->detail, 360)}} @if($auth && getSubscription()->getData()->subscribed == true) {{__('Read More')}} @else {{__('Read More')}} @endif @else @if ($item->detail != null || $item->detail != '') {{str_limit($item->detail, 360)}} @if($auth && getSubscription()->getData()->subscribed == true) {{__('Read More')}} @else {{__('Read More')}} @endif @else {{str_limit($item->tvseries->detail, 360)}} @if($auth && getSubscription()->getData()->subscribed == true) {{__('Read More')}} @else {{__('Read More')}} @endif @endif @endif

@if($auth && getSubscription()->getData()->subscribed == true) @if($item->type == 'M' ) @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(isset($item->episodes[0]) && checkInTvseries($item) == true && isset($item->episodes[0]->video_link)) @if(isset($item->episodes[0]->video_link->iframeurl) && $item->episodes[0]->video_link->iframeurl !="") {{__('Play Now')}} @else {{__('Play Now')}} @endif @endif @endif @if($auth) @if (isset($wishlist_check->added)) {{$wishlist_check->added == 1 ? __('Rmove From Watchlist') : __('Add to Watchlist')}} @else {{__('Add to Watchlist')}} @endif @endif @else
@if($item->trailer_url != null || $item->trailer_url != '') {{__('Watch Trailer')}} @endif
@endif
@endforeach @else
@endif @endif
@endsection @section('custom-script') @endsection