Nothing to see here Go Back ";
} else {
$client_id = intval($contract['contract_client_id']);
enforceClientAccess();
$contract_id = intval($contract['contract_id']);
$page_title = $contract['contract_name'];
$state = contractSignatureState($round);
$contract_paper = [
'row' => $contract,
'round' => $round,
'document' => $round ? (string) $round['contract_signature_document'] : contractDocumentHtml($contract),
'logo_url' => billingCompany()['logo_url'],
];
$unfilled = $round ? [] : contractUnfilled($contract_paper['document']);
?>
= escapeHtml($contract['client_name']) ?>
Contracts
= escapeHtml($contract['contract_name']) ?>
= $round ? 'Copy sent ' . escapeHtml(date('M j, Y', strtotime($round['contract_signature_sent_at'] ?? $round['contract_signature_created_at']))) : 'Document' ?>
= escapeHtml($state['label']) ?>
The copy sent to = escapeHtml($round['contract_signature_sent_to_name'] ?: 'the client') ?> - what was signed, as it was.
As the client would see it today. The placeholders in its terms are filled in.
Download PDF
Nothing fills in = escapeHtml(implode(', ', array_map(function ($word) { return "[$word]"; }, $unfilled))) ?> - it shows as written.