<?= $this->layout('_theme', ['title' => $title, 'subtitle' => 'Adicionar item.txt']); ?>

<div class="p-4 bg-gray-100 rounded-lg">
    <form action="<?= __redirect('administration/auth/add/itemtxt') ?>">

        <div>
            <p class="px-1 py-3 text-[13px]">Selecione o shopping</p>
            <select class="rounded-sm p-2 my-1 text-xs w-full border border-neutral-400 focus:outline-none focus:bg focus:bg-neutral-100" name="category">
                <?php foreach (web()->shoppings as $key => $shop) : ?>
                    <option value="<?= $key ?>"><?= $key ?></option>
                <?php endforeach; ?>
            </select>
        </div>

        <div>
            <p class="px-1 py-3 text-[13px]">Função</p>
            <select class="rounded-sm p-2 my-1 text-xs w-full border border-neutral-400 focus:outline-none focus:bg focus:bg-neutral-100" name="option">
                <option value="not">- Adicionar novos itens</option>
                <option value="clear">- Substituir itens da categoria</option>
                <option value="clearall">- Limpar todos os itens do banco</option>
            </select>
        </div>

        <button class="rounded-lg py-3 px-6 bg-sky-500 text-white block mt-4 mx-auto text-sm border-2 border-sky-400 hover:bg-sky-700 transition ease-in-out duration-500" type="submit">Adicionar</button>
    </form>
</div>