<?php
/**
 *
 *
 * @var int    $form_id         Which form we are dealing with.
 * @var int    $field_id        Which field ID we are dealing with.
 * @var string $html_id         Which field html this field has.
 * @var array  $field           Which field object we are dealing with.
 * @var array  $entries         Which entries we are modifying.
 * @var array  $selected_fields Which fields were selected.
 * @var string $view            Which view are in.
 * @var string $placeholder     Place holder for this field.
 * @var mixed  $form            Form settings.
 */

$id    = isset( $input['id'] ) ? $input['id'] : $field->id;
$value = ! empty( $field_values[ $id ] ) ? $field_values[ $id ] : null;
?>
<div class="gk-gravityactions-edit-container-boolean">
	<div class="gk-actions-component-checkbox__input-container">
		<input
			id="<?php echo esc_attr( $html_id ); ?>"
			type="checkbox"
			class="gk-gravityactions-edit-field gk-gravityactions-edit-field-boolean gk-actions-component-checkbox__input"
			name="field_values[<?php echo esc_attr( $id ); ?>]"
			<?php checked( (bool) $value ); ?>
			value="1"
		/>
	</div>
</div>
