<div class="container-fluid">

<div class="card border-0 shadow-sm mb-4">

<div class="card-body">

<h2 class="fw-bold mb-2">
DOI Generator
</h2>

<div class="text-muted">
Generate and manage article DOI identifiers.
</div>

</div>

</div>

<div class="card border-0 shadow-sm">

<div class="card-header bg-primary text-white">

Publication DOI Registry

</div>

<div class="card-body">

<div class="table-responsive">

<table class="table table-bordered table-hover align-middle">

<thead>

<tr>

<th>ID</th>

<th>Submission</th>

<th>Title</th>

<th>Issue</th>

<th>Article Order</th>

<th>DOI</th>

<th width="180">
Action
</th>

</tr>

</thead>

<tbody>

<?php foreach($rows as $r): ?>

<tr>

<td>
<?= (int)$r['id'] ?>
</td>

<td>
<?= htmlspecialchars($r['submission_no']) ?>
</td>

<td>
<?= htmlspecialchars($r['title']) ?>
</td>

<td>
<?= (int)$r['issue_id'] ?>
</td>

<td>
<?= (int)$r['article_order'] ?>
</td>

<td>

<?php if(!empty($r['doi'])): ?>

<span class="badge bg-success">
<?= htmlspecialchars($r['doi']) ?>
</span>

<?php else: ?>

<span class="badge bg-danger">
Missing DOI
</span>

<?php endif; ?>

</td>

<td>

<a
class="btn btn-sm btn-primary"
href="/easychair/admin/conference-home/generate-doi?submission_id=<?= (int)$r['id'] ?>"
>

Generate DOI

</a>

</td>

</tr>

<?php endforeach; ?>

</tbody>

</table>

</div>

</div>

</div>

</div>
