<h1 class="title"><?= __('Latest forum topics') ?></h1>

<ul class="forum-topics">
    <?php foreach ($topics as $topic): ?>
        <li><a target="_blank" href="<?= str_replace(['{topic_id}', '{forum_id}'], [$topic['topic_id'], $topic['forum_id']], config('forum.topics.topic_url')) ?>"><?= $topic['title'] ?></a></li>
    <?php endforeach ?>
</ul>