<div class='ewd-upcp-catalog-sidebar-custom-field-div' data-custom_field_id='<?php echo esc_attr( $this->custom_field->id ); ?>'>

	<div class='ewd-upcp-catalog-sidebar-title <?php echo ( $this->get_option( 'styling-sidebar-title-collapse' ) ? 'ewd-upcp-catalog-sidebar-collapsible' : '' ); ?> <?php echo ( $this->get_option( 'styling-sidebar-start-collapsed' ) ? 'ewd-upcp-sidebar-content-hidden' : '' ); ?>'>
		<?php echo esc_html( $this->custom_field->name ); ?>
	</div>

	<?php foreach ( $this->sidebar_custom_fields[ $this->custom_field->id ] as $field_value => $field_count ) { ?>

		<div class='ewd-upcp-catalog-sidebar-custom-field <?php echo ( $this->is_custom_field_value_selected( $field_value ) ? 'ewd-upcp-taxonomy-selected' : '' ); ?>' data-custom_field_id='<?php echo esc_attr( $this->custom_field->id ); ?>' data-value='<?php echo esc_attr( $field_value ); ?>'>

			<input type='checkbox' name='<?php echo esc_attr( $this->custom_field->id ); ?>' id='<?php echo esc_attr( $this->custom_field->id ); ?>-<?php echo esc_attr( $field_value ); ?>' value='<?php echo esc_attr( $field_value ); ?>' <?php echo ( $this->is_custom_field_value_selected( $field_value ) ? 'checked' : '' ); ?> >

			<label class='ewd-upcp-catalog-sidebar-custom-field-value-label' for='<?php echo esc_attr( $this->custom_field->id ); ?>-<?php echo esc_attr( $field_value ); ?>'> 

				<span><?php echo esc_html( $field_value ); ?> <span class='ewd-upcp-catalog-sidebar-custom-field-count'> (<?php echo esc_html( $field_count ); ?>)</span></span>
	
			</label>

		</div>

	<?php } ?>

</div>