55 lines
1.7 KiB
PHP
55 lines
1.7 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Appointments</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="<?= base_url('css/app.css') ?>">
|
|
</head>
|
|
<body class="app-body app-page--admin">
|
|
|
|
<div class="container py-5">
|
|
|
|
<h2 class="text-center mb-4 app-heading">Appointments</h2>
|
|
|
|
<div class="app-table-wrap">
|
|
|
|
<table class="table table-striped table-hover text-center align-middle">
|
|
<thead>
|
|
<tr>
|
|
<th>Sl No</th>
|
|
<th>Patient</th>
|
|
<th>Doctor</th>
|
|
<th>Date</th>
|
|
<th>Time</th>
|
|
<th>Status</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php $i = 1; ?>
|
|
<?php foreach ($appointments as $a): ?>
|
|
<tr>
|
|
<td><?= $i++ ?></td>
|
|
<td><?= esc($a->patient_name) ?></td>
|
|
<td><?= esc($a->doctor_name) ?></td>
|
|
<td><?= esc($a->appointment_date) ?></td>
|
|
<td><?= esc($a->appointment_time) ?></td>
|
|
<?php $status = trim((string) ($a->status ?? '')); ?>
|
|
<td><?= esc(ucfirst($status === '' ? 'pending' : $status)) ?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="text-center mt-4">
|
|
<a href="<?= base_url('admin/dashboard') ?>" class="btn btn-app-outline px-4">Back to dashboard</a>
|
|
</div>
|
|
|
|
</div>
|
|
</body>
|
|
</html>
|