<?php foreach ($models as $model): ?>
    <table>
        <tr>
            <td>
                <img src="/images/shop/cat_<?= $model->type ?>/<?= $model->id ?>.png" alt="" style="padding: 10px">
            </td>

            <td>
                <b><?= CHtml::link($model->title, array('pets/info', 'id' => $model->id)) ?></b>
                <br />
                <?php if ($model->id == 220): ?>
                Корм на 12 часов
                <?php else : ?>
                Корм на 24 часа
                <?php endif ?>
                <br />
                <?= CHtml::link('Купить за', array('pets/buyfood', 'id' => $model->id)) ?>
                <?= $model->money ?> <img src="/images/money.png" alt="">

            </td>
        </tr>
    </table>
<?php endforeach; ?>
