= $this->extend('layout/management_layout') ?>
= $this->section('content') ?>
Feedback and Complaints
| ID |
Name |
Email |
Feedback/Complaint |
Status |
Date |
'1', 'name' => 'John Doe', 'email' => 'john.doe@example.com', 'message' => 'Great school!', 'status' => 'Resolved', 'date' => '2024-07-01'],
['id' => '2', 'name' => 'Jane Smith', 'email' => 'jane.smith@example.com', 'message' => 'Issue with teacher', 'status' => 'Pending', 'date' => '2024-07-02'],
['id' => '3', 'name' => 'Michael Johnson', 'email' => 'michael.johnson@example.com', 'message' => 'Need more facilities', 'status' => 'In Progress', 'date' => '2024-07-03'],
// Add more records as needed
];
foreach ($feedbackComplaints as $fc) {
$dateDisp = !empty($fc['date']) ? local_date($fc['date'], 'm-d-Y') : '';
echo "
| {$fc['id']} |
{$fc['name']} |
{$fc['email']} |
{$fc['message']} |
{$fc['status']} |
" . esc($dateDisp) . " |
";
}
?>
= $this->endSection() ?>