extend('layout/management_layout') ?> section('content') ?>

Student Profiles

format('m-d-Y'); } catch (\Throwable $e) { $dobDisp = esc($student['dob']); } } // Format Reg Date for display (as local mm-dd-YYYY) $regDisp = ''; if (!empty($student['registration_date'])) { try { $dt = new \DateTime($student['registration_date'], new \DateTimeZone('UTC')); $dt->setTimezone(new \DateTimeZone(user_timezone())); $regDisp = local_datetime($student['registration_date'], 'm-d-Y H:i'); } catch (\Throwable $e) { $regDisp = esc($student['registration_date']); } } // Browser date inputs require ISO dates even when the table displays local mm-dd-YYYY. $dobVal = ''; if (!empty($student['dob'])) { try { $dobVal = (new DateTime($student['dob']))->format('Y-m-d'); } catch (\Throwable $e) { $dobVal = ''; } } $regDateLocal = ''; if (!empty($student['registration_date'])) { try { $dt2 = new \DateTime($student['registration_date'], new \DateTimeZone('UTC')); $dt2->setTimezone(new \DateTimeZone(user_timezone())); $regDateLocal = local_datetime($student['registration_date'], 'Y-m-d\TH:i'); } catch (\Throwable $e) { $regDateLocal = ''; } } $isActive = (int)($student['is_active'] ?? 1); // Preselected lists (server-computed strings or joined lists) $medSelected = array_filter(array_map('trim', preg_split('/[,\n;]+/', (string)($student['medical_conditions'] ?? ''), -1, PREG_SPLIT_NO_EMPTY))); $allSelected = array_filter(array_map('trim', preg_split('/[,\n;]+/', (string)($student['allergies'] ?? ''), -1, PREG_SPLIT_NO_EMPTY))); $medOther = implode(', ', array_diff($medSelected, $medicalOptions)); $allOther = implode(', ', array_diff($allSelected, $allergyOptions)); $medId = 'medical_conditions_' . (int)$student['id']; $allId = 'allergies_' . (int)$student['id']; $medOtherId = 'medical_other_' . (int)$student['id']; $allOtherId = 'allergy_other_' . (int)$student['id']; ?>
School ID First Name Last Name DOB Age Gender Assigned Grade Active Medical Conditions Allergies Photo Consent Registration Date Assessment Action
View Status
Review View Results
Reviewed
No students found.
endSection() ?> section('scripts') ?> endSection() ?>