<!DOCTYPE html>
<html>

<head>
    <title>Job Recommendations and Vacancies</title>
</head>

<body>
    <h1>Job Recommendations</h1>
    <?php if (!empty($recommendations)) : ?>
        <ul>
            <?php foreach ($recommendations as $job) : ?>
                <li><?= esc($job); ?></li>
            <?php endforeach; ?>
        </ul>
    <?php endif; ?>

    <h1>Matching Vacancies</h1>
    <?php if (!empty($vacancies)) : ?>
        <ul>
            <?php foreach ($vacancies as $vacancy) : ?>
                <li><?= esc($vacancy->placement_address); ?> - <?= esc($vacancy->description); ?></li>
            <?php endforeach; ?>
        </ul>
    <?php else : ?>
        <p>No matching vacancies found.</p>
    <?php endif; ?>

    <?php if (isset($error)) : ?>
        <p><?= esc($error); ?></p>
    <?php endif; ?>
</body>

</html>