Certified/resources/views/mail/share-created.blade.php
Joël van de Wouw ad2a78a989 Replace email-only sharing with secure share pages
Sharing certificates now creates a Share: a public page behind an
unguessable token where the recipient views and downloads the selected
certificates individually or as a ZIP, instead of receiving links or
attachments by email.

- Share model + certificate_share pivot; expiration (1/7/30 days),
  optional password (encrypted so the owner can re-view it), revocation,
  and open tracking
- Public routes under shared/{token}: password unlock gate (throttled,
  session-scoped), per-certificate download, on-the-fly ZIP that is
  AES-256 encrypted when the share has a password, friendly 410 page
  for expired/revoked links
- Share modal on the certificates index now creates the page and
  reveals a copyable link + password; optional transactional email
  (ShareCreatedMail) still sends the link to a recipient
- New Shares page in the sidebar to copy links, look up passwords,
  revoke, and delete shares
- Old signed-URL controller and both attachment/link mailables removed;
  Dutch translations updated; Pest coverage for the full lifecycle

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 15:38:43 +02:00

22 lines
812 B
PHP

<x-mail::message>
# {{ __('Certificates shared with you') }}
{{ trans_choice(':name has shared :count certificate with you.|:name has shared :count certificates with you.', $certificateCount, ['name' => $senderName, 'count' => $certificateCount]) }}
{{ __('You can view and download them on a secure page:') }}
<x-mail::button :url="$shareUrl">
{{ __('View shared certificates') }}
</x-mail::button>
@if ($hasPassword)
{{ __('The page is protected with a password. :name will share it with you through a separate channel.', ['name' => $senderName]) }}
@endif
{{ __('This page is available until :date, after which it will stop working.', ['date' => $expiresAt]) }}
{{ __('If you did not expect this email, you can safely ignore it.') }}
{{ __('Thanks') }},<br>
{{ config('app.name') }}
</x-mail::message>