<?php

$idioma = "es";
if (isset($_COOKIE["idioma"])) {
    $idioma = isset($_COOKIE["idioma"]) ? $_COOKIE["idioma"] : "es";
}

?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="<?= LIB_JS ?>fonts/fonts.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/@mdi/font@5.x/css/materialdesignicons.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="<?= LIB_JS ?>vuetify/vuetify.min.css">
    <title>CRM</title>
    <style>
        [v-cloak] {
			display: none;
		}
    </style>
    <script src="<?=JS_ADMIN;?>gettext.js" type="text/javascript"></script>
	<script src="<?=JS_ADMIN;?>traduccion.js?version=<?= md5_file(RUTA_APP . "public/homeAdmin/js/traduccion.js"); ?>" type="text/javascript"></script>
	<script>seleccionarIdioma("<?=$idioma;?>")</script>
</head>

<body>
    <div id="app" v-cloak>
        <?php echo file_get_contents("vue.content.html", TRUE)?>
    </div>
    <script type="text/javascript" src="<?= VENDORS_ADMIN; ?>jquery-3.2.1.min.js"></script>
    <script src="<?= JS_ADMIN; ?>vue.js"></script>
    <script src="<?= LIB_JS ?>vuetify/vuetify.js"></script>
    <?php include UTILS_PATH . "requests.php" ?>
    <script>
        window.DIALVOX_LEAD_ID = "<?echo $lead; ?>";
        window.DIALVOX_PHONE = "<?echo $phone; ?>";
    </script>
    <script>
        <?php echo file_get_contents("vue.app.js", TRUE)?>
    </script>
</body>

</html>