{{ __('torrent.name') }} @include('livewire.includes._sort-icon', ['field' => 'name']) | @include('livewire.includes._sort-icon', ['field' => 'seeders']) | @include('livewire.includes._sort-icon', ['field' => 'leechers']) | @include('livewire.includes._sort-icon', ['field' => 'times_completed']) | {{ __('torrent.client') }} @include('livewire.includes._sort-icon', ['field' => 'agent']) | {{ __('torrent.size') }} @include('livewire.includes._sort-icon', ['field' => 'size']) | {{ __('common.upload') }} @include('livewire.includes._sort-icon', ['field' => 'actual_uploaded']) | {{ __('common.download') }} @include('livewire.includes._sort-icon', ['field' => 'actual_downloaded']) | {{ __('common.ratio') }} @include('livewire.includes._sort-icon', ['field' => 'actual_ratio']) | Leeched @include('livewire.includes._sort-icon', ['field' => 'leechtime']) | Seeded @include('livewire.includes._sort-icon', ['field' => 'seedtime']) | {{ __('torrent.started') }} @include('livewire.includes._sort-icon', ['field' => 'created_at']) | {{ __('torrent.updated') }} @include('livewire.includes._sort-icon', ['field' => 'updated_at']) | {{ __('torrent.completed') }} @include('livewire.includes._sort-icon', ['field' => 'completed_at']) | {{ __('torrent.prewarn') }} @include('livewire.includes._sort-icon', ['field' => 'prewarned_at']) | @include('livewire.includes._sort-icon', ['field' => 'status']) | @foreach ($histories as $history)|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ $history->name }} | {{ $history->seeders }} | {{ $history->leechers }} | {{ $history->times_completed }} | {{ $history->agent ?: __('common.unknown') }} | {{ App\Helpers\StringHelper::formatBytes($history->size) }} |
{{ App\Helpers\StringHelper::formatBytes($history->actual_uploaded, 2) }}
{{ App\Helpers\StringHelper::formatBytes($history->uploaded, 2) }} |
{{ App\Helpers\StringHelper::formatBytes($history->actual_downloaded, 2) }}
{{ App\Helpers\StringHelper::formatBytes($history->downloaded, 2) }} |
@php($ratio = $history->actual_ratio < 1000 ? \number_format($history->actual_ratio, 2) : INF)
{{ $ratio }}
@php($ratio = $history->ratio < 1000 ? \number_format($history->ratio, 2) : INF) {{ $ratio }} |
@if ($showMorePrecision)
@if ($history->leechtime === null) N/A @else {{ App\Helpers\StringHelper::timeElapsed($history->leechtime) }} @endif | @if ($history->seedtime === null) N/A @else {{ App\Helpers\StringHelper::timeElapsed($history->seedtime) }} @endif | @else | @if ($history->leechtime === null) N/A @else {{ \implode(' ', \array_slice(\explode(' ', App\Helpers\StringHelper::timeElapsed($history->leechtime)), 0, 2)) }} @endif | @if ($history->seedtime === null) N/A @else {{ \implode(' ', \array_slice(\explode(' ', App\Helpers\StringHelper::timeElapsed($history->seedtime)), 0, 2)) }} @endif | @endif | @if ($history->seeding == 1) @else @endif | @if ($history->leeching == 1) @else @endif | @if ($history->hitrun == 1) @else @endif | @if ($history->immune) user()->group->is_modo) x-on:click.prevent="updateImmune(false)" data-b64-deletion-message="{{ base64_encode('Are you sure you want to set this history record to not immune: ' . $history->name . '?') }}" style="cursor: pointer" @endif > @else user()->group->is_modo) x-on:click.prevent="updateImmune(true)" data-b64-deletion-message="{{ base64_encode('Are you sure you want to set this history record to immune: ' . $history->name . '?') }}" style="cursor: pointer" @endif > @endif | @if ($history->uploader == 1) @else @endif | @switch($history->status) @case(\App\Models\Torrent::PENDING) @break @case(\App\Models\Torrent::APPROVED) @break @case(\App\Models\Torrent::REJECTED) @break @case(\App\Models\Torrent::POSTPONED) @break @endswitch |