<title>
    <?= $page_meta["title"] ?> - <?= SITE_NAME ?> Admin
</title>

<meta charset="utf-8" />
<meta name="robots" content="noindex,nofollow" />
<meta name="author" content="mtc." />
<meta name="viewport" content="width=device-width">

<!-- Favicon -->
<link rel="icon"
    type="image/x-icon"
    href="<?= THEME_URL; ?>/images/favicon.ico"/>

<!-- Apple touch icon -->
<link rel="apple-touch-icon"
    href="<?= THEME_URL; ?>/images/apple-touch-icon.png"/>

<link rel="stylesheet" href="/public<?= mix('/css/admin.css') ?>" media="screen, print" />
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,800&display=swap" rel="stylesheet">

<?php
if (ENVIRONMENT === 'production' && !empty($_SESSION['adminId'])
    && defined("MTC_ADMIN_GOOGLE_ANALYTICS_USERAGENT")
    && !empty(MTC_ADMIN_GOOGLE_ANALYTICS_USERAGENT)) {
    ?>
    <!-- GOOGLE ANALYTICS -->
    <script type="text/javascript">
        (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
            m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
        })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
        ga('create', '<?= MTC_ADMIN_GOOGLE_ANALYTICS_USERAGENT ?>', 'auto');
        ga('send', 'pageview');
    </script>
    <?php
}
