<div id="site_id_field" class="field">
    <div class="field-meta">
        <label for="site_id"><?php echo $this->translate('Search by site'); ?></label>
        <?php echo $this->hyperlink('', '#', ['class' => 'expand', 'title' => $this->translate('Expand')]); ?>
        <div class="collapsible">
            <div class="field-description"><?php echo $this->translate('Searches for items that are assigned to this site.'); ?></div>
        </div>
    </div>
    <div class="inputs">
        <?php echo $this->siteSelect([
            'name' => 'site_id',
            'attributes' => [
                'id' => 'site_id',
                'value' => $query['site_id'] ?? null,
            ]
        ]); ?>
    </div>
</div>
