@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)
@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)
@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)
@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)
@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($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
@endforeach
@else
{{__('Sorry, there are no data that matched your search request')}}
{{__('Please try diffrent criteria such as actor, director and genre etc !')}}
@endif
@endif
@endsection
@section('custom-script')
@endsection