@php
$cpy = App\PlayerSetting::first();
$user_id = auth()->user()->id;
$movie_id = $movie->id;
if($cpy->is_resume == 1){
$filename = 'time.json';
if(file_exists(storage_path() .'/app/time/movie/user_'.$user_id.'/movie_'.$movie_id.'/'.$filename)){
$result = @file_get_contents(storage_path() .'/app/time/movie/user_'.$user_id.'/movie_'.$movie_id.'/'.$filename);
$result = json_decode($result);
$current_time = $result->current_time;
}else{
$current_time = '00';
}
}else{
$current_time = '00';
}
@endphp
@if(isset($movie->video_link->iframeurl) && $movie->video_link->iframeurl != NULL)
@if(strstr($movie->video_link->iframeurl,'https://bradmax.com/'))
@elseif(strstr($movie->video_link->iframeurl,'.mp4'))
@elseif(strstr($movie->video_link->iframeurl,'.mkv'))
@else
@endif
@endif