<?php /** @var \Autogedal\BlackFriday\Block\Email\Items $block */ /** @var \Magento\Framework\Escaper $escaper */ ?> <table style="width:100%;border-collapse:collapse;"><?php foreach ($block->getItems() as $item): ?> <tr><td style="width:110px;padding:10px 12px 10px 0;border-bottom:1px solid #e6e9f2;vertical-align:top;"><a href="<?= $escaper->escapeUrl($item['url']) ?>"><img src="<?= $escaper->escapeUrl($item['image']) ?>" alt="<?= $escaper->escapeHtmlAttr($item['name']) ?>" width="100" style="width:100px;height:auto;border:1px solid #e6e9f2;border-radius:6px;display:block;"></a></td><td style="padding:10px 0;border-bottom:1px solid #e6e9f2;vertical-align:top;font-family:Arial,Helvetica,sans-serif;"><a href="<?= $escaper->escapeUrl($item['url']) ?>" style="color:#1a1a1a;text-decoration:none;font-weight:bold;font-size:15px;line-height:1.3;"><?= $escaper->escapeHtml($item['name']) ?></a> <p style="margin:8px 0 0;font-size:14px;"><span style="color:#2d7bff;font-size:20px;font-weight:bold;"><?= $escaper->escapeHtml($item['price'] ?? '') ?></span> <?php if (!empty($item['oldPrice'])): ?> <span style="color:#8a93a8;text-decoration:line-through;margin-left:8px;"><?= $escaper->escapeHtml($item['oldPrice']) ?></span> <?php endif; ?> <?php if (!empty($item['pct'])): ?> <span style="background:#ff3347;color:#ffffff;font-weight:bold;font-size:12px;padding:3px 6px;border-radius:4px;margin-left:8px;">-<?= (int)$item['pct'] ?>%</span> <?php endif; ?></p><p style="margin:10px 0 0;"><a href="<?= $escaper->escapeUrl($item['url']) ?>" style="color:#2d7bff;font-weight:bold;font-size:13px;"><?= $escaper->escapeHtml(__('Vezi produsul')) ?> &rarr;</a></p></td></tr><?php endforeach; ?></table>