<?php
/**
* ChronoLibrary
* Copyright (c) 2025 ChronoEngine.com, All rights reserved.
* Author: (ChronoEngine.com Team)
* license: GNU General Public License version 2 or later; see LICENSE.txt
* Visit http://www.ChronoEngine.com for regular updates and information.
**/
defined('_JEXEC') or die('Restricted access');
?>
<?php foreach($field->options as $k => $option): ?>
<div class="field">
    <?php if($option->header): ?>
	<label for="<?php echo $field->id."-".$k; ?>"><strong><?php echo $option->text; ?></strong></label>
	<?php else: ?>
	<div class="nui checkbox">
		<input type="checkbox" name="<?php echo $field->name; ?>" id="<?php echo $field->id."-".$k; ?>" tabindex="0" class="hidden" value="<?php echo $option->value; ?>" <?php if($option->selected): ?>checked="checked"<?php endif; ?> <?php echo $field->code; ?>>
		<label tabindex="0" for="<?php echo $field->id."-".$k; ?>"><?php echo Chrono::ShowIcon("square unchecked regular"); ?><?php echo Chrono::ShowIcon("square-check checked"); ?><?php echo $option->text; ?></label>
	</div>
	<?php endif; ?>
</div>
<?php endforeach; ?>