Files
alrahma_sunday_school/app/Views/administrator/feedback_complaints.php
T
2026-02-10 22:11:06 -05:00

45 lines
2.3 KiB
PHP

<?= $this->extend('layout/management_layout') ?>
<?= $this->section('content') ?>
<div class="container-fluid">
<div class="wrapper">
<div class="content"></div>
<h1>Feedback and Complaints</h1>
<table class="table table-striped">
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>Email</th>
<th>Feedback/Complaint</th>
<th>Status</th>
<th>Date</th>
</tr>
</thead>
<tbody>
<?php
// Example data - in a real scenario, this will be fetched from the database
$feedbackComplaints = [
['id' => '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 "<tr>
<td>{$fc['id']}</td>
<td>{$fc['name']}</td>
<td>{$fc['email']}</td>
<td>{$fc['message']}</td>
<td>{$fc['status']}</td>
<td>" . esc($dateDisp) . "</td>
</tr>";
}
?>
</tbody>
</table>
</div>
</div>
<?= $this->endSection() ?>