<div class="item-view">
    <div class="item-view_img">
        <?php if ($better): ?>
            <div class="item-view_better">
                +<?php echo $better; ?>
            </div>
        <?php endif; ?>
        <img src="/images/items/<?php echo $item->img; ?>.jpg">
    </div>
    <div class="item-view_info">
        <img src="/images/icons/quality/<?php echo $item->quality; ?>.png"> <?php echo FuncHelper::getQuality($item->quality); ?>
        <?php echo (!isset($item->personal) && $item->personal > 0 ? ', личный' : ''); ?> <br /> 
        <?php echo $item->name; ?><br /> 
        <?php echo FuncHelper::getType($item->type); ?>, <b><?php echo $item->level; ?></b> уровень<br />
    </div>
</div>
<hr>
<div class="item-stats">
    <?php foreach (FuncHelper::mainParams() as $param => $name): ?>
        <?php if ($item->$param): $percent = $param . '_percent'; ?>
            <img src="/images/icons/<?php echo $param; ?>.png"> <?php echo $name; ?>: <?php echo $compare[$param]; ?> <span class="percent">(<?php echo $item->$percent; ?>%)</span>
            <br />
        <?php endif; ?>
    <?php endforeach; ?>
</div>
<?php if (isset($item->enchant_type) && $item->enchant_type > 0): ?>
    <hr>
    <img src="/images/icons/star_green.png"> <span class="green">Чары: <img src="/images/icons/quality/<?php echo $item->enchant_type; ?>.png" alt="*"/> <?php echo UserItems::enchantInfo($item->id_item); ?></span>
<?php endif; ?>