{{-- The shares as a list, not a table: a table's columns need more than the page's 40rem, and every page keeps that one width. The sort is a full-width select above the list instead of column headers. --}} @if ($shares->total() === 0) @else {{-- Each share fits the column on a phone: the token opens it, so delete is the one button; the details are two short lines that never clip (admin-shares, app.css). --}} @foreach ($shares as $share) {{ $share->token }} {{ trans_choice(':count file|:count files', $share->files_count) }} · {{ Number::fileSize($share->total_size) }} · {{ $share->max_downloads ? trans_choice(':count of :max download|:count of :max downloads', $share->max_downloads, ['count' => $share->download_count, 'max' => $share->max_downloads]) : trans_choice(':count download|:count downloads', $share->download_count) }} {{-- A share at its limit is closed; the cleanup deletes it a day after its last download. --}} @if ($share->hasReachedDownloadLimit()) {{ __('Download limit reached') }} @elseif (! $share->expires_at) {{ __('Never expires') }} @elseif ($share->isExpired()) {{ __('Expired :time', ['time' => $share->expires_at->diffForHumans()]) }} @else {{ __('Expires :time', ['time' => $share->expires_at->diffForHumans()]) }} @endif @endforeach {{ $shares->links() }} @endif {{ __('Are you sure you want to delete this share?') }}