@php $isImageFile = $document->file_path && preg_match('/\.(jpe?g|png|gif|webp|avif|svg)$/i', $document->file_path); $qr = $document->status === 'completed' && $document->verification_code ? app(\App\Services\QrCodeService::class)->dataUri(route('tenant.esign.verify.show', $document->verification_code), 120) : null; $tenantTimezone = $tenant->timezone ?? config('app.timezone'); $local = fn ($carbon) => $carbon?->copy()->setTimezone($tenantTimezone); @endphp {{ $document->title }} — {{ $tenant->name }}
@if($tenant->logo_path) @else
{{ \Illuminate\Support\Str::of($tenant->name)->substr(0, 1) }}
@endif
{{ $tenant->name }}
@if($tenant->tagline)
{{ $tenant->tagline }}
@endif

{{ $document->title }}

Created {{ $document->created_at?->format('d M Y') }} @if($document->status === 'completed' && $document->completed_at) · Completed {{ $local($document->completed_at)->format('d M Y, H:i') }} @endif

@if($document->content)
{{ $document->content }}
@endif @if($document->file_path)
@if($isImageFile) {{ $document->title }} @else Attached file: view @endif
@endif

Signatures

@forelse($document->signers as $signer)
@if($signer->status === 'signed')
{{ $signer->signature_data['typed_name'] ?? $signer->signer_name }}
@else
 
@endif
{{ $signer->signer_name }} · {{ $signer->signer_email }}
@if($signer->status === 'signed') Signed {{ $local($signer->signed_at)?->format('d M Y, H:i') }} @elseif($signer->status === 'declined') Declined @else Not yet signed @endif
@empty

No signers added.

@endforelse
@if($document->status === 'completed' && $document->verification_code) @endif