45 lines
2.1 KiB
PHP
45 lines
2.1 KiB
PHP
<?= $this->extend('layout/management_layout') ?>
|
|
<?= $this->section('content') ?>
|
|
<div class="container-fluid">
|
|
<div class="wrapper">
|
|
<div class="content"></div>
|
|
<h1>Fee Collection</h1>
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>Payment ID</th>
|
|
<th>Student Name</th>
|
|
<th>Amount</th>
|
|
<th>Date</th>
|
|
<th>Status</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
// Example data - in a real scenario, this will be fetched from the database
|
|
$feeCollections = [
|
|
['payment_id' => 'F001', 'student_name' => 'John Doe', 'amount' => '$200', 'date' => '2024-07-01', 'status' => 'Paid'],
|
|
['payment_id' => 'F002', 'student_name' => 'Jane Smith', 'amount' => '$250', 'date' => '2024-07-02', 'status' => 'Pending'],
|
|
['payment_id' => 'F003', 'student_name' => 'Michael Johnson', 'amount' => '$300', 'date' => '2024-07-03', 'status' => 'Paid'],
|
|
// Add more records as needed
|
|
];
|
|
|
|
foreach ($feeCollections as $collection) {
|
|
$dateDisp = !empty($collection['date']) ? local_date($collection['date'], 'm-d-Y') : '';
|
|
echo "<tr>
|
|
<td>{$collection['payment_id']}</td>
|
|
<td>{$collection['student_name']}</td>
|
|
<td>{$collection['amount']}</td>
|
|
<td>" . esc($dateDisp) . "</td>
|
|
<td>{$collection['status']}</td>
|
|
</tr>";
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?= $this->endSection() ?>
|