@extends('layout.default') @section('title') {{ __('torrent.peers') }} - {{ $torrent->name }} - {{ config('other.title') }} @endsection @section('meta') @endsection @section('breadcrumbs') @endsection @section('nav-tabs') @if (config('announce.external_tracker.is_enabled') && auth()->user()->group->is_modo) @endif @endsection @section('main')

{{ __('torrent.torrent') }} {{ __('torrent.peers') }}

@if (\config('announce.connectable_check') == true) @endif @foreach ($peers as $peer) @if (auth()->user()->group->is_modo || auth()->id() == $peer->user_id) @else @endif @if (\config('announce.connectable_check') == true) @php $connectable = false; if (config('announce.external_tracker.is_enabled')) { $connectable = $peer->connectable; } elseif (cache()->has('peers:connectable:' . $peer->ip . '-' . $peer->port . '-' . $peer->agent)) { $connectable = cache()->get('peers:connectable:' . $peer->ip . '-' . $peer->port . '-' . $peer->agent); } @endphp @endif @endforeach
{{ __('common.user') }} {{ __('torrent.progress') }} {{ __('common.upload') }} {{ __('common.download') }} {{ __('torrent.left') }} {{ __('torrent.client') }} {{ __('common.ip') }} {{ __('common.port') }}Connectable{{ __('torrent.started') }} {{ __('torrent.last-update') }} {{ __('common.status') }} Visible
{{ $peer->progress }}% {{ \App\Helpers\StringHelper::formatBytes($peer->uploaded, 2) }} {{ \App\Helpers\StringHelper::formatBytes($peer->downloaded, 2) }} {{ \App\Helpers\StringHelper::formatBytes($peer->left, 2) }} {{ $peer->agent }}{{ $peer->ip }} {{ $peer->port }}--- --- @choice('user.client-connectable-state', $connectable) @if ($peer->active) @if ($peer->seeder) {{ __('torrent.seeder') }} @else {{ __('torrent.leecher') }} @endif @else Inactive @endif @if ($peer->visible) {{ __('common.yes') }} @else {{ __('common.no') }} @endif
@endsection