<div class="dropdown-menu">
<?php if (!empty($session['cart'])) : ?>
<?php foreach ($session['cart'] as $id => $item) : ?>
<div class="top-block">
<div class="img-prod">
<?php if ($item['image']) : ?>
<?= Html::img('/web/uploads/products/' . ProductSeeds::getImageTitle($item['image']), ['width' => '60', 'height' => '70']) ?>
<?php else: ?>
<?= Html::img('/web/uploads/system/no-image.png', ['width' => '60', 'height' => '70']) ?>
<?php endif; ?>
</div>
<div class="prod-desc">
<h3><?= $item['title'] ?></h3>
<p>ЦЕНА - <span class="price"><?= $item['price'] ?> грн.</span></p>
</div>
<div class="quantity">
<button class="minus"
type="button"><?= Html::img('/web/images/minus.png', ['alt' => '']) ?></button>
<input type="text" placeholder="1">
<button class="plus"
type="button"><?= Html::img('/web/images/plus.png', ['alt' => '']) ?></button>
</div>
<div class="price">
<p><?= $item['price'] ?> грн</p>
</div>
<button class="delete"
type="button"><?= Html::img('/web/images/delete.png', ['alt' => '']) ?></button>
</div>
<?php endforeach; ?>
<div class="bottom-block">
<div class="block-total">
<p>Итого:
<span class="total-prod"><?= $session['cart.qty'] ?> товар</span>
</p>
<p>На сумму:
<span class="total-price"><?= $session['cart.sum'] ?> грн.</span>
</p>
</div>
<a class="follow-order" href="<?= Url::to(['cart/view']) ?>">Оформить заказ</a>
</div>
<?php else: ?>
<h4>Корзина пуста</h4>
<?php endif; ?>
</div>