@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; $tenantTimezone = $tenant->timezone ?? config('app.timezone'); $local = fn ($carbon) => $carbon?->copy()->setTimezone($tenantTimezone); @endphp
@if ($errors->any()) @endif @if($document->status === 'completed' && $document->verification_code)

Verification Code

{{ $document->verification_code }}

Open public verification page
@endif
@if($document->content || $document->file_path)

Document

@if($document->content)

{{ $document->content }}

@endif @if($document->file_path) @php $isImageFile = preg_match('/\.(jpe?g|png|gif|webp|avif|svg)$/i', $document->file_path); @endphp
@if($isImageFile) {{ $document->title }} @else View attached file @endif
@endif
@endif

Signers

    @forelse($document->signers as $signer)
  • {{ $signer->signer_name }}

    {{ $signer->signer_email }}

    @if($document->status === 'sent' && $signer->status === 'pending')

    {{ route('tenant.esign.sign-form', $signer->sign_token) }}

    @endif
    {{ ucfirst($signer->status) }} @if($document->status === 'draft')
    @csrf @method('DELETE')
    @endif
    @if($signer->status === 'signed' && $signer->signature_data)

    Signed as "{{ $signer->signature_data['typed_name'] ?? $signer->signer_name }}"

    {{ $local($signer->signed_at)?->format('d M Y, H:i') }} @if($signer->signature_data['ip'] ?? null) · from {{ $signer->signature_data['ip'] }} @endif

    @endif
  • @empty
  • No signers added yet.
  • @endforelse
@if(in_array($document->status, ['draft', 'sent'], true))
@csrf
@endif

Audit Trail

    @forelse($document->auditTrail as $entry)
  1. {{ $entry->action }} {{ $entry->signer?->signer_name ? $entry->signer->signer_name.' · ' : '' }}{{ $local($entry->occurred_at)?->format('d M Y H:i') }} @if($entry->ip_address) · {{ $entry->ip_address }} @endif
  2. @empty
  3. No activity recorded.
  4. @endforelse

Actions

Print / Download PDF @if($document->status === 'draft')
@csrf
@if($document->signers->isEmpty())

Add a signer below before you can send this document.

@endif @endif @if(in_array($document->status, ['draft', 'sent'], true))
@csrf
@endif @if($document->status === 'completed')

This document is sealed and can no longer be changed.

@endif
@if($document->status === 'draft') @endif