{{-- The patient's upload page. A standalone document rather than an extension of any staff layout. Those layouts carry navigation, a user menu and a settings link — every one of which is either broken or a disclosure on a page reached without signing in. This page has no chrome, no scripts and nothing to click but the form. It shows the patient's first name and nothing else. Anyone who obtains a forwarded link must not be able to read a full name, a date of birth, an MRN or any previous upload from it. --}} {{-- Almost every patient opens this on a phone, from a message. --}} {{ __('portal::messages.public.title') }} · {{ config('clinic.product.name') }} {{-- A link to a medical upload page has no business in a referrer header or a search index. --}}

{{ config('clinic.name') ?: config('clinic.product.name') }}

@if ($state === 'open')

@if ($firstName) {{ __('portal::messages.public.greeting', ['name' => $firstName]) }} @else {{ __('portal::messages.public.greeting_generic') }} @endif

@if ($link?->purpose)

{{ __('portal::messages.public.asked_for') }} {{ $link->purpose }}

@endif @if (session('uploaded'))

{{ trans_choice('portal::messages.public.received', (int) session('uploaded'), ['count' => (int) session('uploaded')]) }}

@endif @error('files')

{{ $message }}

@enderror
@csrf {{-- capture lets a phone offer the camera directly, which is how most of these arrive: a photograph of a paper report. --}}

{{ __('portal::messages.public.accepted_types') }} {{ trans_choice('portal::messages.public.remaining', $link->remainingFiles(), ['count' => $link->remainingFiles()]) }}

{{ __('portal::messages.public.privacy') }}

@else {{-- The reason, not a blanket refusal. A patient holding a link that expired yesterday should be told to ring the clinic, not left hunting for a typo that does not exist. --}}

{{ __('portal::messages.public.closed.'.$state) }}

{{ __('portal::messages.public.closed_help') }}

@if (config('clinic.phone'))

{{ config('clinic.phone') }}

@endif @endif