<?php
if (!defined('ABSPATH')) exit;

function flexyconsent_cookieManagerPage()
{
    $pageNameMain = 'cookieManagerPage'; ?>
    <div class="container py-3">
		<div class="row w-100">
			<div class="col-12 text-center">
				<?php flexyconsent_get_top_section(); ?>
			</div>

			<div id="<?php echo esc_attr($pageNameMain); ?>" class="col-12">
				<div class="card mb-4">
                   <div class="card-body">
                       <div class="row">
                           <div class="col-md-6">
                               <label for="select_domain" class="form-label"><?php esc_html_e('Select Domain', 'flexyconsent'); ?></label>
                               <select id="select_domain" class="form-select" aria-label="<?php esc_attr('Select Domain', 'flexyconsent'); ?>">
                                   <option value=""><?php esc_html_e('Loading domains...', 'flexyconsent'); ?></option>
                               </select>
                           </div>
                           <div class="col-md-6">
                               <label for="select_language" class="form-label"><?php esc_html_e('Select Language', 'flexyconsent'); ?>
                               </label>
                               <select id="select_language" class="form-select" aria-label="<?php esc_attr('Select Language', 'flexyconsent'); ?>">
                                   <option value=""><?php esc_html_e('Loading languages...', 'flexyconsent'); ?></option>
                               </select>
                           </div>
                       </div>
                   </div>
               </div>

               <div id="cookie_manager_container">
                    <div class="text-center py-5">
                        <i class="fas fa-cookie-bite fa-3x text-muted mb-3"></i>
                        <p class="text-muted"><?php esc_html_e('Select a domain above to manage cookies', 'flexyconsent'); ?></p>
                    </div>
                </div>
			</div>

			<div class="col-12 text-center">
				<?php flexyconsent_get_bottom_section(); ?>
			</div>
		</div>
	</div>

<?php
}