{% set anchorId = pimcore_input('anchorId').getData() %}
{% set viewAll =
pimcore_input('view-all', { placeholder: 'Linktext alle aktuellen Auktionen anzeigen' })
%}
<div>
<div class="grid gap-4">
{% for auction in auctions %}
{% include 'auction/auction_card.html.twig' with { auction: auction } %}
{% else %}
{% include 'document/areabricks/current-auctions-brick/empty-tile.html.twig' %}
{% endfor %}
</div>
{% if editmode or pimcore_link('view-full') is not empty %}
<div class="mt-12">
{% set link = pimcore_link('view-full', { placeholder: 'Link' }) %}
{% include 'component/button.html.twig' with {
text: editmode ? link : link.text,
type: 'primary',
icon_after: 'arrow-right-tail',
attr: { href: link.href, class: 'w-full' }
} only %}
</div>
{% endif %}
</div>