<main class="stock zero"><ul class="top"><li><a class="ajax block" href="/storage/refresh/<?=$refresh?>">
<img alt="" class="icon" src="/design/icons/<?=$top['icon']?>.png"><?=$top['link']?></a></li></ul><h3>
<span class="color">Место на складе:</span> <?=$place['storage']?> / <?=DATA['storage']?></h3><? if (!isset($sale)) : ?>
<h3>Семена</h3><? if (!$seeds) : ?><p class="notice"><img alt="" class="icos" src="/design/icons/cross.png">На складе 
нет семян.</p><? else : ?><ul class="item"><? foreach($seeds as &$post) : ?><li><article class="item">
<img alt="" class="item seed" src="/design/shop/seeds/<?=$post['image']?>.png"><h4><span class="color"><?=$post['name']?>
</span> (<?=$post['count']?>)</h4></article></li><? endforeach; ?></ul><? endif; ?><? endif; ?><h3<?=$line?>>
Растения</h3><? if (!$plants) : ?><p class="notice"><img alt="" class="icos" src="/design/icons/cross.png">На складе 
нет растений.</p><? else : ?><ul class="item"><? foreach($plants as &$post) : ?><li><article class="<?=$item?>">
<img alt="" class="item" src="/design/items/<?=$post['image']?>.png"><h4><span class="color"><?=$post['name']?>
</span> (<?=$post['count']?>)</h4><? if (isset($sale)) : ?><p><img alt="" class="icos" src="/design/icons/money.png">
Продажа: <?=$post['sale']?></p><? endif; ?></article><? if (isset($sale)) : ?><ul class="stock">
<? if ($post['count'] > 0) : ?><li><a class="ajax button stock" href="/storage/sale/type/
plant/num/<?=$post['object']?>/count/1/token/<?=TOKEN?>">-1</a></li><? endif; ?>
<? if ($post['count'] > 2) : ?><li><a class="ajax button stock" href="/storage/sale/type/
plant/num/<?=$post['object']?>/count/3/token/<?=TOKEN?>">-3</a></li><? endif; ?>
<? if ($post['count'] > 4) : ?><li><a class="ajax button stock" href="/storage/sale/type/
plant/num/<?=$post['object']?>/count/5/token/<?=TOKEN?>">-5</a></li><? endif; ?>
<? if ($post['count'] > 9) : ?><li><a class="ajax button stock" href="/storage/sale/type/
plant/num/<?=$post['object']?>/count/10/token/<?=TOKEN?>">-10</a></li><? endif; ?></ul>
<? endif; ?></li><? endforeach; ?></ul><? endif; ?><h3 class="line">Продукты</h3>
<? if (!$foods && !$techs) : ?><p class="notice"><img alt="" class="icos" src="/design/icons/cross.png">На складе 
нет продуктов.</p><? else : ?><ul class="item"><? if ($foods) : ?><? foreach($foods as &$post) : ?><li><article class="<?=$item?>">
<img alt="" class="item" src="/design/items/<?=$post['image']?>.png"><h4><span class="color"><?=$post['name']?>
</span> (<?=$post['count']?>)</h4><? if (isset($sale)) : ?><p><img alt="" class="icos" src="/design/icons/money.png">
Продажа: <?=$post['sale']?></p><? endif; ?></article><? if (isset($sale)) : ?><ul class="stock">
<? if ($post['count'] > 0) : ?><li><a class="ajax button stock" href="/storage/sale/type/
food/num/<?=$post['object']?>/count/1/token/<?=TOKEN?>">-1</a></li><? endif; ?>
<? if ($post['count'] > 2) : ?><li><a class="ajax button stock" href="/storage/sale/type/
food/num/<?=$post['object']?>/count/3/token/<?=TOKEN?>">-3</a></li><? endif; ?>
<? if ($post['count'] > 4) : ?><li><a class="ajax button stock" href="/storage/sale/type/
food/num/<?=$post['object']?>/count/5/token/<?=TOKEN?>">-5</a></li><? endif; ?>
<? if ($post['count'] > 9) : ?><li><a class="ajax button stock" href="/storage/sale/type/
food/num/<?=$post['object']?>/count/10/token/<?=TOKEN?>">-10</a></li><? endif; ?></ul>
<? endif; ?></li><? endforeach; ?><? endif; ?><? if ($techs) : ?><? foreach($techs as &$post) : ?><li>
<article class="<?=$item?>"><img alt="" class="item" src="/design/items/<?=$post['image']?>.png"><h4><span class="color">
<?=$post['name']?></span> (<?=$post['count']?>)</h4><? if (isset($sale)) : ?><p><img alt="" class="icos" src="/design/icons/money.png">
Продажа: <?=$post['sale']?></p><? endif; ?></article><? if (isset($sale)) : ?><ul class="stock">
<? if ($post['count'] > 0) : ?><li><a class="ajax button stock" href="/storage/sale/type/
tech/num/<?=$post['object']?>/count/1/token/<?=TOKEN?>">-1</a></li><? endif; ?>
<? if ($post['count'] > 2) : ?><li><a class="ajax button stock" href="/storage/sale/type/
tech/num/<?=$post['object']?>/count/3/token/<?=TOKEN?>">-3</a></li><? endif; ?>
<? if ($post['count'] > 4) : ?><li><a class="ajax button stock" href="/storage/sale/type/
tech/num/<?=$post['object']?>/count/5/token/<?=TOKEN?>">-5</a></li><? endif; ?>
<? if ($post['count'] > 9) : ?><li><a class="ajax button stock" href="/storage/sale/type/
tech/num/<?=$post['object']?>/count/10/token/<?=TOKEN?>">-10</a></li><? endif; ?></ul>
<? endif; ?></li><? endforeach; ?><? endif; ?></ul><? endif; ?><? if ($saled) : ?>
<ul class="bottom"><li><a class="ajax block bottom" href="/storage/sale/token/<?=TOKEN?>">
<img alt="" class="icon" src="/design/icons/money.png">Продать продукцию</a></li></ul><? endif; ?></main>