@php if ($history->watchable_type == 'movie') { $thumbnail = $history->movie->thumbnail; $title = $history->movie->title; $movie_id = $history->movie->id; if (is_rent_expire('movie', $movie_id) && is_rental('movie', $movie_id) || is_free('movie', $movie_id) || check_subscription() && !is_rental('movie', $movie_id) || is_admin()) { $video_url = route('watch.movie', ['slug' => $history->movie->slug]); } } elseif($history->watchable_type == 'episode') { $thumbnail = $history->episode->poster; $title = $history->episode->episode_name; $series_id = $history->episode->tv_show_id; $order = $history->episode->order; if (is_rent_expire('series', $series_id) && is_rental('series', $series_id) || is_free('series', $series_id) || check_subscription() && !is_rental('series', $series_id) || is_admin()) { $video_url = route('watch.episode', ['slug' => $history->episode->slug]); } } @endphp
imageCard

{{ $title }}

{{ watch_history_duration($history->watchable_type, $history->duration, $history->watched_seconds, $order ?? 0) }}