@foreach ($documents as $index => $doc)
Document #{{ $index + 1 }}
@if (! $doc['path'] && ! isset($doc['signature_details'])) @endif
@php $uniqueId = $doc['id']; @endphp @if ($doc['option'] === 'upload_only' && ! $doc['path']) @endif @if ($doc['path'])

File uploaded:Download

@if (isset($doc['signature_details']) && !empty($doc['signature_details'])) @php $sig = $doc['signature_details']; @endphp
Valid: {{ $sig[0] ? 'Yes' : 'No' }} | Name of the signer: {{ $sig[1] }} | Signed on: {{ $sig[2] }} | Signature type: {{ $sig[3] }} | Issuer: {{ $sig[4] }} | Valid from: {{ $sig[6] }} | Valid to: {{ $sig[7] }} | Subject: {{ $sig[5] }} | Certificate Valid on Signing: {{ $sig[8] }} | Current Certificate Validity: {{ $sig[9] }} | Subject: {{ $sig[5] }}
@endif @endif @unless ($doc['path'] && isset($doc['signature_details'])) @if ($doc['option'] === 'upload_sign')
@endif @endunless
@endforeach