Panel/modules/steam_workshop/views/index.php
copilot-swe-agent[bot] e44519c030
Apply automated PHP8 safety transforms
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/89922108-1604-44ae-949d-358d32b9d70a

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-04-23 14:01:37 +00:00

20 lines
675 B
PHP

<?php
declare(strict_types=1);
/** @var array $records */
/** @var array $lang */
/** @var bool $isAdmin */
/** @var array $adapterOptions */
?>
<div class="sw-admin sw-index">
<?php if (empty($records)): ?>
<div class="sw-empty">
<p><?php echo $isAdmin ? htmlspecialchars($lang['empty_state_admin']) : htmlspecialchars($lang['empty_state_user']); ?></p>
</div>
<?php else: ?>
<div class="sw-grid">
<?php foreach ((array)$records as $record): ?>
<?php $currentRecord = $record; include __DIR__ . '/partials/server_card.php'; ?>
<?php endforeach; ?>
</div>
<?php endif; ?>
</div>