* SafeHaven – EvacuationResult.php * Unified page showing both approval and decline scenarios */ if (session_status() === PHP_SESSION_NONE) { session_start(); } if (!isset($_SESSION['user_id'])) { header('Location: auth.php?action=login'); exit; } // Demo: Randomly decide approval vs decline (50/50 chance) // In production, this would check actual evacuation center capacity $isApproved = isset($_GET['status']) ? ($_GET['status'] === 'approved') : (rand(0, 1) === 1); // Approval data $approvalData = [ 'confirmation_code' => 'EVAC-2026-QAR2MD8', 'center_name' => 'Bacolod Central School', 'center_address' => 'Barangay 18, Bacolod City', 'distance' => '2.3 km', 'travel_time' => '15 minutes', 'capacity_percent' => 62 ]; // Decline data $declineData = [ 'original_center' => 'Barangay 18 - High School Evacuation Center', 'alternative_centers' => [ [ 'name' => 'Toyota Bacolod Center', 'address' => 'Barangay 22, Bacolod City', 'distance' => '3.1 km away', 'travel_time' => '18 minutes', 'capacity' => 45 ], [ 'name' => 'San Sebastian Center', 'address' => 'Barangay 25, Bacolod City', 'distance' => '4.5 km away', 'travel_time' => '22 minutes', 'capacity' => 38 ] ] ]; $pageTitle = $isApproved ? 'SafeHaven – Request Approved' : 'SafeHaven – Center at Capacity'; $activePage = 'evacuation-request'; $extraCss = ['assets/css/EvacuationResult.css']; $extraJs = []; require_once VIEW_PATH . 'shared/dashboard-header.php'; ?>

Warning: Undefined variable $isApproved in /home/safehaven.helioho.st/httpdocs/views/pages/result.php on line 60

Center at Capacity

Don't worry, we found alternatives for you

Your Request Details

Priority Classification
Family Members 1 person
Special Needs Wheelchair

Assigned Evacuation Center


Warning: Undefined variable $declineData in /home/safehaven.helioho.st/httpdocs/views/pages/result.php on line 204

Warning: Trying to access array offset on null in /home/safehaven.helioho.st/httpdocs/views/pages/result.php on line 204

Your request has been automatically redirected to nearby centers with available space.

Alternative Centers Available


Warning: Undefined variable $declineData in /home/safehaven.helioho.st/httpdocs/views/pages/result.php on line 214

Warning: Trying to access array offset on null in /home/safehaven.helioho.st/httpdocs/views/pages/result.php on line 214

Warning: foreach() argument must be of type array|object, null given in /home/safehaven.helioho.st/httpdocs/views/pages/result.php on line 214

Fatal error: Uncaught Error: Undefined constant "VIEW_PATH" in /home/safehaven.helioho.st/httpdocs/views/pages/result.php:322 Stack trace: #0 {main} thrown in /home/safehaven.helioho.st/httpdocs/views/pages/result.php on line 322