26 lines
802 B
PHP
26 lines
802 B
PHP
|
<div style="margin: 0 10%;">
|
||
|
<h1>My Forms</h1>
|
||
|
|
||
|
<table>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Form Title</th>
|
||
|
<th>Created At</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<?php if (!empty($forms)) : ?>
|
||
|
<?php foreach ($forms as $form) : ?>
|
||
|
<tr>
|
||
|
<td><?php echo htmlspecialchars($form->title, ENT_QUOTES, 'UTF-8'); ?></td>
|
||
|
<td><?php echo date('Y-m-d H:i:s', strtotime($form->created_at)); ?></td>
|
||
|
</tr>
|
||
|
<?php endforeach; ?>
|
||
|
<?php else : ?>
|
||
|
<tr>
|
||
|
<td colspan="2">No forms found.</td>
|
||
|
</tr>
|
||
|
<?php endif; ?>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|