<?php $pageTitle = 'Code generated'; require __DIR__ . '/../partials/standalone-head.php'; ?>
<?php require __DIR__ . '/_nav.php'; ?>

<div class="standalone-wrap">
  <div class="standalone-card text-center">
    <div class="text-success mb-3"><i class="bi bi-check-circle-fill fs-1"></i></div>
    <h2 class="mb-1">Code generated</h2>
    <p class="text-muted mb-4">This is shown once — copy it now and send it to the company. It's stored as a hash, so it can't be recovered later.</p>
    <code class="code-display"><?= e($plaintextCode) ?></code>
    <a href="<?= base_url('platform/codes') ?>" class="btn btn-outline-secondary w-100 mt-4">Back to codes</a>
  </div>
</div>

</body>
</html>
