Template - Final District Page

Template - Final District Page

<?php
$state = $district->parent;
$stateUrl = route()->url('frontend.templates.location', [
'templateId' => $template->id,
'locationId' => $state->id
]);
?>

<a href="<?= $stateUrl ?>"><?= $state->name ?></a>

<?= template()->layout('frontend/layout') ?>

<?= template()->push('meta') ?>
<title>Government Jobs in <?= $district->name ?> (<?= date('F Y') ?>)</title>
<meta name="description" content="Government Jobs in <?= $district->name ?> (<?= date('F Y') ?>)">
<?= template()->endPush() ?>

<div class="container">
<article">
<h1 class="mb-3 m-0 pl-0 pr-0 card-header fw-900">
Government Jobs Nearby <?= $district->name ?>, <?= $state->name ?> (<?= date('F Y') ?>)
</h1>
<p>Latest government jobs nearby <?= $district->name ?>.</p>
</article>

<h2 class="mb-3 m-0 pl-0 pr-0 card-header fw-900">Cities</h2>
<ul>
<?php foreach ($district->cities() as $city): ?>
<li>
<a href="<?= route()->url('frontend.templates.location', [
'templateId' => $template->generateSlug(),
'locationId' => $city->slug . '-' . $city->id
]) ?>">
<?= $city->name ?>
</a>
</li>
<?php endforeach; ?>
</ul>
</div>

<!-- DEMONSTRATION: Recommended Listings (Similar by Tags) -->
<?php $recommendedListings = $template->recommendedListings(5); ?>
<?= template()->include('frontend/custom/jobs/partials/recommended-listings-district', [
'recommendedListings' => $recommendedListings
]) ?>

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.