<?php
/**
 * Template for Cookie Category settings
 *
 * @since 3.2
 */
if( ! defined( 'ABSPATH' ) ) exit;
?>
<?php if( $has_cookie_categories ): ?>

<div class="wpca-cc-sett-options">
    <?php foreach ( $categories as $data ):
    ?><p class="wpie-switch">
    	<label>
            <?php echo \WpieFw\Helpers\WpieFormHelper::formField(
            		'checkbox',
                    $name,
                    '',
            		'',
                    $data['attr'],
            		'',
            		array()
            		); ?>
      		<span class="wpie-switch-slider"></span>
    	</label>
    	<span class="wpie-switch-label"><?php echo esc_html( $data['label'] ) ?></span>
	   	<span class="wpie-switch-descr"><?php echo esc_html( $data['descr'] ) ?></span>
	</p><?php endforeach ?>
</div>
<?php else: ?>

<?php endif ?>