query('SELECT COUNT(*) FROM audit_log')->fetchColumn(); $pages = max(1, (int)ceil($total / $perPage)); $page = min($page, $pages); $st = db()->prepare('SELECT * FROM audit_log ORDER BY id DESC LIMIT ? OFFSET ?'); $st->bindValue(1, $perPage, PDO::PARAM_INT); $st->bindValue(2, ($page - 1) * $perPage, PDO::PARAM_INT); $st->execute(); $logs = $st->fetchAll(); $fmtVal = function ($v, string $unit): string { return $unit === 'pct' ? fmt_pct((float)$v) . '%' : ($unit === 'idr' ? 'Rp' . fmt_idr((float)$v) : (string)$v); }; /** One line per tier: "≤ Rp100.000.000: 0,75%". */ $fmtTiers = function (array $tiers): string { return implode(' · ', array_map(fn($t) => ($t['max'] === null ? 'di atas' : '≤ Rp' . fmt_idr((float)$t['max'])) . ': ' . fmt_pct((float)$t['rate']) . '%', $tiers)); }; ?>

Belum ada aktivitas. Setiap perubahan parameter, login, dan pengelolaan admin akan tercatat di sini.

  1. ·
    • : →
      $d): ?>


      $tiers): if (json_encode($tiers) === json_encode($ch['old'][$tenor] ?? null)) continue; ?>
    • bulan

      'del', 'new' => 'ins'] as $k => $tag): ?>
    • <>Tenor bln · '≥ Rp' . fmt_idr((float)$t['min']) . ': ' . fmt_pct((float)$t['nasabah']) . '%', $ch[$k]['tiers']))) ?>>
1): ?>