<?php foreach ( $filter->get() as $ck => $cpt_field ): ?>
    <?php if ( $cpt_field->value == -1 ): ?>
    <div class="asp_option asp_option_cat asp_option_selectall" tabindex="0">
        <div class="asp_option_inner">
            <input type="checkbox" id="<?php echo $id; ?>customset_selectall"
                   aria-label="<?php echo esc_attr($cpt_field->label); ?>"
                   data-targetclass="asp_post_type_checkbox" checked="checked"/>
			<div class="asp_option_checkbox"></div>
        </div>
        <div class="asp_option_label">
            <?php echo esc_attr($cpt_field->label); ?>
        </div>
    </div>
    <?php else: ?>
    <div class="asp_option" tabindex="0">
        <div class="asp_option_inner">
            <input type="checkbox" value="<?php echo esc_attr($cpt_field->value); ?>" id="<?php echo $id; ?>customset_<?php echo $id . $ck; ?>"
                   aria-label="<?php echo esc_attr($cpt_field->label); ?>"
                   class="asp_post_type_checkbox"
                   <?php echo $cpt_field->default ? 'data-origvalue="1"' : ''; ?>
                   name="customset[]" <?php echo $cpt_field->selected ? 'checked="checked"' : ''; ?>/>
            <div class="asp_option_checkbox"></div>
        </div>
        <div class="asp_option_label">
            <?php echo esc_attr($cpt_field->label); ?>
        </div>
    </div>
    <?php endif; ?>
<?php endforeach; ?>