rpg-westreiche/westreiche_website/views/admin_equipment.php

48 lines
1.9 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/** @var array $weapons */
/** @var array $armors */
?>
<div class="page-head">
<div>
<h1>Waffen &amp; Rüstungen</h1>
<p class="lede">Der Katalog füllt die Auswahllisten im Bogen. Werte sind Startpunkte – im Bogen bleibt jeder Eintrag änderbar.</p>
</div>
<a class="btn btn-ghost" href="<?= e(url('/admin/users')) ?>">Zurück</a>
</div>
<section class="panel">
<h2>Waffen</h2>
<table class="data">
<thead><tr><th>Name</th><th>Schaden</th><th class="num">Bonus</th><th>Art</th><th>Gewicht</th><th>Preis</th></tr></thead>
<tbody>
<?php foreach ($weapons as $weapon): ?>
<tr>
<td><?= e((string) $weapon['name']) ?></td>
<td><?= e((string) $weapon['damage']) ?></td>
<td class="num"><?= e(signed((int) $weapon['attack_bonus'])) ?></td>
<td class="muted"><?= e((string) $weapon['category']) ?></td>
<td class="muted"><?= e((string) $weapon['weight']) ?></td>
<td class="muted"><?= e((string) $weapon['value']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</section>
<section class="panel">
<h2>Rüstungen &amp; Schilde</h2>
<table class="data">
<thead><tr><th>Name</th><th class="num">RK-Bonus</th><th>Art</th><th>Gewicht</th><th>Preis</th></tr></thead>
<tbody>
<?php foreach ($armors as $armor): ?>
<tr>
<td><?= e((string) $armor['name']) ?></td>
<td class="num"><?= e(signed((int) $armor['ac_bonus'])) ?></td>
<td class="muted"><?= e((string) $armor['kind']) ?></td>
<td class="muted"><?= e((string) $armor['weight']) ?></td>
<td class="muted"><?= e((string) $armor['value']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</section>