<title>
    {{ page_meta.title }} - {{ config('app.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="{{ settings.THEME_URL }}/images/favicon/favicon.ico"
/>

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="/core/js/jquery.js"><\/script>')</script>

<link rel="stylesheet/less" href="{{ uriHash('/core/admin/css/mtc_admin_style.less') }}" media="screen, print" />
<script src="/core/js/less.js"></script>
<script type="text/javascript">
    // less.watch(); //ajax request that keeps running to check for less errors
</script>

<script src="/core/js/vue{% if settings.DEV_MODE == false %}.min{% endif %}.js"></script>

{% for js_file in admin_js_files %}
    <script type="text/javascript" src="{{ uriHash(js_file) }}"></script>
{% endfor %}

<link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.25/css/jquery.dataTables.min.css" />

<script type="text/javascript" src="/core/admin/js/libs/xds.js"></script>
<script type="text/javascript" src="//cdn.datatables.net/1.10.25/js/jquery.dataTables.min.js"></script>

<script type="text/javascript">
    $(function(){
        if (typeof init_tinymce !== "undefined") {
            init_tinymce();
        }
    });
</script>

{% if config('app.env') == 'production'
    and admin_id is not empty
    and settings.MTC_ADMIN_GOOGLE_ANALYTICS_USERAGENT is not empty
%}
    <!-- 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', '{{ settings.MTC_ADMIN_GOOGLE_ANALYTICS_USERAGENT }}', 'auto');
        ga('send', 'pageview');
    </script>
{% endif %}
