
{% if seo_tags.canonical is not empty %}
    <link rel="canonical" href="{{ settings.SITE_URL }}{{ seo_tags.canonical }}" />
{% elseif canonical_fallback_url is not empty %}
    <link rel="canonical" href="{{ settings.SITE_URL }}{{ canonical_fallback_url }}" />
{% endif %}

{% if settings.OPEN_GRAPH_META %}

    <meta property="og:url" content="{{ settings.SITE_URL ~ current_uri() }}"/>

    {% if page_meta.ogdata.name is not empty %}
        <meta property="og:title" content="{{ page_meta.ogdata.name }} at {{ config('app.name') }}"/>
        <meta property="og:type" content="product"/>
        <meta property="og:image" content="{{ settings.SITE_URL }}/{{ image_folders['product_folders']['large']['path'] }}/{{ page_meta.ogdata.image }}"/>
        <meta property="og:site_name" content="{{ config('app.name') }}"/>
        <meta property="og:description" content="{{ page_meta.ogdata.description }}"/>
        <meta property="fb:admins" content="100001886918552" />
    {% elseif page_meta.blog_image is not empty %}
        <meta property="og:title" content="{{ page_meta.title }}"/>
        <meta property="og:type" content="website"/>
        <meta property="og:image" content="{{ settings.SITE_URL }}/{{ image_folders['cms_images']['news_image']['path'] }}/{{ page_meta.blog_image }}"/>
        <meta property="og:site_name" content="{{ config('app.name') }}"/>
        <meta property="og:description" content="{{ page_meta.description }}"/>
        <meta property="fb:admins" content="100001886918552" />
    {% else %}
        {% if page_meta.title is not empty %}
            <meta property="og:title" content="{{ page_meta.title }}"/>
        {% else %}
            <meta property="og:title" content="{{ config('app.name') }}"/>
        {% endif %}
        <meta property="og:type" content="website"/>
        <meta property="og:image" content="{{ settings.SITE_URL ~ settings.THEME_PATH }}/images/ogimage.png"/>
        <meta property="og:site_name" content="{{ config('app.name') }}"/>
        <meta property="og:description" content="{{ page_meta.description }}"/>
        <meta property="fb:admins" content="100001886918552" />
    {% endif %}

    
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:image" content="{{ settings.SITE_URL ~ settings.THEME_PATH }}/images/ogimage.png">
    
    
{% endif %}

{% if config('app.env') == 'production' %}
    <meta name="google-site-verification" content="yiL3H5JW28Qu3jZmFs2-bZVoeuzZWDJE8QOrcgveBUk" />
{% endif %}

{% if page_meta.id == 'add-review' %}
    <link rel="stylesheet" href="/js/libs/rateit/rateit.css" type="text/css" />
    <script type="text/javascript" src="/js/libs/rateit/jquery.rateit.js"></script>
{% endif %}

{% if settings.HOTJAR_TRACKING_CODE is not empty %}
    <!-- Hotjar Tracking Code -->
    <script>
        (function(h,o,t,j,a,r){
            h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
            h._hjSettings={hjid:{{ settings.HOTJAR_TRACKING_CODE }},hjsv:5};
            a=o.getElementsByTagName('head')[0];
            r=o.createElement('script');r.async=1;
            r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
            a.appendChild(r);
        })(window,document,'//static.hotjar.com/c/hotjar-','.js?sv=');
    </script>
{% endif %}

<script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "MedicalOrganization",
        "name": "Pharmacy",
        "url": "{{ settings.SITE_URL }}",
        "logo": "{{ settings.SITE_URL }}/sites/default/images/logo.png",
        "sameAs": [

        ]
    }
</script>
