• @if ($fileExists = file_exists(public_path() . '/files/torrents/' . $torrent->file_name)) @if (config('torrent.download_check_page') == 1) {{ __('common.download') }} @else {{ __('common.download') }} @endif @else {{ __('common.magnet') }} @endif
  • @if ($fileExists) @if ($torrent->free !== 100 && config('other.freeleech') == false && ! $personal_freeleech && $user->group->is_freeleech == 0 && ! $torrent->freeleechToken_exists)
  • @csrf
  • @endif @endif @if (config('other.thanks-system.is-enabled'))
  • @livewire('thank-button', ['torrent' => $torrent])
  • @endif @if ($torrent->nfo)
  • NFO

    {{ iconv('cp437', 'utf8', $torrent->nfo) }}
  • @endif
  • {{ __('torrent.tip-jar') }}

    @csrf
    {!! __('torrent.torrent-tips', ['total' => $total_tips, 'user' => $user_tips]) !!}. ({{ __('torrent.torrent-tips-desc') }})
  • {{ __('common.files') }}

    {{ __('torrent.info-hash') }}: {{ bin2hex($torrent->info_hash) }}
    @if ($torrent->folder !== null) {{ $torrent->folder }} ({{ $torrent->files()->count() }}) {{ App\Helpers\StringHelper::formatBytes($torrent->size, 2) }} @endif @foreach ($files = $torrent->files->sortBy(fn ($file) => (($dir = dirname($file->name)) === '.' ? chr(0xFF) : $dir."/".chr(0xFF)).basename($file->name), SORT_NATURAL)->values() as $file) @php $prevNodes = explode('/', $files[$loop->index - 1]->name ?? ' '); @endphp @foreach ($nodes = explode("/", $file->name) as $node) @if (($prevNodes[$loop->index] ?? '') != $node) @for ($depth = count($prevNodes); $depth > $loop->index; $depth--) {{-- format-ignore-start --}} {{-- format-ignore-end --}} @endfor @for ($depth = $loop->index; $depth < $loop->count; $depth++) {{-- format-ignore-start --}}
    {{-- format-ignore-end --}} $depth !== $loop->count - 1, 'list-style-type: none' => $depth === $loop->count - 1, ]) > @if ($depth == $loop->count - 1) {{ $nodes[$depth] }} {{ $file->getSize() }} @else {{ $nodes[$depth] }} @php $filteredFiles = $files->filter( fn ($value) => str_starts_with( $value->name, implode('/', array_slice($nodes, 0, $depth + 1)) . '/' ) ); @endphp ({{ $filteredFiles->count() }}) {{ App\Helpers\StringHelper::formatBytes($filteredFiles->sum('size'), 2) }} @endif @endfor @break @endif @endforeach @endforeach
    @foreach ($torrent->files as $index => $file) @endforeach
    # {{ __('common.name') }} {{ __('torrent.size') }}
    {{ $index + 1 }} {{ $file->name }} {{ $file->getSize() }}
  • @livewire('bookmark-button', [ 'torrent' => $torrent, 'isBookmarked' => $torrent->bookmarks_exists, 'user' => auth()->user(), 'bookmarksCount' => $torrent->bookmarks_count ?? 0, ])
  • @if ($playlists->count() > 0)
  • Add Torrent To Playlist

    @csrf

  • @endif @if ($torrent->seeders <= 2 && /* $history is used inside the resurrection code below and assumes is set if torrent->seeders are equal to 0 */ null !== ($history = $user ->history() ->where('torrent_id', $torrent->id) ->first()) && $history->seeder == 0 && $history->active == 1)
  • @csrf
  • @endif @if (DB::table('resurrections')->where('torrent_id', '=', $torrent->id)->where('rewarded', '=', 0)->exists())
  • @elseif ($torrent->seeders == 0 && $torrent->created_at->lt(\Illuminate\Support\Carbon::now()->subDays(30)))
  • {{ __('graveyard.resurrect') }} {{ strtolower(__('torrent.torrent')) }} ?

    @csrf

    {{ __('graveyard.howto') }}

    {!! __('graveyard.howto-desc1', ['name' => $torrent->name]) !!} {{ $history === null ? '0' : App\Helpers\StringHelper::timeElapsed($history->seedtime) }} {{ strtolower(__('graveyard.howto-hits')) }} {{ $history === null ? App\Helpers\StringHelper::timeElapsed(config('graveyard.time')) : App\Helpers\StringHelper::timeElapsed($history->seedtime + config('graveyard.time')) }} {{ strtolower(__('graveyard.howto-desc2')) }} {{ config('graveyard.reward') }} {{ __('torrent.freeleech') }} Token(s)!

  • @endif
  • {{ __('common.report') }} {{ strtolower(__('torrent.torrent')) }}: {{ $torrent->name }}

    @csrf

  • @if ($user->group->is_modo) @if (! $torrent->trump_exists)
  • Trump {{ strtolower(__('torrent.torrent')) }}: {{ $torrent->name }}

    @csrf

  • @else
  • @csrf @method('DELETE')
  • @endif @endif