@php $title = ''; if (! isset($episode) && isset($hentai)) { $episode = $hentai->episodes[0]; $gallery = $episode->gallery; $title = "{$episode->title} - Watch All Episodes English Subbed in 4K | hstream.moe"; $canonical = url('/hentai/'.$hentai->slug); } else { $title = "{$episode->title} Episode {$episode->episode} - English Subbed 4K Stream | hstream.moe"; $canonical = url('/hentai/'.$episode->slug); } $description = Str::limit( preg_replace('/\s+/', ' ', strip_tags($episode->description)), 160 ); @endphp {{ $title }} @if(isset($gallery) && $episode->gallery->isNotEmpty()) @endif @if($episode->gallery->isNotEmpty()) @endif @if (!isset($hentai)) @php $data = [ "@context" => "https://schema.org", "@type" => "VideoObject", "name" => "$episode->title Episode $episode->episode", "description" => $description, "url" => $canonical, "uploadDate" => $episode->created_at->toIso8601String() ]; if ( $episode->gallery->isNotEmpty() ) { $data["thumbnailUrl"] = url($episode->gallery[0]->image_url); } $tags = []; foreach($episode->tags as $tag) { $tags[] = $tag->name; } $data["genre"] = $tags; $data["interactionStatistic"] = [ "@type" => "InteractionCounter", "interactionType" => [ "@type" => "WatchAction" ], "userInteractionCount" => $episode->view_count ]; @endphp @endif