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

<div class="standalone-wrap">
  <div class="standalone-card">
    <div class="text-success mb-3"><i class="bi bi-check-circle-fill fs-1"></i></div>
    <h2 class="mb-1"><?= e($companyName) ?> is live</h2>
    <p class="text-muted mb-4">Send these details to the company directly — this password is shown once and not stored anywhere.</p>

    <table class="table table-sm">
      <tr><th class="text-muted fw-normal">URL</th><td><code><?= e($subdomain) ?>.<?= e($appDomain) ?></code></td></tr>
      <tr><th class="text-muted fw-normal">Email</th><td><?= e($email) ?></td></tr>
      <tr><th class="text-muted fw-normal">Temporary password</th><td><code class="code-display"><?= e($temporaryPassword) ?></code></td></tr>
    </table>

    <div class="alert alert-secondary small mt-3">Consider having them reset their password on first login.</div>

    <a href="<?= base_url('platform/companies') ?>" class="btn btn-outline-secondary w-100 mt-2">Back to companies</a>
  </div>
</div>

</body>
</html>
