<?= $this->layout('_layout', ['title' => $title]); ?>

<main class="main">
    <?= $this->insert('includes/aside_info') ?>
    <div class="content">
        <?php if (plugin()->shopping_unique) : ?>
            <div class="h2-title h2-title-content flex-s-c">
                <span>Shopping Unique</span>
            </div>

            <div class="flex justify-center gap-10 flex-wrap mt-4">
                <?php foreach (web()->shoppings as $key => $shopping) : ?>
                    <div style="border:solid 1px white; padding:40px;">
                        <div>
                            <p class="text-sm p-2">Shopping: <span><?= ucfirst($key) ?></span> </p>
                            <p class="p-2 bg-neutral-300 rounded-lg text-xs"><?= $shopping['description'] ?></p>
                        </div>
                        <a class="rounded-full py-1 px-4 bg-orange-500 text-white block mt-4 mx-auto text-sm border-2 border-orange-400 w-24  text-center hover:bg-orange-700 transition ease-in-out duration-500" href="<?= __redirect("shop/{$key}") ?>">Acessar</a>
                    </div>
                <?php endforeach; ?>
            </div>
        <?php endif; ?>
        <?php if (plugin()->shopping_kits) : ?>
            <div class="my-4"></div>
            <div class="h2-title h2-title-content flex-s-c">
                <span>Shopping Kit</span>
            </div>

            <div class="flex justify-center gap-10 flex-wrap mt-4">
                <?php foreach (web()->shoppings_kit as $key => $shopping) : ?>
                   <div style="border:solid 1px white; padding:40px;">
                        <div>
                            <p class="text-sm p-2">Shopping: <span><?= ucfirst($key) ?></span> </p>
                            <p class="p-2 bg-neutral-300 rounded-lg text-xs"><?= $shopping['description'] ?></p>
                        </div>
                        <a class="rounded-full py-1 px-4 bg-orange-500 text-white block mt-4 mx-auto text-sm border-2 border-orange-400 w-24  text-center hover:bg-orange-700 transition ease-in-out duration-500" href="<?= __redirect("kit/shop/{$key}") ?>">Acessar</a>
                    </div>
                <?php endforeach; ?>
            </div>
        <?php endif; ?>

    </div>
</main>