@props([ 'media', 'personalFreeleech', ])
@if (auth()->user()->settings->show_poster) {{ __('torrent.similar') }} @endif

{{ $media->name ?? '' }} ( )

@if ($media->creators->isNotEmpty()) by @foreach ($media->creators as $creator) {{ $creator->name }} @if (! $loop->last) , @endif @endforeach @endif
@foreach ($media->genres->take(3) as $genre) {{ $genre->name }} @endforeach

{{ $media->overview ?? '' }}

@if (array_key_exists('Complete Pack', $media->torrents))
Complete pack @foreach ($media->torrents['Complete Pack'] as $type => $torrents) @foreach ($torrents as $torrent) @if ($loop->first) @endif @include('components.partials._torrent-group-row') @endforeach @endforeach
{{ $type }}
@endif @if (array_key_exists('Specials', $media->torrents))
torrents) && ! array_key_exists('Seasons', $media->torrents)) open @endif > Specials @foreach ($media->torrents['Specials'] as $specialName => $special)
first) open @endif > {{ $specialName }} @foreach ($special as $type => $torrents) @foreach ($torrents as $torrent) @if ($loop->first) @endif @include('components.partials._torrent-group-row') @endforeach @endforeach
{{ $type }}
@endforeach
@endif @foreach ($media->torrents['Seasons'] ?? [] as $seasonName => $season)
first) open @endif > {{ $seasonName }} @if (array_key_exists('Season Pack', $season) && ! array_key_exists('Episodes', $season)) @foreach ($season['Season Pack'] as $type => $torrents) @foreach ($torrents as $torrent) @if ($loop->first) @endif @include('components.partials._torrent-group-row') @endforeach @endforeach
{{ $type }}
@elseif (array_key_exists('Season Pack', $season))
Season pack @foreach ($season['Season Pack'] as $type => $torrents) @foreach ($torrents as $torrent) @if ($loop->first) @endif @include('components.partials._torrent-group-row') @endforeach @endforeach
{{ $type }}
@endif @foreach ($season['Episodes'] ?? [] as $episodeName => $episode)
first && ! array_key_exists('Season Pack', $season)) open @endif > {{ $episodeName }} @foreach ($episode as $type => $torrents) @foreach ($torrents as $torrent) @if ($loop->first) @endif @include('components.partials._torrent-group-row') @endforeach @endforeach
{{ $type }}
@endforeach
@endforeach