<?php



if ($_settings->userdata('type') != '1') {
	echo 'Você não tem permissão para acessar essa página.';
	exit();
}

$enable_cpf = $_settings->info('enable_cpf');
$enable_email = $_settings->info('enable_email');
$enable_address = $_settings->info('enable_address');
$enable_birth = $_settings->info('enable_birth');
$enable_legal_age = $_settings->info('enable_legal_age');
$enable_instagram = $_settings->info('enable_instagram');
$enable_share = $_settings->info('enable_share');
$enable_groups = $_settings->info('enable_groups');
$enable_footer = $_settings->info('enable_footer');
$enable_password = $_settings->info('enable_password');
$enable_two_phone = $_settings->info('enable_two_phone');
$enable_multiple_order = $_settings->info('enable_multiple_order');
$text_footer = $_settings->info('text_footer');
$telegram_group_url = $_settings->info('telegram_group_url');
$whatsapp_group_url = $_settings->info('whatsapp_group_url');
$theme = $_settings->info('theme');
$enable_pixel = $_settings->info('enable_pixel');
$facebook_access_token = $_settings->info('facebook_access_token');
$facebook_pixel_id = $_settings->info('facebook_pixel_id');
$enable_hide_numbers = $_settings->info('enable_hide_numbers');
$enable_ga4 = $_settings->info('enable_ga4');
$google_ga4_id = $_settings->info('google_ga4_id');
$enable_gtm = $_settings->info('enable_gtm');
$google_gtm_id = $_settings->info('google_gtm_id');
$enable_dwapi = $_settings->info('enable_dwapi');
$whatsapp_footer = $_settings->info('whatsapp_footer');
$instagram_footer = $_settings->info('instagram_footer');
$facebook_footer = $_settings->info('facebook_footer');
$twitter_footer = $_settings->info('twitter_footer');
$youtube_footer = $_settings->info('youtube_footer');
echo '<style>' . "\r\n\t" . '.active-tab{border-bottom:none!important}.can-toggle{position:relative;margin-bottom:20px}.can-toggle *,.can-toggle :after,.can-toggle :before{box-sizing:border-box}.can-toggle input[type=checkbox]{opacity:0;position:absolute;top:0;left:0}.can-toggle input[type=checkbox]:checked~label .can-toggle__switch:before{content:attr(data-unchecked);left:0}.can-toggle label{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:flex;align-items:center;font-size:14px}.can-toggle label .can-toggle__switch{position:relative;transition:background-color .3s cubic-bezier(0, 1, .5, 1);background:#848484;height:36px;flex:0 0 134px;border-radius:4px}.can-toggle label .can-toggle__switch:before{content:attr(data-checked);position:absolute;top:0;text-transform:uppercase;text-align:center;color:rgba(255,255,255,.5);left:67px;font-size:12px;line-height:36px;width:67px;padding:0 12px}.can-toggle label .can-toggle__switch:after{content:attr(data-unchecked);position:absolute;z-index:5;text-transform:uppercase;text-align:center;background:#fff;transform:translate3d(0,0,0);transition:transform .3s cubic-bezier(0, 1, .5, 1);color:#777;top:2px;left:2px;border-radius:2px;width:65px;line-height:32px;font-size:12px}.can-toggle input[type=checkbox]:focus~label .can-toggle__switch,.can-toggle input[type=checkbox]:hover~label .can-toggle__switch{background-color:#777}.can-toggle input[type=checkbox]:focus~label .can-toggle__switch:after,.can-toggle input[type=checkbox]:hover~label .can-toggle__switch:after{color:#5e5e5e;box-shadow:0 3px 3px rgba(0,0,0,.4)}.can-toggle input[type=checkbox]:hover~label{color:#6a6a6a}.can-toggle input[type=checkbox]:checked~label:hover{color:#55bc49}.can-toggle input[type=checkbox]:checked~label .can-toggle__switch{background-color:#70c767}.can-toggle input[type=checkbox]:checked~label .can-toggle__switch:after{content:attr(data-checked);color:#4fb743;transform:translate3d(65px,0,0)}.can-toggle input[type=checkbox]:checked:focus~label .can-toggle__switch,.can-toggle input[type=checkbox]:checked:hover~label .can-toggle__switch{background-color:#5fc054}.can-toggle input[type=checkbox]:checked:focus~label .can-toggle__switch:after,.can-toggle input[type=checkbox]:checked:hover~label .can-toggle__switch:after{color:#47a43d;box-shadow:0 3px 3px rgba(0,0,0,.4)}.can-toggle label .can-toggle__switch:hover:after{box-shadow:0 3px 3px rgba(0,0,0,.4)}@media all and (max-width:40em){#tabs{flex-wrap:wrap}#tabs .mr-1{margin-bottom:15px}}#cimg{max-width:100%;max-height:25em;object-fit:scale-down;object-position:center center}h2.social-rodape{font-weight:700;margin-top:20px}' . "\r\n" . '</style>' . "\r\n" . '<main class="h-full pb-16 overflow-y-auto">' . "\r\n\t" . '<div class="container px-6 mx-auto grid">' . "\r\n\t\t" . '<h2' . "\t" . 'class="my-6 text-2xl font-semibold text-gray-700 dark:text-gray-200">Configuração</h2>' . "\r\n\r\n\t" . '<div class="px-4 py-3 mb-8 bg-white rounded-lg shadow-md dark:bg-gray-800">' . "\r\n\t\t" . '<div class="flex">' . "\r\n\t\t\t" . '<ul class="flex" id="tabs">' . "\r\n\t\t\t\t" . '<li class="mr-1">' . "\r\n\t\t\t\t\t" . '<a href="#tab1" class="dark:text-gray-300 dark:border-gray-600 dark:bg-gray-800 inline-block py-2 px-4 font-semibold border rounded-t text-gray-700 active-tab">Configurações</a>' . "\r\n\t\t\t\t" . '</li>' . "\r\n\t\t\t\t" . '<li class="mr-1">' . "\r\n\t\t\t\t\t" . '<a href="#tab2" class="dark:text-gray-300 dark:border-gray-600 dark:bg-gray-800 inline-block py-2 px-4 font-semibold border rounded-t text-gray-700">Cadastro</a>' . "\r\n\t\t\t\t" . '</li>' . "\r\n\r\n\t\t\t\t" . '<li class="mr-1">' . "\r\n\t\t\t\t\t" . '<a href="#tab3" class="dark:text-gray-300 dark:border-gray-600 dark:bg-gray-800 inline-block py-2 px-4 font-semibold border rounded-t text-gray-700">Social</a>' . "\r\n\t\t\t\t" . '</li>' . "\r\n\t\t\t\t" . '<li class="mr-1">' . "\r\n\t\t\t\t\t" . '<a href="#tab4" class="dark:text-gray-300 dark:border-gray-600 dark:bg-gray-800 inline-block py-2 px-4 font-semibold border rounded-t text-gray-700">Rodapé</a>' . "\r\n\t\t\t\t" . '</li>' . "\r\n\t\t\t\t" . '<li class="mr-1">' . "\r\n\t\t\t\t\t" . '<a href="#tab6" class="dark:text-gray-300 dark:border-gray-600 dark:bg-gray-800 inline-block py-2 px-4 font-semibold border rounded-t text-gray-700">Ocultar Cotas</a>' . "\r\n\t\t\t\t" . '</li>' . "\r\n\t\t\t\t" . '<li class="mr-1">' . "\r\n\t\t\t\t\t" . '<a href="#tab7" class="dark:text-gray-300 dark:border-gray-600 dark:bg-gray-800 inline-block py-2 px-4 font-semibold border rounded-t text-gray-700">WhatsApp</a>' . "\r\n\t\t\t\t" . '</li>' . "\r\n\t\t\t\t" . '<li class="mr-1">' . "\r\n\t\t\t\t\t" . '<a href="#tab8" class="dark:text-gray-300 dark:border-gray-600 dark:bg-gray-800 inline-block py-2 px-4 font-semibold border rounded-t text-gray-700">Email</a>' . "\r\n\t\t\t\t" . '</li>' . "\r\n\t\t\t\t" . '<li class="mr-1">' . "\r\n\t\t\t\t\t" . '<a href="#tab9" class="dark:text-gray-300 dark:border-gray-600 dark:bg-gray-800 inline-block py-2 px-4 font-semibold border rounded-t text-gray-700">FAQ</a>' . "\r\n\t\t\t\t" . '</li>' . "\r\n\t\t\t\t" . '<li class="mr-1">' . "\r\n\t\t\t\t\t" . '<a href="#tab10" class="dark:text-gray-300 dark:border-gray-600 dark:bg-gray-800 inline-block py-2 px-4 font-semibold border rounded-t text-gray-700">Termos</a>' . "\r\n\t\t\t\t" . '</li>' . "\r\n\t\t\t\t" . '<li class="mr-1">' . "\r\n\t\t\t\t\t" . '<a href="#tab5" class="dark:text-gray-300 dark:border-gray-600 dark:bg-gray-800 inline-block py-2 px-4 font-semibold border rounded-t text-gray-700">Facebook</a>' . "\r\n\t\t\t\t" . '</li>' . "\r\n\t\t\t\t" . '<li class="mr-1">' . "\r\n\t\t\t\t\t" . '<a href="#tab11" class="dark:text-gray-300 dark:border-gray-600 dark:bg-gray-800 inline-block py-2 px-4 font-semibold border rounded-t text-gray-700">Google</a>' . "\r\n\t\t\t\t" . '</li>' . "\r\n\r\n\t\t\t" . '</ul>' . "\r\n\t\t" . '</div>' . "\r\n\r\n\r\n\r\n\t\t" . '<form action="" id="manage-system">' . "\r\n\r\n\t\t\t" . '<div class="mt-4">' . "\t\r\n\r\n\r\n\t\t\t\t" . '<div id="tab1" class="tabcontent text-gray-700 dark:text-gray-400">' . "\r\n\r\n\t\t\t\t\t" . '<label class="block text-sm">' . "\r\n\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Titulo do site</span>' . "\r\n\t\t\t\t\t\t" . '<input name="name" id="name" class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t" . 'placeholder="Titulo" value="';
echo $_settings->info('name');
echo '"/>' . "\r\n\t\t\t\t\t" . '</label>' . "\r\n\r\n\r\n\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">E-mail</span>' . "\r\n\t\t\t\t\t\t" . '<input name="email" id="email" class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t" . 'placeholder="admin@admin.com" value="';
echo $_settings->info('email');
echo '"/>' . "\r\n\t\t\t\t\t" . '</label>' . "\r\n\r\n\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Telefone</span>' . "\r\n\t\t\t\t\t\t" . '<input name="phone" id="phone" class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t" . 'placeholder="(00) 00000-0000" value="';
echo $_settings->info('phone');
echo '"/>' . "\r\n\t\t\t\t\t" . '</label>' . "\r\n\r\n\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">' . "\r\n\t\t\t\t\t\t\t" . 'Tema' . "\r\n\t\t\t\t\t\t" . '</span>' . "\r\n\t\t\t\t\t\t" . '<select name="theme" id="theme" class="block w-full mt-1 text-sm dark:text-gray-300 dark:border-gray-600 dark:bg-gray-700 form-select focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:focus:shadow-outline-gray">' . "\r\n\t\t\t\t\t\t\t" . '<option value="1" ';

if ($theme == '1') {
	echo 'selected';
}

echo '>Padrão</option>' . "\r\n\t\t\t\t\t\t\t" . '<option value="2" ';


if ($theme == '2') {
	echo 'selected';
}

echo '>Preto e Vermelho</option>' . "\r\n\t\t\t\t\t\t" . '</select>' . "\r\n\t\t\t\t\t" . '</label>' . "\r\n\r\n\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Logo:</span>' . "\r\n\t\t\t\t\t\t" . '<input id="customFile1" name="img" onchange="displayImg(this,$(this))" type="file" class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"  accept="image/png, image/jpeg">' . "\r\n\t\t\t\t\t" . '</label>' . "\r\n\r\n\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t" . '<img src="';
echo validate_image($_settings->info('logo'));
echo '" alt="" id="cimg" class="img-fluid img-thumbnail">' . "\r\n\r\n\r\n\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Favicon:</span>' . "\r\n\t\t\t\t\t\t\t" . '<input id="customFile2" name="favicon" onchange="displayFavicon(this,$(this))" type="file" class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"  accept="image/png, image/jpeg">' . "\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<img src="';
echo validate_image($_settings->info('favicon'));
echo '" alt="" id="favicon" class="img-fluid img-thumbnail">' . "\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t" . '</label>' . "\r\n\r\n\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Bloquear múltiplos pedidos?</span>' . "\t\r\n\t\t\t\t\t\t\t" . '<p class="mb-2" style="font-size:13px;color: orange;font-style:italic;">Ao habilitar esta opção, o cliente só poderá realizar um novo pedido após efetuar o pagamento do pedido anterior ou o mesmo expirar.</p>' . "\t\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '<div class="can-toggle">' . "\r\n\t\t\t\t\t\t\t" . '<input type="checkbox" name="enable_multiple_order" id="enable_multiple_order" ';
echo (isset($enable_multiple_order) && $enable_multiple_order == 1 ? 'checked' : '');
echo '>' . "\r\n\t\t\t\t\t\t\t" . '<label for="enable_multiple_order">' . "\r\n\t\t\t\t\t\t\t\t" . '<div class="can-toggle__switch" data-checked="Sim" data-unchecked="Não"></div>' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\t\t\t\t\t\r\n\r\n\r\n\r\n\t\t\t\t\t" . '</div>' . "\r\n\r\n\t\t\t\t\t" . '<div id="tab2" class="tabcontent text-gray-700 dark:text-gray-400 hidden">' . "\r\n\t\t\t\t\t\t" . '<p>Os dados habilitados abaixo serão obrigatórios no formulário de cadastro do site.</p>' . "\r\n\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Habilitar dupla verificação de telefone?</span>' . "\r\n\t\t\t\t\t\t\t" . '<p style="font-size:13px;color: orange;font-style:italic;">Quando essa opção estiver ativa, o usuário deverá informar o telefone duas vezes na criação de conta</p>' . "\t\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '<div class="can-toggle">' . "\r\n\t\t\t\t\t\t\t" . '<input type="checkbox" name="enable_two_phone" id="enable_two_phone" ';
echo (isset($enable_two_phone) && $enable_two_phone == 1 ? 'checked' : '');
echo '>' . "\r\n\t\t\t\t\t\t\t" . '<label for="enable_two_phone">' . "\r\n\t\t\t\t\t\t\t\t" . '<div class="can-toggle__switch" data-checked="Sim" data-unchecked="Não"></div>' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Habilitar senha?</span>' . "\r\n\t\t\t\t\t\t\t" . '<p style="font-size:13px;color: orange;font-style:italic;">Quando essa opção estiver desabilitada, não será necessário inserir uma senha durante o processo de cadastro e também para fazer o login no sistema.</p>' . "\t\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '<div class="can-toggle">' . "\r\n\t\t\t\t\t\t\t" . '<input type="checkbox" name="enable_password" id="enable_password" ';
echo (isset($enable_password) && $enable_password == 1 ? 'checked' : '');
echo '>' . "\r\n\t\t\t\t\t\t\t" . '<label for="enable_password">' . "\r\n\t\t\t\t\t\t\t\t" . '<div class="can-toggle__switch" data-checked="Sim" data-unchecked="Não"></div>' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '</div>' . "\t\t\t\t\t\t\r\n\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Habilitar CPF?</span>' . "\t\r\n\t\t\t\t\t\t\t" . '<p style="font-size:13px;color: orange;font-style:italic;">Ao habilitar esta opção, o sistema irá exigir que o usuário forneça seu CPF para efetuar um cadastro/compra e também para buscar seus números.</p>' . "\t\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '<div class="can-toggle">' . "\r\n\t\t\t\t\t\t\t" . '<input type="checkbox" name="enable_cpf" id="enable_cpf" ';
echo (isset($enable_cpf) && $enable_cpf == 1 ? 'checked' : '');
echo '>' . "\r\n\t\t\t\t\t\t\t" . '<label for="enable_cpf">' . "\r\n\t\t\t\t\t\t\t\t" . '<div class="can-toggle__switch" data-checked="Sim" data-unchecked="Não"></div>' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Habilitar E-mail?</span>' . "\t\r\n\t\t\t\t\t\t\t" . '<p style="font-size:13px;color: orange;font-style:italic;">Ao habilitar esta opção, o sistema irá exigir que o usuário forneça um email válido para efetuar um cadastro/compra.</p>' . "\t\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '<div class="can-toggle">' . "\r\n\t\t\t\t\t\t\t" . '<input type="checkbox" name="enable_email" id="enable_email" ';
echo (isset($enable_email) && $enable_email == 1 ? 'checked' : '');
echo '>' . "\r\n\t\t\t\t\t\t\t" . '<label for="enable_email">' . "\r\n\t\t\t\t\t\t\t\t" . '<div class="can-toggle__switch" data-checked="Sim" data-unchecked="Não"></div>' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Habilitar data de nascimento?</span>' . "\t\r\n\t\t\t\t\t\t\t" . '<p style="font-size:13px;color: orange;font-style:italic;">Ao habilitar esta opção, o sistema irá exigir que o usuário forneça sua data de nascimento para efetuar um cadastro/compra.</p>' . "\t\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '<div class="can-toggle">' . "\r\n\t\t\t\t\t\t\t" . '<input type="checkbox" name="enable_birth" id="enable_birth" ';
echo (isset($enable_birth) && $enable_birth == 1 ? 'checked' : '');
echo '>' . "\r\n\t\t\t\t\t\t\t" . '<label for="enable_birth">' . "\r\n\t\t\t\t\t\t\t\t" . '<div class="can-toggle__switch" data-checked="Sim" data-unchecked="Não"></div>' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Habilitar usuários apenas maiores de 18 anos?</span>' . "\t\r\n\t\t\t\t\t\t\t" . '<p style="font-size:13px;color: orange;font-style:italic;">Ao habilitar esta opção, o sistema irá aceitar apenas cadastros de clientes maiores de 18 anos.</p>' . "\t\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '<div class="can-toggle">' . "\r\n\t\t\t\t\t\t\t" . '<input type="checkbox" name="enable_legal_age" id="enable_legal_age" ';
echo (isset($enable_legal_age) && $enable_legal_age == 1 ? 'checked' : '');
echo '>' . "\r\n\t\t\t\t\t\t\t" . '<label for="enable_legal_age">' . "\r\n\t\t\t\t\t\t\t\t" . '<div class="can-toggle__switch" data-checked="Sim" data-unchecked="Não"></div>' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Habilitar instagram?</span>' . "\t\r\n\t\t\t\t\t\t\t" . '<p style="font-size:13px;color: orange;font-style:italic;">Ao habilitar esta opção, o sistema irá exigir que o usuário forneça seu instagram para efetuar um cadastro/compra.</p>' . "\t\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '<div class="can-toggle">' . "\r\n\t\t\t\t\t\t\t" . '<input type="checkbox" name="enable_instagram" id="enable_instagram" ';
echo (isset($enable_instagram) && $enable_instagram == 1 ? 'checked' : '');
echo '>' . "\r\n\t\t\t\t\t\t\t" . '<label for="enable_instagram">' . "\r\n\t\t\t\t\t\t\t\t" . '<div class="can-toggle__switch" data-checked="Sim" data-unchecked="Não"></div>' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Habilitar Endereço?</span>' . "\r\n\t\t\t\t\t\t\t" . '<p style="font-size:13px;color: orange;font-style:italic;">Ao habilitar esta opção, o sistema irá exibir opções de endereço na página de atualização de cadastro do usuário</p>' . "\t\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '<div class="can-toggle">' . "\r\n\t\t\t\t\t\t\t" . '<input type="checkbox" name="enable_address" id="enable_address" ';
echo (isset($enable_address) && $enable_address == 1 ? 'checked' : '');
echo '>' . "\r\n\t\t\t\t\t\t\t" . '<label for="enable_address">' . "\r\n\t\t\t\t\t\t\t\t" . '<div class="can-toggle__switch" data-checked="Sim" data-unchecked="Não"></div>' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\r\n\t\t\t\t\t" . '</div>' . "\r\n\r\n\t\t\t\t\t" . '<div id="tab3" class="tabcontent text-gray-700 dark:text-gray-400 hidden">' . "\r\n\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Habilitar botões de compartilhamento?</span>' . "\t\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '<div class="can-toggle">' . "\r\n\t\t\t\t\t\t\t" . '<input type="checkbox" name="enable_share" id="enable_share" ';
echo (isset($enable_share) && $enable_share == 1 ? 'checked' : '');
echo '>' . "\r\n\t\t\t\t\t\t\t" . '<label for="enable_share">' . "\r\n\t\t\t\t\t\t\t\t" . '<div class="can-toggle__switch" data-checked="Sim" data-unchecked="Não"></div>' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Habilitar botão para acessar os grupos?</span>' . "\t\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '<div class="can-toggle">' . "\r\n\t\t\t\t\t\t\t" . '<input type="checkbox" name="enable_groups" id="enable_groups" ';
echo (isset($enable_groups) && $enable_groups == 1 ? 'checked' : '');
echo '>' . "\r\n\t\t\t\t\t\t\t" . '<label for="enable_groups">' . "\r\n\t\t\t\t\t\t\t\t" . '<div class="can-toggle__switch" data-checked="Sim" data-unchecked="Não"></div>' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\r\n\t\t\t\t\t\t" . '<div class="groups_social">' . "\r\n\t\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Link do grupo Telegram:</span>' . "\r\n\t\t\t\t\t\t\t\t" . '<input name="telegram_group_url" id="telegram_group_url"' . "\r\n\t\t\t\t\t\t\t\t" . 'class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t\t" . 'placeholder="https://telegram.org" value="';
echo (isset($telegram_group_url) ? $telegram_group_url : '');
echo '" />' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\t\r\n\r\n\t\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Link do grupo WhatsApp:</span>' . "\r\n\t\t\t\t\t\t\t\t" . '<input name="whatsapp_group_url" id="whatsapp_group_url"' . "\r\n\t\t\t\t\t\t\t\t" . 'class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t\t" . 'placeholder="https://whatsapp.com/" value="';
echo (isset($whatsapp_group_url) ? $whatsapp_group_url : '');
echo '" />' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\t\r\n\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\r\n\r\n\t\t\t\t\t" . '</div>' . "\r\n\t\t\t\t\t" . '<div id="tab4" class="tabcontent text-gray-700 dark:text-gray-400

hidden">' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Habilitar rodapé?</span>' . "\t\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '<div class="can-toggle">' . "\r\n\t\t\t\t\t\t\t" . '<input type="checkbox" name="enable_footer" id="enable_footer" ';
echo (isset($enable_footer) && $enable_footer == 1 ? 'checked' : '');
echo '>' . "\r\n\t\t\t\t\t\t\t" . '<label for="enable_footer">' . "\r\n\t\t\t\t\t\t\t\t" . '<div class="can-toggle__switch" data-checked="Sim" data-unchecked="Não"></div>' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\r\n\t\t\t\t\t\t" . '<div class="footer-text">' . "\r\n\t\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Texto do rodapé:</span>' . "\r\n\t\t\t\t\t\t\t\t" . '<input name="text_footer" id="text_footer"' . "\r\n\t\t\t\t\t\t\t\t" . 'class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t\t" . 'placeholder="ex: Todos os direitos reservados." value="';
echo htmlspecialchars(isset($text_footer) ? $text_footer : '', ENT_QUOTES, 'UTF-8');
echo '" />' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\r\n\r\n\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\r\n\t\t\t\t\t\t" . '<h2 class="social-rodape">Redes Sociais - Rodapé</h2>' . "\r\n\t\t\t\t\t\t" . '<p>Preencha os campos abaixo para exibir as redes sociais no rodapé ou deixe em branco para não exibir.</p>' . "\r\n\t\t\t\t\t\t\t" . '<div class="groups">' . "\r\n\r\n\t\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">WhatsApp:</span>' . "\r\n\t\t\t\t\t\t\t\t" . '<input name="whatsapp_footer" id="whatsapp_footer"' . "\r\n\t\t\t\t\t\t\t\t" . 'class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t\t" . 'placeholder="https://api.whatsapp.com/send?l=pt_br&phone=00000" value="';
echo htmlspecialchars(isset($whatsapp_footer) ? $whatsapp_footer : '', ENT_QUOTES, 'UTF-8');
echo '" />' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\t\r\n\r\n\t\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Instagram:</span>' . "\r\n\t\t\t\t\t\t\t\t" . '<input name="instagram_footer" id="instagram_footer"' . "\r\n\t\t\t\t\t\t\t\t" . 'class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t\t" . 'placeholder="https://instagram.com/" value="';
echo (isset($instagram_footer) ? $instagram_footer : '');
echo '" />' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\t\r\n\r\n\t\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Facebook:</span>' . "\r\n\t\t\t\t\t\t\t\t" . '<input name="facebook_footer" id="facebook_footer"' . "\r\n\t\t\t\t\t\t\t\t" . 'class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t\t" . 'placeholder="https://facebook.com/" value="';
echo (isset($facebook_footer) ? $facebook_footer : '');
echo '" />' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\t\r\n\r\n\t\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Twitter:</span>' . "\r\n\t\t\t\t\t\t\t\t" . '<input name="twitter_footer" id="twitter_footer"' . "\r\n\t\t\t\t\t\t\t\t" . 'class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t\t" . 'placeholder="https://twitter.com/" value="';
echo (isset($twitter_footer) ? $twitter_footer : '');
echo '" />' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\t\r\n\r\n\t\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Youtube:</span>' . "\r\n\t\t\t\t\t\t\t\t" . '<input name="youtube_footer" id="youtube_footer"' . "\r\n\t\t\t\t\t\t\t\t" . 'class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t\t" . 'placeholder="https://youtube.com/" value="';
echo (isset($youtube_footer) ? $youtube_footer : '');
echo '" />' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\t\r\n\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\r\n\r\n\r\n\t\t\t\t\t" . '</div>' . "\t\t\t\r\n\r\n\t\t\t\t\t" . '<div id="tab5" class="tabcontent text-gray-700 dark:text-gray-400 hidden">' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Habilitar API de conversão?</span>' . "\t\r\n\t\t\t\t\t\t\t" . '<p>Área destinada ao gestor de tráfego para implantação da API de conversão do Facebook ADS.</p>' . "\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '<div class="can-toggle">' . "\r\n\t\t\t\t\t\t\t" . '<input type="checkbox" name="enable_pixel" id="enable_pixel" ';
echo (isset($enable_pixel) && $enable_pixel == 1 ? 'checked' : '');
echo '>' . "\r\n\t\t\t\t\t\t\t" . '<label for="enable_pixel">' . "\r\n\t\t\t\t\t\t\t\t" . '<div class="can-toggle__switch" data-checked="Sim" data-unchecked="Não"></div>' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\t\t\t\t\t\t" . '<div class="pixel-facebook">' . "\r\n\t\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Access Token (Facebook) *:</span>' . "\r\n\t\t\t\t\t\t\t\t" . '<input name="facebook_access_token" id="facebook_access_token"' . "\r\n\t\t\t\t\t\t\t\t" . 'class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t\t" . 'placeholder="Informe o ACCESS TOKEN do facebook" value="';
echo (isset($facebook_access_token) ? $facebook_access_token : '');
echo '" />' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Pixel ID (Facebook) *:</span>' . "\r\n\t\t\t\t\t\t\t\t" . '<input name="facebook_pixel_id" id="facebook_pixel_id"' . "\r\n\t\t\t\t\t\t\t\t" . 'class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t\t" . 'placeholder="Informe o PIXEL ID do facebook" value="';
echo (isset($facebook_pixel_id) ? $facebook_pixel_id : '');
echo '" />' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\r\n\t\t\t\t\t" . '</div>' . "\r\n\r\n\t\t\t\t\t" . '<div id="tab11" class="tabcontent text-gray-700 dark:text-gray-400 hidden">' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Habilitar Google Analytics?</span>' . "\t\r\n\t\t\t\t\t\t\t" . '<p>Área destinada ao gestor de tráfego para implantação do Google Analytics (GA4)</p>' . "\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\r\n\t\t\t\t\t\t" . '<div class="can-toggle">' . "\r\n\t\t\t\t\t\t\t" . '<input type="checkbox" name="enable_ga4" id="enable_ga4" ';
echo (isset($enable_ga4) && $enable_ga4 == 1 ? 'checked' : '');
echo '>' . "\r\n\t\t\t\t\t\t\t" . '<label for="enable_ga4">' . "\r\n\t\t\t\t\t\t\t\t" . '<div class="can-toggle__switch" data-checked="Sim" data-unchecked="Não"></div>' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\r\n\t\t\t\t\t\t" . '<div class="pixel-google">' . "\r\n\t\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">ID (GA4)*:</span>' . "\r\n\t\t\t\t\t\t\t\t" . '<input name="google_ga4_id" id="google_ga4_id"' . "\r\n\t\t\t\t\t\t\t\t" . 'class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t\t" . 'placeholder="Informe o ID do analytics" value="';
echo (isset($google_ga4_id) ? $google_ga4_id : '');
echo '" />' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\t\t\t\t\t\t" . '<br><hr>' . "\r\n\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Habilitar Google Tag Manager?</span>' . "\t\r\n\t\t\t\t\t\t\t" . '<p>Área destinada ao gestor de tráfego para implantação do Google Tag Manager (GTM)</p>' . "\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\r\n\t\t\t\t\t\t" . '<div class="can-toggle">' . "\r\n\t\t\t\t\t\t\t" . '<input type="checkbox" name="enable_gtm" id="enable_gtm" ';
echo (isset($enable_gtm) && $enable_gtm == 1 ? 'checked' : '');
echo '>' . "\r\n\t\t\t\t\t\t\t" . '<label for="enable_gtm">' . "\r\n\t\t\t\t\t\t\t\t" . '<div class="can-toggle__switch" data-checked="Sim" data-unchecked="Não"></div>' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\r\n\t\t\t\t\t\t" . '<div class="pixel-google-gtm">' . "\r\n\t\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">ID (GTM)*:</span>' . "\r\n\t\t\t\t\t\t\t\t" . '<input name="google_gtm_id" id="google_gtm_id"' . "\r\n\t\t\t\t\t\t\t\t" . 'class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t\t" . 'placeholder="Informe o ID do GTM" value="';
echo (isset($google_gtm_id) ? $google_gtm_id : '');
echo '" />' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\t\t\t\t\t" . '</div>' . "\r\n\r\n\t\t\t\t\t" . '<div id="tab6" class="tabcontent text-gray-700 dark:text-gray-400 hidden">' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Ocultar cotas</span>' . "\t\r\n\t\t\t\t\t\t\t" . '<p>Ao habilitar essa opção as cotas das <strong>campanhas automáticas</strong> só serão geradas e exibidas quando o pagamento for aprovado.</p>' . "\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '<div class="can-toggle">' . "\r\n\t\t\t\t\t\t\t" . '<input type="checkbox" name="enable_hide_numbers" id="enable_hide_numbers" ';
echo (isset($enable_hide_numbers) && $enable_hide_numbers == 1 ? 'checked' : '');
echo '>' . "\r\n\t\t\t\t\t\t\t" . '<label for="enable_hide_numbers">' . "\r\n\t\t\t\t\t\t\t\t" . '<div class="can-toggle__switch" data-checked="Sim" data-unchecked="Não"></div>' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\r\n\t\t\t\t\t" . '</div>' . "\r\n\r\n\t\t\t\t\t" . '<div id="tab7" class="tabcontent text-gray-700 dark:text-gray-400 hidden">' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Ativar integração</span>' . "\t\r\n\t\t\t\t\t\t\t" . '<p>Ao habilitar essa opção o sistema irá enviar automaticamente uma mensagem para o WhatsApp do cliente ao efetuar um novo pedido.</p>' . "\r\n\t\t\t\t\t\t\t" . '<p style="font-size:13px;color: orange;font-style:italic;">Essa integração é feita através da <a href="https://whatsjet.cloud/" target="_blank">Whats-Jet-API</a>. É necessário um plano ativo na mesma para poder utilizar. Você pode testar por 3 dias grátis.</p>' . "\r\n\t\t\t\t\t\t\t" . '<br>' . "\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '<div class="can-toggle">' . "\r\n\t\t\t\t\t\t\t" . '<input type="checkbox" name="enable_dwapi" id="enable_dwapi" ';
echo (isset($enable_dwapi) && $enable_dwapi == 1 ? 'checked' : '');
echo '>' . "\r\n\t\t\t\t\t\t\t" . '<label for="enable_dwapi">' . "\r\n\t\t\t\t\t\t\t\t" . '<div class="can-toggle__switch" data-checked="Sim" data-unchecked="Não"></div>' . "\r\n\t\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '</div>' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<p><b>[CAMPANHA]</b> - Irá exibir o nome da campanha</p>' . "\r\n\t\t\t\t\t\t\t" . '<p><b>[CLIENTE]</b> - Irá exibir o nome do cliente</p>' . "\r\n\t\t\t\t\t\t\t" . '<p><b>[COTAS]</b> - Irá exibir as cotas do pedido</p>' . "\r\n\t\t\t\t\t\t\t" . '<p><b>[TOTAL]</b> - Irá exibir o valor total do pedido</p>' . "\r\n\t\t\t\t\t\t\t" . '<p><b>[PIX]</b> - Irá exibir o código copia e cola do PIX</p>' . "\r\n\t\t\t\t\t\t\t" . '<p><b>[N]</b> - Irá inserir uma quebra de linha</p>
<p><b>[LINK]</b> - Irá exibir o link da compra do cliente</p>' . "\r\n\t\t\t\t\t\t\t" . '<br>' . "\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Token</span>' . "\r\n\t\t\t\t\t\t\t" . '<input name="token_dwapi" id="token_dwapi" class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t" . 'placeholder="" value="';
echo $_settings->info('token_dwapi');
echo '"/>' . "\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Número que irá fazer os envios</span>' . "\r\n\t\t\t\t\t\t\t" . '<input name="numero_dwapi" id="numero_dwapi" class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t" . 'placeholder="" value="';
echo $_settings->info('numero_dwapi');
echo '"/>' . "\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Mensagem que será enviada para o cliente quando um pedido for feito</span>' . "\r\n\t\t\t\t\t\t\t" . '<input name="mensagem_novo_pedido_dwapi" id="mensagem_novo_pedido_dwapi" class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t" . 'placeholder="" value="';
echo $_settings->info('mensagem_novo_pedido_dwapi');
echo '"/>' . "\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Mensagem que será enviada para o cliente quando um pedido for pago</span>' . "\r\n\t\t\t\t\t\t\t" . '<input name="mensagem_pedido_pago_dwapi" id="mensagem_pedido_pago_dwapi" class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t" . 'placeholder="" value="';
echo $_settings->info('mensagem_pedido_pago_dwapi');
echo '"/>' . "\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\r\n\t\t\t\t\t" . '</div>' . "\r\n\r\n\t\t\t\t\t" . '<div id="tab8" class="tabcontent text-gray-700 dark:text-gray-400 hidden">' . "\r\n\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Servidor de email customizado</span>' . "\t\r\n\t\t\t\t\t\t\t" . '<p>Se deseja utilizar um servidor de email personalizado, preencha os dados do mesmo abaixo, caso contrário, deixe os campos em branco.</p>' . "\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\t\t\t\t\t\t" . '<label class="block text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Servidor SMTP</span>' . "\r\n\t\t\t\t\t\t\t" . '<input name="smtp_host" id="smtp_host" class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t" . 'placeholder="smtp.yourhost.com" value="';
echo $_settings->info('smtp_host');
echo '"/>' . "\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Porta</span>' . "\r\n\t\t\t\t\t\t\t" . '<input name="smtp_port" id="smtp_port" class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t" . 'placeholder="465" value="';
echo $_settings->info('smtp_port');
echo '"/>' . "\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Usuário</span>' . "\r\n\t\t\t\t\t\t\t" . '<input name="smtp_user" id="smtp_user" class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t" . 'placeholder="Usuário" value="';
echo $_settings->info('smtp_user');
echo '"/>' . "\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Senha</span>' . "\r\n\t\t\t\t\t\t\t" . '<input name="smtp_pass" id="smtp_pass" type="password" class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t" . 'placeholder="*****" value="';
echo $_settings->info('smtp_pass');
echo '"/>' . "\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\r\n\t\t\t\t\t\t" . '<hr class="mt-4 mb-4">' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<p class="mb-2">Shortcodes disponíveis</p>' . "\r\n\t\t\t\t\t\t\t" . '<p><b>[CAMPANHA]</b> - Irá exibir o nome da campanha</p>' . "\r\n\t\t\t\t\t\t\t" . '<p><b>[CLIENTE]</b> - Irá exibir o nome do cliente</p>' . "\r\n\t\t\t\t\t\t\t" . '<p><b>[COTAS]</b> - Irá exibir as cotas do pedido</p>' . "\r\n\t\t\t\t\t\t\t" . '<p><b>[TOTAL]</b> - Irá exibir o valor total do pedido</p>' . "\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Corpo do email que será enviado para o cliente ao efetuar uma compra</span>' . "\r\n\t\t\t\t\t\t\t" . '<p style="font-size:13px;color: orange;font-style:italic;">Você pode utilizar tags html na descrição para uma melhor formatação</p>' . "\r\n\t\t\t\t\t\t\t" . '<textarea name="email_order" id="email_order" class="block w-full mt-1 text-sm dark:text-gray-300 dark:border-gray-600 dark:bg-gray-700 form-textarea focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:focus:shadow-outline-gray" rows="6">';
echo $_settings->info('email_order');
echo '</textarea>' . "\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block mt-4 text-sm">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Corpo do email que será enviado para o cliente ao efetuar um pagamento</span>' . "\r\n\t\t\t\t\t\t\t" . '<p style="font-size:13px;color: orange;font-style:italic;">Você pode utilizar tags html na descrição para uma melhor formatação</p>' . "\r\n\t\t\t\t\t\t\t" . '<textarea name="email_purchase" id="email_purchase" class="block w-full mt-1 text-sm dark:text-gray-300 dark:border-gray-600 dark:bg-gray-700 form-textarea focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:focus:shadow-outline-gray" rows="6">';
echo $_settings->info('email_purchase');
echo '</textarea>' . "\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\r\n\t\t\t\t\t" . '</div>' . "\r\n\t\t\t\t\t\r\n\t\t\t\t\t" . '<div id="tab9" class="tabcontent text-gray-700 dark:text-gray-400 hidden">' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block text-sm mb-2">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Pergunta 1</span>' . "\r\n\t\t\t\t\t\t\t" . '<input name="question1" id="question1" class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t" . 'placeholder="" value="';
echo $_settings->info('question1');
echo '"/>' . "\r\n\t\t\t\t\t\t\t" . '<input name="answer1" id="answer1" class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t" . 'placeholder="" value="';
echo $_settings->info('answer1');
echo '"/>' . "\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block text-sm mb-2">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Pergunta 2</span>' . "\r\n\t\t\t\t\t\t\t" . '<input name="question2" id="question2" class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t" . 'placeholder="" value="';
echo $_settings->info('question2');
echo '"/>' . "\r\n\t\t\t\t\t\t\t" . '<input name="answer2" id="answer2" class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t" . 'placeholder="" value="';
echo $_settings->info('answer2');
echo '"/>' . "\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block text-sm mb-2">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Pergunta 3</span>' . "\r\n\t\t\t\t\t\t\t" . '<input name="question3" id="question3" class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t" . 'placeholder="" value="';
echo $_settings->info('question3');
echo '"/>' . "\r\n\t\t\t\t\t\t\t" . '<input name="answer3" id="answer3" class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t" . 'placeholder="" value="';
echo $_settings->info('answer3');
echo '"/>' . "\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block text-sm mb-2">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Pergunta 4</span>' . "\r\n\t\t\t\t\t\t\t" . '<input name="question4" id="question4" class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t" . 'placeholder="" value="';
echo $_settings->info('question4');
echo '"/>' . "\r\n\t\t\t\t\t\t\t" . '<input name="answer4" id="answer4" class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t" . 'placeholder="" value="';
echo $_settings->info('answer4');
echo '"/>' . "\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\r\n\t\t\t\t\t" . '</div>' . "\r\n\r\n\t\t\t\t\t" . '<div id="tab10" class="tabcontent text-gray-700 dark:text-gray-400 hidden">' . "\r\n\r\n\t\t\t\t\t\t" . '<label class="block text-sm mb-2">' . "\r\n\t\t\t\t\t\t\t" . '<span class="text-gray-700 dark:text-gray-400">Termos de uso</span>' . "\r\n\t\t\t\t\t\t\t" . '<input name="terms" id="terms" class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"' . "\r\n\t\t\t\t\t\t\t" . 'placeholder="" value="';
echo $_settings->info('terms');
echo '"/>' . "\r\n\t\t\t\t\t\t" . '</label>' . "\r\n\r\n\t\t\t\t\t" . '</div>' . "\r\n\t\t\t\t\t\r\n\t\t\t\t" . '</div>' . "\r\n\r\n\r\n\r\n\r\n\t\t\t\t" . '<div style="margin-top:20px;"> ' . "\r\n\t\t\t\t\t" . '<button form="manage-system" class="px-5 py-3 font-medium leading-5 text-white transition-colors duration-150 bg-purple-600 border border-transparent rounded-lg active:bg-purple-600 hover:bg-purple-700 focus:outline-none focus:shadow-outline-purple">' . "\r\n\t\t\t\t\t\t" . 'Salvar' . "\r\n\t\t\t\t\t" . '</button>' . "\r\n\t\t\t\t" . '</div>' . "\r\n\r\n\t\t\t" . '</form>' . "\r\n\r\n\t\t" . '</div>' . "\r\n\r\n\r\n\t" . '</div>' . "\r\n" . '</main>' . "\r\n" . '<span id="openModal" href="javascript:void(0)" @click="openModal"></span>' . "\r\n" . '<div x-show="isModalOpen" x-transition:enter="transition ease-out duration-150" x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100" x-transition:leave="transition ease-in duration-150" x-transition:leave-start="opacity-100" x-transition:leave-end="opacity-0" class="fixed inset-0 z-30 flex items-end bg-black bg-opacity-50 sm:items-center sm:justify-center" style="display: none;">' . "\r\n\t" . '<!-- Modal -->' . "\r\n\t" . '<div x-show="isModalOpen" x-transition:enter="transition ease-out duration-150" x-transition:enter-start="opacity-0 transform translate-y-1/2" x-transition:enter-end="opacity-100" x-transition:leave="transition ease-in duration-150" x-transition:leave-start="opacity-100" x-transition:leave-end="opacity-0  transform translate-y-1/2" @click.away="closeModal" @keydown.escape="closeModal" class="w-full px-6 py-4 overflow-hidden bg-white rounded-t-lg dark:bg-gray-800 sm:rounded-lg sm:m-4 sm:max-w-xl" role="dialog" id="modal" style="display: none;">' . "\r\n\t\t" . '<!-- Remove header if you don\'t want a close icon. Use modal body to place modal tile. -->' . "\r\n\t\t" . '<header class="flex justify-end">' . "\r\n\t\t\t" . '<button class="inline-flex items-center justify-center w-6 h-6 text-gray-400 transition-colors duration-150 rounded dark:hover:text-gray-200 hover: hover:text-gray-700" aria-label="close" @click="closeModal">' . "\r\n\t\t\t\t" . '<svg class="w-4 h-4" fill="currentColor" viewBox="0 0 20 20" role="img" aria-hidden="true">' . "\r\n\t\t\t\t\t" . '<path d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd" fill-rule="evenodd"></path>' . "\r\n\t\t\t\t" . '</svg>' . "\r\n\t\t\t" . '</button>' . "\r\n\t\t" . '</header>' . "\r\n\t\t" . '<div class="mt-4 mb-6">' . "\r\n\t\t\t" . '<p class="mb-2 text-lg font-semibold text-gray-700 dark:text-gray-300">' . "\r\n\t\t\t\t" . 'Parabéns!' . "\r\n\t\t\t" . '</p>' . "\r\n\t\t\t" . '<p class="text-sm text-gray-700 dark:text-gray-400">' . "\r\n\t\t\t\t" . 'Alterações salvas com sucesso!' . "\r\n\t\t\t" . '</p>' . "\r\n\t\t" . '</div>' . "\r\n\r\n\t" . '</div>' . "\r\n" . '</div>' . "\r\n" . '<script>' . "\r\n\t" . 'if($(\'#enable_groups\').is(":checked")){' . "\r\n\t\t" . '$(\'.groups_social\').show();' . "\r\n\t" . '}else{' . "\r\n\t\t" . '$(\'.groups_social\').hide();' . "\t\r\n\t" . '}' . "\r\n\t" . '$(\'#enable_groups\').change(function() {' . "\r\n\t\t" . 'if($(\'#enable_groups\').is(":checked")){' . "\r\n\t\t\t" . '$(\'.groups_social\').show();' . "\r\n\t\t" . '}else{' . "\r\n\t\t\t" . '$(\'.groups_social\').hide();' . "\t\r\n\t\t" . '}' . "\r\n\t" . '}); ' . "\r\n\r\n\t" . 'if($(\'#enable_footer\').is(":checked")){' . "\r\n\t\t" . '$(\'.footer-text\').show();' . "\r\n\t" . '}else{' . "\r\n\t\t" . '$(\'.footer-text\').hide();' . "\t\r\n\t" . '}' . "\r\n\t" . '$(\'#enable_footer\').change(function() {' . "\r\n\t\t" . 'if($(\'#enable_footer\').is(":checked")){' . "\r\n\t\t\t" . '$(\'.footer-text\').show();' . "\r\n\t\t" . '}else{' . "\r\n\t\t\t" . '$(\'.footer-text\').hide();' . "\t\r\n\t\t" . '}' . "\r\n\t" . '}); ' . "\r\n\t" . '$(\'#enable_pixel\').change(function() {' . "\r\n\t\t" . 'if($(\'#enable_pixel\').is(":checked")){' . "\r\n\t\t\t" . '$(\'.pixel-facebook\').show();' . "\r\n\t\t" . '}else{' . "\r\n\t\t\t" . '$(\'.pixel-facebook\').hide();' . "\t\r\n\t\t" . '}' . "\r\n\t" . '}); ' . "\r\n\t" . '$(\'#enable_ga4\').change(function() {' . "\r\n\t\t" . 'if($(\'#enable_ga4\').is(":checked")){' . "\r\n\t\t\t" . '$(\'.pixel-google\').show();' . "\r\n\t\t" . '}else{' . "\r\n\t\t\t" . '$(\'.pixel-google\').hide();' . "\t\r\n\t\t" . '}' . "\r\n\t" . '});' . "\r\n\t" . '$(\'#enable_gtm\').change(function() {' . "\r\n\t\t" . 'if($(\'#enable_gtm\').is(":checked")){' . "\r\n\t\t\t" . '$(\'.pixel-google-gtm\').show();' . "\r\n\t\t" . '}else{' . "\r\n\t\t\t" . '$(\'.pixel-google-gtm\').hide();' . "\t\r\n\t\t" . '}' . "\r\n\t" . '}); ' . "\r\n\t" . 'function displayImg(input,_this) {' . "\r\n\t\t" . 'if (input.files && input.files[0]) {' . "\r\n\t\t\t" . 'var reader = new FileReader();' . "\r\n\t\t\t" . 'reader.onload = function (e) {' . "\r\n\t\t\t\t" . '$(\'#cimg\').attr(\'src\', e.target.result);' . "\r\n\t\t\t" . '}' . "\r\n\r\n\t\t\t" . 'reader.readAsDataURL(input.files[0]);' . "\r\n\t\t" . '}else{' . "\r\n\t\t\t" . '$(\'#cimg\').attr(\'src\', "';
echo validate_image($_settings->info('logo'));
echo '");' . "\r\n\t\t" . '}' . "\r\n\t" . '}' . "\r\n\t" . 'function displayFavicon(input,_this) {' . "\r\n\t\t" . 'if (input.files && input.files[0]) {' . "\r\n\t\t\t" . 'var reader = new FileReader();' . "\r\n\t\t\t" . 'reader.onload = function (e) {' . "\r\n\t\t\t\t" . '$(\'#favicon\').attr(\'src\', e.target.result);' . "\r\n\t\t\t" . '}' . "\r\n\r\n\t\t\t" . 'reader.readAsDataURL(input.files[0]);' . "\r\n\t\t" . '}else{' . "\r\n\t\t\t" . '$(\'#favicon\').attr(\'src\', "';
echo validate_image($_settings->info('favicon'));
echo '");' . "\r\n\t\t" . '}' . "\r\n\t" . '}' . "\r\n\r\n\t" . 'var pageToken = \'system_info\'; ' . "\r\n\t" . '$("#tabs a").click(function() {' . "\r\n\t\t" . 'var selectedTab = $(this).attr("href");' . "\r\n\t\t" . '$("#tabs a").removeClass("active-tab");' . "\r\n\t\t" . '$(this).addClass("active-tab");' . "\r\n\t\t" . '$(".tabcontent").hide();' . "\r\n\t\t" . '$(selectedTab).show();' . "\r\n\t\t" . 'localStorage.setItem(\'selectedTab_\' + pageToken, pageToken + \'_\' + selectedTab);' . "\r\n\t\t" . 'return false;' . "\r\n\t" . '});' . "\r\n\t" . '$(document).ready(function(){' . "\r\n\r\n\t\t" . 'var storedTab = localStorage.getItem(\'system_info\' + pageToken);' . "\r\n\t\t" . 'if (storedTab) {' . "\r\n\t\t\t" . 'var selectedTab = storedTab.substring(pageToken.length + 1);' . "\r\n\t\t\t" . '$("#tabs a").removeClass("active-tab");' . "\r\n\t\t\t" . '$(selectedTab).addClass("active-tab");' . "\r\n\t\t\t" . '$(".tabcontent").hide();' . "\r\n\t\t\t" . '$(selectedTab).show();' . "\r\n\t\t" . '}' . "\r\n\r\n\r\n\t\t" . '$(\'#manage-system\').submit(function(e){' . "\r\n\t\t\t" . 'e.preventDefault();' . "\r\n\t\t\t" . '$.ajax({' . "\r\n\t\t\t\t" . 'url:_base_url_+\'class/System.php?action=update_system\',' . "\r\n\t\t\t\t" . 'data: new FormData($(this)[0]),' . "\r\n\t\t\t\t" . 'cache: false,' . "\r\n\t\t\t\t" . 'contentType: false,' . "\r\n\t\t\t\t" . 'processData: false,' . "\r\n\t\t\t\t" . 'method: \'POST\',' . "\r\n\t\t\t\t" . 'type: \'POST\',' . "\r\n\t\t\t\t" . 'success:function(resp){' . "\r\n\t\t\t\t\t" . 'var returnedData = JSON.parse(resp);' . "\r\n\t\t\t\t\t" . 'if(returnedData.status == \'success\'){' . "\r\n\t\t\t\t\t\t" . 'alert(\'Configurações salvas com sucesso!\');' . "\r\n\t\t\t\t\t\t" . 'location.reload();' . "\r\n\t\t\t\t\t" . '}else{' . "\r\n\t\t\t\t\t\t" . 'alert(\'Ops\');' . "\r\n\t\t\t\t\t" . '}' . "\r\n\t\t\t\t" . '}' . "\r\n\t\t\t" . '})' . "\r\n\t\t" . '})' . "\r\n\r\n\t" . '});' . "\r\n\r\n" . '</script>';

?>