@if ($completed) {{-- Completed state (also shown when re-opening an already-signed link) --}}

Signature Completed

Thank you, {{ $signingRequest->recipient_name }}. Your {{ $signingRequest->documents->count() > 1 ? 'documents have' : 'document has' }} been signed and recorded.

@foreach ($signingRequest->documents as $document)
{{ $document->template?->name ?? 'Document' }}
@if ($document->document_hash)
SHA-256: {{ $document->document_hash }}
@endif
@if ($document->certificate) Verify @endif
@endforeach
@else

Sign Your {{ count($config['documents']) > 1 ? 'Documents' : 'Document' }}

Review {{ count($config['documents']) > 1 ? 'all the documents' : 'the document' }}, complete the required fields and submit your signature.

{{-- Each contract, with its pages and interactive field overlays --}}
@foreach ($config['documents'] as $i => $doc)
@if (count($config['documents']) > 1)
{{ $i + 1 }}

{{ $doc['title'] }}

({{ $i + 1 }} of {{ count($config['documents']) }})
@endif @foreach ($doc['pages'] as $p)
@endforeach
@endforeach {{-- Reaching this sentinel means the recipient scrolled through everything. --}}
{{-- Sticky action bar --}}
Please scroll through {{ count($config['documents']) > 1 ? 'all the documents' : 'the entire document' }} to review before signing.
{{-- Incomplete: tap to jump to the next required field. Complete: confirm. --}} All required fields complete
{{-- Signature modal --}}

Add your signature

@endif