<section class="login-panel">
  <div class="login-heading">
    <img class="login-logo" src="<?= e(asset('images/company-logo-v3.png')) ?>" alt="" width="112" height="52">
    <h1>관리자 계정 등록</h1>
    <p>비밀번호는 서버에 안전하게 해시하여 저장됩니다.</p>
  </div>
  <?php if ($errors): ?><div class="admin-error" role="alert"><ul><?php foreach ($errors as $error): ?><li><?= e($error) ?></li><?php endforeach; ?></ul></div><?php endif; ?>
  <form method="post" action="/admin/setup">
    <?= csrf_field() ?>
    <label>관리자 아이디<input value="<?= e($username) ?>" readonly></label>
    <label>표시 이름<input name="display_name" value="<?= old('display_name', $displayName) ?>" required maxlength="100" autocomplete="name"></label>
    <label>비밀번호<input type="password" name="password" required minlength="12" maxlength="72" autocomplete="new-password"><small>영문과 숫자를 포함한 12자 이상</small></label>
    <label>비밀번호 확인<input type="password" name="password_confirmation" required minlength="12" maxlength="72" autocomplete="new-password"></label>
    <button class="button button-primary button-full" type="submit">관리자 계정 만들기</button>
  </form>
</section>
