@extends('layouts.app') @section('title', 'Acknowledge Document') @section('content')

Acknowledge Document @if(isset($totalDocuments) && $totalDocuments > 1) Document {{ $currentPosition }} of {{ $totalDocuments }} @else Please review and sign this document @endif

@if(session('success'))

Success!

{{ session('success') }}
@endif @if(session('warning'))

Warning!

{{ session('warning') }}
@endif @if(session('error'))

Error!

{{ session('error') }}
@endif @if(isset($totalDocuments) && $totalDocuments > 1)

Document Signing Progress

{{ $currentPosition }} of {{ $totalDocuments }} documents

Signing Document {{ $currentPosition }} of {{ $totalDocuments }}

@if(isset($pendingDocuments) && $pendingDocuments->count() > 1)
@foreach($pendingDocuments as $index => $doc) @if($doc->id == $document->id) {{ $index + 1 }}. {{ $doc->title }} @else {{ $index + 1 }}. {{ $doc->title }} @endif @if(!$loop->last)   @endif @endforeach
@endif
@endif

{{ $document->title }} @if($document->other_document_name)
{{ $document->other_document_name }} @endif {{ $document->type ?? 'Policy and Procedures' }}

@csrf
@if(Auth::check() && Auth::user()->user_role == 1)

Accepted Parameters

The following placeholders are automatically replaced in the document content:

  • [Agent Name] or [agent_name] - Replaced with the user's full name
  • [Agent Email] or [agent_email] - Replaced with the user's email address
  • [Company Name] or [company_name] - Replaced with the user's company name
  • [Super Admin Signature] or [super_admin_signature] - Replaced with the Super Admin signature image
@endif
@endsection