prepare('SELECT FirstName,LastName FROM AdminAccounts WHERE AdminID=? AND RecordStatus=1'); $q->execute([(int)$Response['SESSION']['AdminID']]);$viewer=$q->fetch(PDO::FETCH_ASSOC); if (!$viewer) {http_response_code(403);exit('Access denied');} try {$reportProfile=PA_WEB_BRIEF_REPORT_PROFILE($_GET['report'] ?? '');} catch (DomainException $e) {http_response_code(400);exit('Invalid report designation.');} if (!$reportProfile) { $q=$db->prepare('SELECT DashID,CaseName,Status FROM PART_Dash WHERE DashID=? AND RecordStatus=0'); $q->execute([$dashID]);$menuCase=$q->fetch(PDO::FETCH_ASSOC); if (!$menuCase) throw new DomainException('Case not found.'); PA_WEB_BRIEF_REPORT_MENU($menuCase);exit; } $brief=PA_WEB_BRIEF_BUILD($db,(int)$dashID); $digest=hash('sha256',json_encode($brief,JSON_THROW_ON_ERROR|JSON_INVALID_UTF8_SUBSTITUTE)); $q=$db->prepare("INSERT INTO PART_Dash_Audit (DashID,DashStepID,Action,PerformedBy,PerformedByType,Details,OldValue,NewValue,Insert_DateTime,RecordStatus) VALUES (?,0,'INCIDENT_BRIEF_VIEWED',?,'PART Admin',?,'',?,NOW(),0)"); $q->execute([$dashID,(int)$Response['SESSION']['AdminID'], 'Incident Brief viewed by '.trim($viewer['FirstName'].' '.$viewer['LastName']).'. Read-only operational summary; no case action or notice.', json_encode(['briefVersion'=>7,'reportDesignation'=>$reportProfile['key'],'snapshotAtUTC'=>$brief['snapshot'],'snapshotSHA256'=>$digest,'humanReviewed'=>false,'noticesSent'=>false],JSON_THROW_ON_ERROR)]); $viewAuditID=(int)$db->lastInsertId(); } catch (DomainException $e) {http_response_code(404);exit('Case not found.');} catch (Throwable $e) {error_log('Incident Brief unavailable for case '.(int)$dashID);http_response_code(500);exit('The Incident Brief could not be prepared. Please try again.');} $case=$brief['case'];$person=$brief['person']; $reportSections=PA_WEB_BRIEF_REPORT_SECTIONS($reportProfile); $sheetNumbers=array_flip($reportProfile['order']);foreach ($sheetNumbers as &$ordinal) $ordinal++;unset($ordinal); $escape=static fn($value)=>htmlspecialchars((string)$value,ENT_QUOTES|ENT_SUBSTITUTE,'UTF-8'); $display=static fn($value)=>trim((string)$value)!=='' ? $value : 'Not recorded'; $name=$person ? trim($person['FirstName'].' '.$person['LastName']) : 'Tracker user not uniquely identified'; $viewerName=trim($viewer['FirstName'].' '.$viewer['LastName']); $logoURL=(string)($PASYSCONF['LOGO'] ?? ''); $logoHost=parse_url($logoURL,PHP_URL_HOST) ?: ''; if (parse_url($logoURL,PHP_URL_SCHEME)!=='https' || !preg_match('/(^|\.)amazonaws\.com$/i',$logoHost)) $logoURL=''; $teamPhone=trim((string)($PASYSCONF['DASH']['PA_CUSTOMER_SERVICE_PHONE'] ?? '')); $teamEmail=trim((string)($PASYSCONF['DASH']['PA_ALERT_EMAIL'] ?? '')); $phoneDisplay=static function($value) { $digits=preg_replace('/\D/','',(string)$value);$prefix=''; if (strlen($digits)===11 && $digits[0]==='1') {$digits=substr($digits,1);$prefix='+1 ';} return strlen($digits)===10 ? $prefix.substr($digits,0,3).'-'.substr($digits,3,3).'-'.substr($digits,6) : trim((string)$value); }; $label=function($text) use ($person) {return strtr((string)$text,['{{TRACKERUSERFIRST}}'=>$person['FirstName'] ?? 'Tracker user','{{TRACKERUSERLAST}}'=>$person['LastName'] ?? '']);}; $stepByID=[];foreach ($brief['steps'] as $step) $stepByID[(int)$step['DashStepID']]=$step; $pending=array_values(array_filter($brief['steps'],static fn($s)=>$s['Status']==='Not Completed')); usort($pending,static fn($a,$b)=>strcmp(PA_WEB_BRIEF_DATE($a['TimeoutAtDateTime']) ? $a['TimeoutAtDateTime'] : '9999',PA_WEB_BRIEF_DATE($b['TimeoutAtDateTime']) ? $b['TimeoutAtDateTime'] : '9999') ?: (int)$a['DashStepID']<=>(int)$b['DashStepID']); $overdueCount=count(array_filter($pending,static fn($s)=>PA_WEB_BRIEF_DATE($s['TimeoutAtDateTime']) && $s['TimeoutAtDateTime']<$brief['snapshot'])); $dangerKey=$brief['answers']['DANGER_INDICATORS']['AnswerKey'] ?? 'UNKNOWN'; $latest=$brief['positions'][0] ?? null; $photoURL='';$piPhotoURL=''; if ($brief['photo'] || $brief['piPhoto']) { require_once '/opt/SA/DEV/SERVICE/LIB/PACOMMONLIBRARY/php/AWSS3.php'; } if ($brief['photo']) { $photoURL=AWSS3Helper::getPresignedUrl($brief['photo']['S3BucketName'],$brief['photo']['S3ObjectKey'],900) ?: ''; } if ($brief['piPhoto']) $piPhotoURL=AWSS3Helper::getPresignedUrl($brief['piPhoto']['S3BucketName'],$brief['piPhoto']['S3ObjectKey'],900) ?: ''; $map=[]; if ($latest) { require_once '/opt/SA/DEV/SERVICE/LIB/PACOMMONLIBRARY/php/functions/HERE/PACommonHereAlertLocation.php'; try {$map=PACommonHereAlertLocation($latest['latitude'],$latest['longitude'],(string)($PASYSCONF['MAPS']['HERECOM']['APIKEY'] ?? ''));} catch (Throwable $e) {error_log('Incident Brief map unavailable for case '.(int)$dashID);} } [$birth,$age]=PA_WEB_BRIEF_BIRTH($person['BirthDate'] ?? '',$case['Insert_DateTime']); $relationships=[1=>'Direct family member',2=>'Friend',3=>'My Self',4=>'Relative',5=>'Other']; $answer=function($key) use ($brief,$display) {return $display($brief['answers'][$key]['AnswerText'] ?? '');}; $actorDisplay=function($type,$id) use ($brief) { return $type.' - '.($brief['actorNames'][$type][(int)$id] ?? ((int)$id>0 ? '#'.(int)$id : 'Recorder not captured')); }; $answerSource=function($key,$compact=false) use ($brief,$escape,$actorDisplay) { $r=$brief['answers'][$key] ?? null; if ($r) { echo 'Recorded '.$escape(PA_WEB_BRIEF_TIME($r['Insert_DateTime'])).' | Step #'.(int)$r['DashStepID']; if (!$compact) { $actor=$brief['answerActors'][(int)$r['DashStepID']] ?? null; echo ' | Recorder: '.$escape($actor ? $actorDisplay($actor['PerformedByType'],$actor['PerformedBy']) : 'Not captured'); } echo ''; } }; $findings=$brief['steps']; usort($findings,static fn($a,$b)=>strcmp($b['Update_DateTime'],$a['Update_DateTime']) ?: (int)$b['DashStepID']<=>(int)$a['DashStepID']); $findings=array_values(array_filter($findings,static fn($s)=>$s['Status']==='Completed' && in_array((int)$s['DashStepTemplateID'],[2,3,7,8,9,21,23,24,25,29],true) && trim((string)$s['Notes'])!=='')); $currentRequest=null; foreach ($brief['requests'] as $request) if ($request['current']) {$currentRequest=$request;break;} $requestLabels=['WAITING_FOR_RESPONSE'=>'Waiting for response','ACCEPTED'=>'Accepted','DECLINED'=>'Declined','EXPIRED'=>'Expired','ACCEPTED_BY_OTHER'=>'Another Detective accepted','CANCELLED'=>'Cancelled','CASE_CLOSED'=>'Case closed','UNAVAILABLE'=>'Response unavailable']; $incidentIdentifiers=function() use ($case,$brief,$name,$dashID,$display,$escape) { echo '
'; echo '

1. Incident Name

'.$escape($name).'Alert source: '.$escape($display($case['AlertSource'])).'
'; echo '

2. Incident Number

'.$escape($case['CaseName']).'
'; echo '

3. Date/Time Initiated

'.$escape(PA_WEB_BRIEF_TIME($case['Insert_DateTime'])).'
'; }; $sheetHeading=function($number,$title) use ($logoURL,$escape,$incidentIdentifiers,$reportProfile,$sheetNumbers) { echo '
'; if ($logoURL) echo ''; echo '
PINK ANGELS RESCUE TEAM | '.$escape($reportProfile['name']).' DESIGNATION

'.$escape($reportProfile['title']).'

Sheet '.$sheetNumbers[$number].' of 7 - '.$escape($title).'

'; $incidentIdentifiers(); }; $sheetFooter=function($number) use ($case,$brief,$viewerName,$viewAuditID,$escape,$reportProfile,$sheetNumbers) { echo ''; }; if (ob_get_level()) ob_clean(); header('Content-Type: text/html; charset=UTF-8'); header('Cache-Control: private, no-store, max-age=0');header('Pragma: no-cache'); header('X-Content-Type-Options: nosniff');header('Referrer-Policy: no-referrer'); header("Content-Security-Policy: default-src 'none'; style-src 'self'; script-src 'self'; font-src 'self'; img-src 'self' data: https://*.amazonaws.com; base-uri 'none'; form-action 'none'; frame-ancestors 'self'"); ob_start(); ?> <?php echo $escape($reportProfile['name']); ?> Incident Brief - <?php echo $escape($case['CaseName']); ?>
PINK ANGELS RESCUE TEAM | DESIGNATION

Sheet 1 of 7 -

Case status
Pink Angels coordinator:
Pink Angels operational briefing. Not an official police report.
Person status - latest recorded answer
Imminent danger - latest recorded answer

Person Identification / Device Map';} ?>

4a. Person Identification

Registered photograph of <?php echo $escape($name); ?>
>Photograph unavailable
Registered photograph

Date of birth / age
Vehicle
Appearance / clothing

4. Map / Latest Device Location

Map centered on the latest recorded device coordinates
>Map image unavailable
Device position, not a confirmed person sighting.
Open map
Approximate address: | min ago
1800) { ?>
Outdated location record. Current whereabouts unknown.
';else $intake(); ?>

Last Person Sighting / Direct Contact

Source: completed step #; recorded

5 Situation Summary / Reported Safety Concerns

Person located - latest recorded answer
Imminent danger - latest recorded answer
Main information source
Circumstances / specific urgent concerns
Case resolution

Recorded answers are attributed reports, not an independent safety assessment. Unknown information does not establish safety.

Closure is recorded without a positive located answer in the latest structured findings. The case resolution above is the recorded basis; safety is not independently established here.

Critical Information Gaps

structured areas missing / unknown

Based on the five optional information fields. Existing narrative notes may contain additional details; review the source accounts below before requesting information again.

All five optional information areas have recorded text. Completeness and accuracy still require human review.

Witnesses / Time-Sensitive Records

Locations Checked / Outstanding Leads

New evidence / leads reported?

Completed Reports / Contact Accounts

Recorded accounts and their source steps. Reported or author-classified information is not independently verified by this briefing.

6) { ?>

Latest 6 of completed accounts shown. Earlier accounts remain in the full case audit.

> Step # | Recorder:

$r) { if (!in_array($key,['FINDING_SOURCE','MP_CIRCUMSTANCES','MP_WITNESSES_EVIDENCE','MP_LOCATIONS_CHECKED'],true)) continue; ?>

No completed findings or contact notes recorded.

Supplemental information Step # | Event #
Information source
Recorded by
Author's verification classification
- not independently certified
Observed/reported time
Server recorded time

Latest 12 supplemental accounts shown. Earlier accounts remain in the full case audit.

7 Current Coordination Actions

open actions | overdue

Recorded Pink Angels case actions, not police tasking or a law-enforcement response plan.

Law-Enforcement Handoff

Receiving agency, jurisdiction, police case number, officer, receipt/dispatch acknowledgement, and NCIC reference: Not captured by this briefing.

Admin decision to notify police:

An Admin decision or private Detective acceptance is not confirmation that police received a report, dispatched a unit, or accepted jurisdiction.

Action / source stepResponsible roleRecorded deadline / status
Step #Overdue
No pending case actions recorded. This alone does not establish that the person is safe.

8 Significant Events / Actions Taken

Chronological server-recorded events. Routine notice attempts are retained in the full audit, not repeated here.

Case activity timeline - recorded events
0 ? '#'.(int)$event['PerformedBy'] : 'System / unspecified'); ?>
Time (UTC)Event / originating stepRecorded actor
Audit #
Recorded event detail

No significant events recorded.

Linked Tracker Alerts / Device Coordinates

repeat alerts linked to this case.

Server receipt times and device coordinates, not confirmed person sightings or a verified travel route.

Device alert records
Received (UTC)Recorded alert / sourceCoordinates / accuracy
ClientDeviceEvent # | Accuracy:
No linked device-alert records. Initial alert information is retained in the source sheet when available.

9/10 Current Organization / Resource Summary

Pink Angels Rescue Team

Contact phone
Configured Admin notice email

Pink Angels coordination contact, not a police department or public emergency number.

Registered profile photograph of the assigned Detective
>Detective photograph unavailable
Registered Detective profile image
Uploaded:

Private Detective:

Request / acceptance
Request step # | Response recorded
Physical arrival / police authority
Arrival not established by acceptance. Private Detective, not a police unit.
Company
Registered professional license number
Phone
Email
Registration source
Identity documents on file
| Document # | Uploaded

Professional license number is a registration record, not verification by the issuing authority. Jurisdiction and expiry are not recorded in the structured registration used here. Driver's-license identity documents are not proof of professional licensure and are not embedded in this briefing. Assignment is not proof of physical arrival.

$brief['admin']] as $role=>$contact) { ?> 'Tracker User',1=>'Primary Contact',2=>'Secondary Contact'][(int)$contact['ContactType']]; ?>
RolePersonContactRecorded status
(reported)Age:
Notice processing summary

Provider submission counts are not evidence of receipt, reading, response, or arrival.

6 Prepared By / Provenance

Generated for
- Pink Angels Admin #
Generated at
Human review / signature
Not recorded. Opening this brief does not approve its contents.
Access audit
Event #

Registration / Photograph Sources

Tracker-user photograph
| Uploaded
Registration updated
System / police identifiers
DashID | Police report number: Not captured by this briefing

Registration details and photograph recency are not independently verified.

Location Sources

Latest device coordinates
Location time / age
/ min ago
Timestamp basis
Reported accuracy
Location source
Nearest mapped address
Latest device location
Not recorded or coordinates invalid
Initial alert coordinates

Mapped addresses are approximate. A server-received timestamp is not necessarily the GPS fix time. The device position is not proof of the person's whereabouts.

Adapted structure, not an official government form: FEMA ICS 201 and FBI Missing Person Case Summary.

Current registration and question labels may differ from historical versions. This is a point-in-time operational summary, not a certified evidence export. SSN, PIN, and verification code-word fields are excluded.

Report designation / version / snapshot fingerprint
| Version 7 | SHA-256
Evidence / record custody
Evidence receipt, preservation actions and chain of custody are not captured by this briefing. Narrative accounts are leads, not authenticated evidence.
Structured fields not available
Height, weight, hair/eye colour, plate/state, residence jurisdiction, and police handoff identifiers are not separate fields in the registration used here. Any supplied narrative appears on the identification/findings sheets.

The fingerprint identifies the generated source snapshot, not the printed PDF and not a digital signature or tamper-proof archive.

Full case audit / source records