$row) { if (filter_var((string) $row['contact_email'], FILTER_VALIDATE_EMAIL)) { $pick = $id; break; } } } $rounds = contractSignatureRounds(intval($contract['contract_id'])); $pending = $rounds && contractSignaturePending($rounds[0]) ? $rounds[0] : null; $signed = contractSignatureSigned($rounds); $unfilled = contractUnfilled(contractDocumentHtml($contract)); $draft_start = $contract['contract_status'] === 'Draft' ? (!empty($contract['contract_start_date']) ? date('M j, Y', strtotime($contract['contract_start_date'])) : 'the day it is countersigned') : ''; ?>