<?php foreach($models as $model): ?>

<table>
    <tr>
        <td>
            <img src="/images/pet_small/<?= $model->id ?>.png" alt="" style="padding: 10px">
        </td>
        
        <td>
            <b><?= CHtml::link($model->title, array('pets/info', 'id' => $model->id)) ?></b>
            <br />
            Бонус к атаке до <b><?= $model->procent ?></b>%
            <br />
            <?= CHtml::link('Купить за', array('pets/buy', 'id' => $model->id)) ?>
            <?php if ($model->money != 0): ?>
            <?= $model->money ?> <img src="/images/money.png" alt="">
            <?php else: ?>
            <?= $model->donate ?> <img src="/images/diamond.png" alt="">
            <?php endif ?>
        </td>
    </tr>
</table>

<?php endforeach; ?>
