<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* partials/dashboard-migration-notice.html.twig */
class __TwigTemplate_4f4f7b0d9c67416e0de879acd034a0a947b10f509c67af6c62fbaac4fa4d447c extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 1
        if ((($context["grav_next_major"] ?? null) && $this->getAttribute(($context["grav_next_major"] ?? null), "migration_url", []))) {
            // line 2
            echo "    <style>
        .grav-migration-callout {
            position: relative;
            overflow: hidden;
            margin: 0 0 20px;
            padding: 22px 28px;
            border-radius: 6px;
            background: linear-gradient(135deg, #5b3ea8 0%, #7b2ff7 55%, #ff4d8f 100%);
            color: #fff;
            box-shadow: 0 6px 24px -8px rgba(91, 62, 168, 0.55), 0 2px 4px rgba(0, 0, 0, 0.08);
        }
        .grav-migration-callout::before {
            content: \"\";
            position: absolute;
            top: -60px; right: -60px;
            width: 220px; height: 220px;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
            pointer-events: none;
        }
        .grav-migration-callout .gmc-body {
            position: relative;
            display: flex;
            align-items: center;
            gap: 22px;
            flex-wrap: wrap;
        }
        .grav-migration-callout .gmc-badge {
            flex: 0 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 72px; height: 72px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.14);
            backdrop-filter: blur(4px);
            border: 1px solid rgba(255, 255, 255, 0.22);
        }
        .grav-migration-callout .gmc-badge .gmc-badge-label {
            font-size: 9px;
            letter-spacing: 1.4px;
            text-transform: uppercase;
            opacity: 0.8;
            margin-top: 2px;
        }
        .grav-migration-callout .gmc-badge .gmc-badge-version {
            font-size: 22px;
            font-weight: 700;
            line-height: 1;
            letter-spacing: -0.5px;
        }
        .grav-migration-callout .gmc-text { flex: 1 1 280px; min-width: 0; }
        .grav-migration-callout .gmc-text h3 {
            margin: 0 0 4px;
            font-size: 18px;
            font-weight: 600;
            color: #fff;
            letter-spacing: -0.2px;
        }
        .grav-migration-callout .gmc-text h3 .gmc-tag {
            display: inline-block;
            margin-left: 8px;
            padding: 2px 8px;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            background: rgba(255, 255, 255, 0.22);
            border-radius: 3px;
            vertical-align: 2px;
        }
        .grav-migration-callout .gmc-text p {
            margin: 0;
            font-size: 13px;
            line-height: 1.5;
            color: rgba(255, 255, 255, 0.88);
        }
        .grav-migration-callout .gmc-actions {
            flex: 0 0 auto;
            display: grid;
            grid-template-columns: 1fr;
            gap: 8px;
            width: 240px;
        }
        .grav-migration-callout .gmc-actions .gmc-cta {
            justify-content: center;
        }
        .grav-migration-callout .gmc-cta {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 18px;
            margin: 0;
            font-weight: 600;
            font-size: 13px;
            border-radius: 4px;
            text-decoration: none;
            transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
            line-height: 1;
        }
        .grav-migration-callout .gmc-cta-primary {
            background: #fff;
            color: #5b3ea8 !important;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
        }
        .grav-migration-callout .gmc-cta-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
            color: #5b3ea8 !important;
        }
        .grav-migration-callout .gmc-cta-secondary {
            background: rgba(255, 255, 255, 0.12);
            color: #fff !important;
            border: 1px solid rgba(255, 255, 255, 0.45);
        }
        .grav-migration-callout .gmc-cta-secondary:hover {
            background: rgba(255, 255, 255, 0.22);
            color: #fff !important;
        }
        .grav-migration-callout .gmc-cta .fa { font-size: 12px; }
    </style>
    <div class=\"grav-migration-callout\">
        <div class=\"gmc-body\">
            <div class=\"gmc-badge\">
                <span class=\"gmc-badge-version\">";
            // line 126
            echo twig_escape_filter($this->env, twig_join_filter(twig_slice($this->env, twig_split_filter($this->env, $this->getAttribute(($context["grav_next_major"] ?? null), "version", []), "."), 0, 2), "."), "html", null, true);
            echo "</span>
                <span class=\"gmc-badge-label\">Grav</span>
            </div>
            <div class=\"gmc-text\">
                <h3>
                    ";
            // line 131
            echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\Extension\GravExtension')->translate($this->env, "PLUGIN_ADMIN.GRAV_NEXT_MAJOR_AVAILABLE", $this->getAttribute(($context["grav_next_major"] ?? null), "version", [])), "html", null, true);
            echo "
                    <span class=\"gmc-tag\">New</span>
                </h3>
                <p>";
            // line 134
            echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\Extension\GravExtension')->translate($this->env, "PLUGIN_ADMIN.GRAV_NEXT_MAJOR_DESCRIPTION"), "html", null, true);
            echo "</p>
            </div>
            <div class=\"gmc-actions\">
                ";
            // line 137
            if ($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", []), "migrate-grav", [], "array"), "enabled", [])) {
                // line 138
                echo "                    <a class=\"gmc-cta gmc-cta-primary\" href=\"";
                echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
                echo "/migrate-grav\">
                        <i class=\"fa fa-rocket\"></i> ";
                // line 139
                echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\Extension\GravExtension')->translate($this->env, "PLUGIN_ADMIN.GRAV_NEXT_MAJOR_START_MIGRATION"), "html", null, true);
                echo "
                    </a>
                ";
            } else {
                // line 142
                echo "                    <a class=\"gmc-cta gmc-cta-primary\" href=\"";
                echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
                echo "/plugins/migrate-grav\">
                        <i class=\"fa fa-download\"></i> ";
                // line 143
                echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\Extension\GravExtension')->translate($this->env, "PLUGIN_ADMIN.GRAV_NEXT_MAJOR_INSTALL_MIGRATE"), "html", null, true);
                echo "
                    </a>
                ";
            }
            // line 146
            echo "                <a class=\"gmc-cta gmc-cta-secondary\" href=\"";
            echo twig_escape_filter($this->env, $this->getAttribute(($context["grav_next_major"] ?? null), "migration_url", []), "html", null, true);
            echo "\" target=\"_blank\" rel=\"noopener\">
                    ";
            // line 147
            echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\Extension\GravExtension')->translate($this->env, "PLUGIN_ADMIN.GRAV_NEXT_MAJOR_LEARN_MORE"), "html", null, true);
            echo " <i class=\"fa fa-external-link\"></i>
                </a>
            </div>
        </div>
    </div>
";
        }
    }

    public function getTemplateName()
    {
        return "partials/dashboard-migration-notice.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  207 => 147,  202 => 146,  196 => 143,  191 => 142,  185 => 139,  180 => 138,  178 => 137,  172 => 134,  166 => 131,  158 => 126,  32 => 2,  30 => 1,);
    }

    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);

        return $this->getSourceContext()->getCode();
    }

    public function getSourceContext()
    {
        return new Source("{% if grav_next_major and grav_next_major.migration_url %}
    <style>
        .grav-migration-callout {
            position: relative;
            overflow: hidden;
            margin: 0 0 20px;
            padding: 22px 28px;
            border-radius: 6px;
            background: linear-gradient(135deg, #5b3ea8 0%, #7b2ff7 55%, #ff4d8f 100%);
            color: #fff;
            box-shadow: 0 6px 24px -8px rgba(91, 62, 168, 0.55), 0 2px 4px rgba(0, 0, 0, 0.08);
        }
        .grav-migration-callout::before {
            content: \"\";
            position: absolute;
            top: -60px; right: -60px;
            width: 220px; height: 220px;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
            pointer-events: none;
        }
        .grav-migration-callout .gmc-body {
            position: relative;
            display: flex;
            align-items: center;
            gap: 22px;
            flex-wrap: wrap;
        }
        .grav-migration-callout .gmc-badge {
            flex: 0 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 72px; height: 72px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.14);
            backdrop-filter: blur(4px);
            border: 1px solid rgba(255, 255, 255, 0.22);
        }
        .grav-migration-callout .gmc-badge .gmc-badge-label {
            font-size: 9px;
            letter-spacing: 1.4px;
            text-transform: uppercase;
            opacity: 0.8;
            margin-top: 2px;
        }
        .grav-migration-callout .gmc-badge .gmc-badge-version {
            font-size: 22px;
            font-weight: 700;
            line-height: 1;
            letter-spacing: -0.5px;
        }
        .grav-migration-callout .gmc-text { flex: 1 1 280px; min-width: 0; }
        .grav-migration-callout .gmc-text h3 {
            margin: 0 0 4px;
            font-size: 18px;
            font-weight: 600;
            color: #fff;
            letter-spacing: -0.2px;
        }
        .grav-migration-callout .gmc-text h3 .gmc-tag {
            display: inline-block;
            margin-left: 8px;
            padding: 2px 8px;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            background: rgba(255, 255, 255, 0.22);
            border-radius: 3px;
            vertical-align: 2px;
        }
        .grav-migration-callout .gmc-text p {
            margin: 0;
            font-size: 13px;
            line-height: 1.5;
            color: rgba(255, 255, 255, 0.88);
        }
        .grav-migration-callout .gmc-actions {
            flex: 0 0 auto;
            display: grid;
            grid-template-columns: 1fr;
            gap: 8px;
            width: 240px;
        }
        .grav-migration-callout .gmc-actions .gmc-cta {
            justify-content: center;
        }
        .grav-migration-callout .gmc-cta {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 18px;
            margin: 0;
            font-weight: 600;
            font-size: 13px;
            border-radius: 4px;
            text-decoration: none;
            transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
            line-height: 1;
        }
        .grav-migration-callout .gmc-cta-primary {
            background: #fff;
            color: #5b3ea8 !important;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
        }
        .grav-migration-callout .gmc-cta-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
            color: #5b3ea8 !important;
        }
        .grav-migration-callout .gmc-cta-secondary {
            background: rgba(255, 255, 255, 0.12);
            color: #fff !important;
            border: 1px solid rgba(255, 255, 255, 0.45);
        }
        .grav-migration-callout .gmc-cta-secondary:hover {
            background: rgba(255, 255, 255, 0.22);
            color: #fff !important;
        }
        .grav-migration-callout .gmc-cta .fa { font-size: 12px; }
    </style>
    <div class=\"grav-migration-callout\">
        <div class=\"gmc-body\">
            <div class=\"gmc-badge\">
                <span class=\"gmc-badge-version\">{{ grav_next_major.version|split('.')|slice(0,2)|join('.') }}</span>
                <span class=\"gmc-badge-label\">Grav</span>
            </div>
            <div class=\"gmc-text\">
                <h3>
                    {{ \"PLUGIN_ADMIN.GRAV_NEXT_MAJOR_AVAILABLE\"|t(grav_next_major.version) }}
                    <span class=\"gmc-tag\">New</span>
                </h3>
                <p>{{ \"PLUGIN_ADMIN.GRAV_NEXT_MAJOR_DESCRIPTION\"|t }}</p>
            </div>
            <div class=\"gmc-actions\">
                {% if config.plugins['migrate-grav'].enabled %}
                    <a class=\"gmc-cta gmc-cta-primary\" href=\"{{ base_url_relative }}/migrate-grav\">
                        <i class=\"fa fa-rocket\"></i> {{ \"PLUGIN_ADMIN.GRAV_NEXT_MAJOR_START_MIGRATION\"|t }}
                    </a>
                {% else %}
                    <a class=\"gmc-cta gmc-cta-primary\" href=\"{{ base_url_relative }}/plugins/migrate-grav\">
                        <i class=\"fa fa-download\"></i> {{ \"PLUGIN_ADMIN.GRAV_NEXT_MAJOR_INSTALL_MIGRATE\"|t }}
                    </a>
                {% endif %}
                <a class=\"gmc-cta gmc-cta-secondary\" href=\"{{ grav_next_major.migration_url }}\" target=\"_blank\" rel=\"noopener\">
                    {{ \"PLUGIN_ADMIN.GRAV_NEXT_MAJOR_LEARN_MORE\"|t }} <i class=\"fa fa-external-link\"></i>
                </a>
            </div>
        </div>
    </div>
{% endif %}
", "partials/dashboard-migration-notice.html.twig", "D:\\xampp\\htdocs\\amcistech\\v1.amcistech.site\\user\\plugins\\admin\\themes\\grav\\templates\\partials\\dashboard-migration-notice.html.twig");
    }
}
