<?php
/** @var \Banyo\CustomHomePage\ViewModel\SaveUp $viewModel */
$viewModel = $block->getData('viewModel');
$items = $viewModel->getBanyoAtHomeItems();
?>

<div class="bg-white pb-4">
    <div class="px-3 2xl:container 3xl:max-w-screen-2xl py-4">

        <?php if (!empty($items)): ?>
            <div class="md:flex gap-7">

                <!-- First Item (items[0]) -->
                <?php if (!empty($items[0])): ?>
                    <div class="mt-2">
                        <a href="/brands/franke">
                        <img src="<?= $escaper->escapeUrl($items[0]['image']) ?>"
                             alt="Banyo Item 1"
                             class="object-cover rounded-lg" />
                        </a>
                    </div>
                <?php endif; ?>

                <!-- Second Item (items[1]) -->
                <?php if (!empty($items[1])): ?>
                    <div class="mt-2">
                        <a href="/brands/blanco">
                        <img src="<?= $escaper->escapeUrl($items[1]['image']) ?>"
                             alt="Banyo Item 2"
                             class="object-cover rounded-lg" />
                        </a>
                    </div>
                <?php endif; ?>


            </div>
        <?php endif; ?>

    </div>
</div>
