{{-- The document register, for the clinic's own side of the counter. Everything a member of staff needs when somebody telephones holding a piece of paper: which versions exist, what became of each, the digest that would settle an argument, and the address to send the caller to. Read-only on purpose. Revocation is not a button here — a report is withdrawn by retracting its results, and a correction is made by amending them, both of which already produce the right entry in this register. A second door marked "revoke" would let somebody change a document's standing without touching the clinical record it describes, and the two would drift. Expects: $issuedDocuments. --}} @if ($issuedDocuments->isNotEmpty()) @foreach ($issuedDocuments as $document)
{{ $document->number }} · v{{ $document->version }} {{ $document->status->publicState() }}
{{ __('documents.verify.issued') }} {{ $document->issued_at->translatedFormat('d M Y H:i') }} @if ($document->issuer) · {{ $document->issuer->name }} @endif
{{-- The digest, shortened for the eye and complete in the tooltip. It is the thing that settles a dispute, so it has to be readable off the screen in full. --}}
@if ($document->pdf_sha256) SHA-256 {{ substr($document->pdf_sha256, 0, 16) }}… · {{ number_format((int) $document->pdf_bytes) }} bytes @else {{ __('laboratory::messages.register.no_file') }} @endif
@if ($document->signature) {{ $document->signature_alg }} · {{ $document->signature_key_id }} @else {{ __('documents.verify.signature_none') }} @endif
@php($url = $document->verificationUrl()) @if ($url)
{{ __('laboratory::messages.register.open') }} {{-- Selected on focus by Clinic's own behaviour, so the address can be copied without a script that reaches for the clipboard API on an insecure origin. --}}
@endif
@endforeach

{{ __('laboratory::messages.register.hint') }}

@endif