<?php
echo '<h2>Canjes acumulados — '.(class_exists('NexoraRealm')?htmlspecialchars(NexoraRealm::label(),ENT_QUOTES,'UTF-8'):'Reino actual').'</h2>';
try { $x=new \Plugin\ExchangeResets\ExchangeResets(); $logs=$x->getExchangedResetsList(); if(!is_array($logs)) throw new Exception('Todavía no hay resets canjeados en este reino.'); echo '<table class="table table-hover table-striped"><thead><tr><th>Personaje</th><th>Resets canjeados</th></tr></thead><tbody>'; foreach($logs as $row) echo '<tr><td>'.htmlspecialchars($row['character'],ENT_QUOTES,'UTF-8').'</td><td>'.number_format($row['exchanged_resets']).'</td></tr>'; echo '</tbody></table>'; } catch(Exception $e){message('warning',$e->getMessage());}
