<?php
/**
 * @var $auctions WP_Term[]
 * @var $auctionsData array
 * @var $isAdmin boolean
 */

use auctionforge\inc\helpers\SettingsHelper;

?>
<?php foreach ($auctions as $auction) { ?>
    <?php
    $auction = apply_filters('auctionforge_prepare_auction_object', $auction);
    $auctionId = SettingsHelper::getTermOption($auction->term_id, 'auction_id');
    $auctionNumber = SettingsHelper::getTermOption($auction->term_id, 'auction_number');
    $auctionTitle = apply_filters('auctionforge_auction_name_build', $auction->name, $auction);
    ?>
    <tr id="exclude-item-<?= $auctionId ?>">
        <td data-label="Auction ID"><?= $auctionId ?>: <?= $auctionTitle ?></td>
        <td data-label="Actions" style="text-align: center">
            <button data-auction="<?= $auctionId ?>" class="tiny ui button clear-ignore-list-action"
                data-tooltip="This button will move this auction to active and will start his lots sync process.">
                Add to sync
            </button>
        </td>
    </tr>
<?php } ?>