1b6c326d8SGreg Roach<?php 2b6c326d8SGreg Roach 3b6c326d8SGreg Roach/** 4b6c326d8SGreg Roach * @var bool|null $checked 5b6c326d8SGreg Roach * @var bool|null $disabled 6b6c326d8SGreg Roach * @var string|null $id 7b6c326d8SGreg Roach * @var string $label 8b6c326d8SGreg Roach * @var string $name 9b6c326d8SGreg Roach * @var string $value 10b6c326d8SGreg Roach */ 11b6c326d8SGreg Roach 12b6c326d8SGreg Roach?> 13b6c326d8SGreg Roach 14b6c326d8SGreg Roach<div class="form-check"> 15b6c326d8SGreg Roach <input type="checkbox" class="form-check-input" 16b6c326d8SGreg Roach name="<?= e($name) ?>" 17b6c326d8SGreg Roach id="<?= e($id ?? $name . '-' . ($value ?? '1')) ?>" 18b6c326d8SGreg Roach value="<?= e($value ?? '1') ?>" 19*4a213054SGreg Roach <?= $checked ?? false ? 'checked="checked"' : '' ?> 20*4a213054SGreg Roach <?= $disabled ?? false ? 'disabled="disabled"' : '' ?> 21*4a213054SGreg Roach /> 22b6c326d8SGreg Roach <label class="form-check-label" for="<?= e($id ?? $name . '-' . ($value ?? '1')) ?>"> 23b6c326d8SGreg Roach <?= $label ?> 24b6c326d8SGreg Roach </label> 25b6c326d8SGreg Roach</div> 26