<?= view('customer/menu', ['func' => $func, 'db' => $db]) ?>

<main class="wrap">
  <div class="ppob-page">
    <div class="ppob-card" style="padding:0;overflow:hidden">
      <img src="<?= base_url("admin/uploads/" . $res->img) ?>" alt="<?= htmlspecialchars($res->judul, ENT_QUOTES, 'UTF-8') ?>" style="width:100%;max-height:360px;object-fit:cover;display:block">
    </div>

    <div class="ppob-card">
      <div class="ppob-head">
        <div class="ppob-subtitle" style="margin-bottom:8px">
          <a href="<?= site_url(); ?>">Home</a> &rsaquo;
          <a href="<?= site_url("blog"); ?>">Blog</a> &rsaquo;
          <?= htmlspecialchars($func->potong($res->judul, 60, "..."), ENT_QUOTES, 'UTF-8') ?>
        </div>
        <div class="ppob-title"><?= htmlspecialchars($res->judul, ENT_QUOTES, 'UTF-8') ?></div>
        <div class="ppob-subtitle">Diposting oleh <b>admin</b> pada <?= $func->ubahTgl("d M Y", $res->tgl) ?></div>
      </div>
      <div class="nominal-wrap" style="line-height:1.7">
        <?= $res->konten ?>
      </div>
    </div>
  </div>
</main>
