<?php
require __DIR__ . '/../layout/header.php';
require __DIR__ . '/../layout/sidebar.php';
?>

<div class="main">

    <div class="header">Lowongan Pekerjaan</div>

    <div class="grid">

        <?php foreach ($jobs as $job): ?>

            <div class="card">

                <h3><?= $job['judul'] ?></h3>

                <p><b><?= $job['perusahaan'] ?></b></p>
                <p><?= $job['lokasi'] ?></p>

                <p><?= substr($job['deskripsi'], 0, 100) ?>...</p>

                <p><b>Kontak:</b> <?= $job['kontak'] ?></p>

            </div>

        <?php endforeach; ?>

    </div>

</div>