{{-- The page a recipient opens. No anchored components (menus, tooltips) on it: it has to work on iOS before Safari 18.4, which cannot position them. --}} {{-- Under the page's h1, what the recipient acts on is in cards: the password, or the share's private text and its files, each in its own card, with the share's expiry and limit under them. --}} @if (! $authenticated) @else {{-- A download link does not render the page again: the download limit's note switches on the first press of any download or "Show text", and the server draws the open window on the next visit. --}} {{-- The text is fetched only when the recipient asks for it, never with the page: a link preview must not use up a share limited to one download. It stays in Alpine and is drawn as plain text. --}} @if ($hasText) @endif @if ($files->isNotEmpty()) @foreach ($files as $file) {{ Number::fileSize($file->file_size) }} @endforeach @if ($files->count() > 1) @else @endif @endif @if ($share->expires_at || $share->max_downloads) @if ($share->expires_at)

{{ __('Expires') }}: {{ $share->expires_at->diffForHumans() }}

@endif @if ($share->max_downloads) @if ($hasText) @if ($downloadWindowEndsAt)

{{ __('You can open this share for another :time.', ['time' => $downloadWindowEndsAt->diffForHumans(syntax: \Carbon\CarbonInterface::DIFF_ABSOLUTE)]) }}

@elseif ($remainingDownloads > 0)

{{ trans_choice('{1} Showing the text or downloading uses the last remaining download. You then have :window to open this share.|[2,*] Showing the text or downloading uses 1 of :count remaining downloads. You then have :window to open this share.', $remainingDownloads, ['window' => $downloadWindow]) }}

{{ __('You have :window to open this share.', ['window' => $downloadWindow]) }}

@endif @elseif ($downloadWindowEndsAt)

{{ __('You can download these files for another :time.', ['time' => $downloadWindowEndsAt->diffForHumans(syntax: \Carbon\CarbonInterface::DIFF_ABSOLUTE)]) }}

@elseif ($remainingDownloads > 0)

{{ trans_choice('{1} Downloading uses the last remaining download. You then have :window to download the files.|[2,*] Downloading uses 1 of :count remaining downloads. You then have :window to download the files.', $remainingDownloads, ['window' => $downloadWindow]) }}

{{ __('You have :window to download the files.', ['window' => $downloadWindow]) }}

@endif @endif
@endif
@endif