Review SMS
Review each SMS and either submit wording changes or approve it. The sample preview estimates message length after names, case details, and links are filled in. Reviews do not change live SMS text or send a message.
= PASMSReviewEscape($title) ?>
= count($groups[$groupKey]) ?> messagesOpen changes and updated source text first, then account security, emergency contacts, detective requests, and other updates.
No SMS messages in this section.
$key): $entry = $entryByKey[$key]; $row = $reviews[$key]; $items = $changes[$key] ?? []; $changeOrder = ['Open'=>0, 'Completed'=>1, 'Withdrawn'=>2]; usort($items, static function ($a, $b) use ($changeOrder): int { return (($changeOrder[$a['Status']] ?? 3) <=> ($changeOrder[$b['Status']] ?? 3)) ?: ((int)$b['ReviewChangeID'] <=> (int)$a['ReviewChangeID']); }); $openItems = array_filter($items, static fn($item) => $item['Status'] === 'Open'); $completedItems = array_filter($items, static fn($item) => $item['Status'] === 'Completed'); $sample = PASMSReviewSample($entry['body'], $PASYSCONF); $length = PASMSReviewLength($sample); $searchText = mb_strtolower(preg_replace('/\s+/u', ' ', implode(' ', [$entry['name'], $entry['recipient'], $entry['category'], $entry['stepTitle'], $entry['body'], $sample])), 'UTF-8'); $capitalization = $capitalizationByKey[$key] ?? []; $isUpdated = $row['AcceptedHash'] !== null && !hash_equals($row['CurrentHash'], $row['AcceptedHash']); ?>#= str_pad((string)($index + 1), 2, '0', STR_PAD_LEFT) ?>of = count($groups[$groupKey]) ?>= PASMSReviewEscape($entry['category']) ?>= PASMSReviewEscape($entry['name']) ?>To: = PASMSReviewEscape($entry['recipient']) ?>= $entry['stepTitle'] !== '' ? ' / ' . PASMSReviewEscape($entry['stepTitle']) : '' ?>= count($capitalization) ?>Capitalization = count($capitalization) === 1 ? 'suggestion' : 'suggestions' ?>Security reviewSource changedUpdated since approval= count($openItems) ?> to finish= $groupKey === 'accepted' ? 'Accepted' : 'Please Review' ?>
SMS preview
= PASMSReviewEscape($entry['source']) ?>Capitalization check = count($capitalization) ?> = count($capitalization) === 1 ? 'suggestion' : 'suggestions' ?>
No likely missed sentence capitals found. Please still review names and wording.
= PASMSReviewEscape($entry['body']) ?>
Submitted changes
= count($openItems) ?> to finish / = count($completedItems) ?> completedNo changes submitted for this SMS.
= nl2br(PASMSReviewEscape($item['CurrentText'])) ?>
= nl2br(PASMSReviewEscape($item['ReplacementText'])) ?>