@extends('layout.default') @section('title') {{ __('torrent.history') }} - {{ $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('content')

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

Total Up: {{ App\Helpers\StringHelper::formatBytes($histories->sum('actual_uploaded'), 2) }}
Total Down: {{ App\Helpers\StringHelper::formatBytes($histories->sum('actual_downloaded'), 2) }}
@foreach ($histories as $history) @if (auth()->user()->group->is_modo || auth()->id() === $history->user_id) @else @endif @if ($history->active) @else @endif @if ($history->seeder) @else @endif @if ($history->seedtime < config('hitrun.seedtime')) @else @endif @endforeach
{{ __('common.user') }} {{ __('torrent.agent') }} {{ __('common.connected') }} {{ __('torrent.completed') }} {{ __('common.upload') }} {{ __('common.download') }} {{ __('torrent.refunded') }} {{ __('common.added') }} {{ __('torrent.last-update') }} {{ __('torrent.completed_at') }} {{ __('torrent.seedtime') }}
{{ $history->agent }}---{{ strtolower(__('common.yes')) }}{{ strtolower(__('common.no')) }}{{ strtolower(__('common.yes')) }}{{ strtolower(__('common.no')) }} {{ 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) }}) ({{ App\Helpers\StringHelper::formatBytes($history->refunded_download, 2) }}) {{ App\Helpers\StringHelper::timeElapsed($history->seedtime) }} {{ App\Helpers\StringHelper::timeElapsed($history->seedtime) }}
@endsection