Tables - detail.php - Final Landing Page of a Particular Item of a Table - Apprentice Salaries in Aerospace and Defence Industry
<?php
$salaries = include __DIR__ . '/data.php';
$currentSalary = array_filter($salaries, function($salary) use ($slug) {
return $salary['slug'] === $slug;
})[0] ?? null;
if (!$currentSalary) {
halt(404);
}
?>
<?= template()->layout('frontend/layout') ?>
<?= template()->push('meta') ?>
<title><?= $currentSalary['name'] ?> - <?= $table->title ?></title>
<meta name="description" content="<?= $currentSalary['description'] ?>">
<?= template()->endPush() ?>
<h1><?= $currentSalary['name'] ?></h1>
<p><?= $currentSalary['description'] ?></p>
<p>Salary: $<?= number_format($currentSalary['salary']) ?></p>
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.