<ul class="checkboxes">
	<?php foreach ($values as $v => $l) { ?>
		<li class="checkboxes_i">
			<input
				type="hidden"
				name="<?= "{$name}[{$this->escape($v)}]" ?>"
				value="0">
			<input
				type="checkbox"
				name="<?= "{$name}[{$this->escape($v)}]" ?>"
				id="<?= "{$id}[{$this->escape($v)}]" ?>"
				value="1"
				<?= isset($disabled) && $disabled ? "disabled" : null ?>
				<?= isset($readOnly) && $readOnly ? "readonly" : null ?>
				<?= in_array($v, $value) ? 'checked' : null ?>
				<?= isset($class) ? "class=\"{$class}\"" : null ?>> 
			<label for="<?= "{$id}[{$this->escape($v)}]" ?>" class="checkbox">
				<?= $l ?>
			</label>
		</li>
	<?php } ?>
</ul>
<ul class="checkboxes">
	<?php foreach ($values as $v => $l) { ?>
		<li class="checkboxes_i">
			<input
				type="hidden"
				name="<?= "{$name}[{$this->escape($v)}]" ?>"
				value="0">
			<input
				type="checkbox"
				name="<?= "{$name}[{$this->escape($v)}]" ?>"
				id="<?= "{$id}[{$this->escape($v)}]" ?>"
				value="1"
				<?= isset($disabled) && $disabled ? "disabled" : null ?>
				<?= isset($readOnly) && $readOnly ? "readonly" : null ?>
				<?= in_array($v, $value) ? 'checked' : null ?>
				<?= isset($class) ? "class=\"{$class}\"" : null ?>> 
			<label for="<?= "{$id}[{$this->escape($v)}]" ?>" class="checkbox">
				<?= $l ?>
			</label>
		</li>
	<?php } ?>
</ul>
<?php if (!count($values)) { ?>
	<small>No options available.</small>
<?php } ?>
Add message when input-checkboxes has no values
Add message when input-checkboxes has no values
