{{-- 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 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) }} · {{ trans_choice(':count download|:count downloads', $share->download_count) }}
@if (! $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?') }}