<?php
/**
 * @var $perPageValues array
 * @var $perPageField int
 * @var $form int
 */
?>
<div class="bp-form-tools__item bp-form-group bp-form_per_page bp-form_select2">
    <div class="bp-form-group__inner">
        <label for="bp-per_page"><?= __("Items in page", "auctionforge") ?></label>
        <select id="bp-per_page" class="bp-form-control bp-per-page-select2" name="per_page" style="width: 100%;" <?= (isset($form) && $form != "") ? "form=\"{$form}\"" : "" ?>>
            <?php foreach ($perPageValues as $perPageValue) { ?>
                <option <?= selected(selected(($perPageField == $perPageValue))) ?> value="<?= $perPageValue ?>"><?= $perPageValue ?></option>
            <?php } ?>
        </select>
    </div>
</div>