@extends('layout.with-main-and-sidebar') @section('title') {{ __('torrent.download-check') }} - {{ config('other.title') }} @endsection @section('breadcrumbs') @endsection @section('page', 'page__torrent-download-check--show') @section('main')

{{ __('common.info') }}

{{ __('common.name') }}
{{ $torrent->name }}
{{ __('torrent.size') }} :
{{ $torrent->getSize() }}
{{ __('torrent.released') }}
{{ $torrent->created_at->diffForHumans() }}
{{ __('torrent.seeders') }}
{{ $torrent->seeders }}
{{ __('torrent.leechers') }}
{{ $torrent->leechers }}
{{ __('torrent.completed') }}
{{ $torrent->times_completed }}
@endsection @section('sidebar')

{{ __('torrent.download-check') }}

@if (($user->ratio < config('other.ratio') || $user->can_download == 0) && $torrent->user_id !== $user->id)

{{ __('torrent.no-privileges') }}

@else

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

@endif
{{ __('common.ratio') }} {{ strtolower(__('torrent.greater-than')) }} {{ config('other.ratio') }} :
@if ($user->ratio < config('other.ratio')) {{ strtoupper(__('torrent.failed')) }} @else {{ strtoupper(__('torrent.passed')) }} @endif
{{ __('torrent.download-rights-active') }}
@if ($user->can_download == 0 && $torrent->user_id != $user->id) {{ strtoupper(__('torrent.failed')) }} @else {{ strtoupper(__('torrent.passed')) }} @endif
{{ __('torrent.moderation') }}
@if ($torrent->status === \App\Enums\ModerationStatus::REJECTED) {{ strtoupper(__('torrent.rejected')) }} @elseif ($torrent->status === \App\Enums\ModerationStatus::PENDING) {{ strtoupper(__('torrent.pending')) }} @elseif ($torrent->status === \App\Enums\ModerationStatus::POSTPONED) {{ strtoupper(__('torrent.postponed')) }} @else {{ strtoupper(__('torrent.approved')) }} @endif
@if (($user->ratio < config('other.ratio') || $user->can_download == 0) && $torrent->user_id != $user->id) {{ __('torrent.no-privileges-desc') }} @else

{{ __('common.download') }}

@endif
@endsection