Tables - show.php - Landing Page of a Particular Table (nurse-salary)
<?php
$fruits = include __DIR__ . '/data.php';
?>
<?= template()->layout('frontend/layout') ?>
<?= template()->push('meta') ?>
<title>Table: <?= $table->title ?></title>
<meta name="description" content="All published tables displayed here">
<?= template()->endPush() ?>
<h1>SDE Salaries</h1>
<table>
<thead>
<tr>
<th>Name</th>
<th>Salary</th>
<th>Description</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php foreach ($fruits as $fruit): ?>
<tr>
<td><?= $fruit['name'] ?></td>
<td>$<?= $fruit['salary'] ?></td>
<td><?= $fruit['description'] ?></td>
<td><a href="<?= route()->url('frontend.tables.detail', ['tableId' => $table->id, 'slug' => $fruit['slug']]) ?>">View</a></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.