<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
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;
use Twig\TemplateWrapper;

/* @genericobject/migration_status.html.twig */
class __TwigTemplate_41cdcbc12b23fd1b5f9071870d021bca extends Template
{
    private Source $source;
    /**
     * @var array<string, Template>
     */
    private array $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 28
        yield "
";
        // line 30
        yield "<div class=\"d-flex align-items-center mb-4\">
    <div class=\"me-3\">
        <i class=\"ti ti-arrows-exchange fa-2x text-primary\"></i>
    </div>
    <div>
        <h1 class=\"mb-0\">";
        // line 35
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("GenericObject Migration Status", "genericobject"), "html", null, true);
        yield "</h1>
        <p class=\"text-muted mb-0\">";
        // line 36
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("End of Life migration tool for GLPI 11", "genericobject"), "html", null, true);
        yield "</p>
    </div>
</div>
<div class=\"row\">
    <div
        class=\"col-12\">
        ";
        // line 43
        yield "        <div class=\"alert alert-warning border-start border-warning border-2 mb-4\">
            <div class=\"d-flex align-items-start\">
                <i class=\"ti ti-alert-triangle text-warning me-3 mt-1 fa-lg\"></i>
                <div>
                    <h5 class=\"alert-heading mb-2\">";
        // line 47
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("End of Life Notice", "genericobject"), "html", null, true);
        yield "</h5>
                    <p class=\"mb-0\">
                        ";
        // line 49
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("GenericObject v3.0.0 is an End-of-Life version. All custom asset creation functionality has been moved to GLPI 11 native asset definition.", "genericobject"), "html", null, true);
        yield "
                    </p>
                </div>
            </div>
        </div>

        ";
        // line 56
        yield "        <div class=\"card shadow-sm mb-4\">
            <div class=\"card-header bg-light\">
                <h3 class=\"card-title mb-0\">
                    <i class=\"ti ti-chart-line me-2\"></i>
                    ";
        // line 60
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Migration Status", "genericobject"), "html", null, true);
        yield "
                </h3>
            </div>
            <div class=\"card-body\">
                ";
        // line 65
        yield "                ";
        $context["start"] = ((CoreExtension::getAttribute($this->env, $this->source, ($context["_get"] ?? null), "start", [], "any", true, true, false, 65)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["_get"] ?? null), "start", [], "any", false, false, false, 65), 0)) : (0));
        // line 66
        yield "                ";
        $context["limit"] = ((CoreExtension::getAttribute($this->env, $this->source, ($context["_get"] ?? null), "limit", [], "any", true, true, false, 66)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["_get"] ?? null), "limit", [], "any", false, false, false, 66), $this->extensions['Glpi\Application\View\Extension\SessionExtension']->userPref("list_limit"))) : ($this->extensions['Glpi\Application\View\Extension\SessionExtension']->userPref("list_limit")));
        // line 67
        yield "                ";
        $context["total_count"] = Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["genericobject_types"] ?? null));
        // line 68
        yield "
                ";
        // line 70
        yield "                ";
        $context["paginated_types"] = Twig\Extension\CoreExtension::slice($this->env->getCharset(), ($context["genericobject_types"] ?? null), ($context["start"] ?? null), ($context["limit"] ?? null));
        // line 71
        yield "
                ";
        // line 73
        yield "                ";
        yield Twig\Extension\CoreExtension::include($this->env, $context, "components/pager.html.twig", ["count" =>         // line 74
($context["total_count"] ?? null), "start" =>         // line 75
($context["start"] ?? null), "limit" =>         // line 76
($context["limit"] ?? null), "href" => "migration_status.php", "short_display" => true, "no_limit_display" => false]);
        // line 80
        yield "

                <div class=\"d-flex flex-wrap justify-content-start gap-3\">
                    ";
        // line 83
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["paginated_types"] ?? null));
        foreach ($context['_seq'] as $context["key"] => $context["genericobject_type"]) {
            // line 84
            yield "                        <div class=\"card shadow-sm mb-2 d-flex flex-column h-100\" style=\"flex: 0 0 calc(33.333% - 1rem);\">
                            <div class=\"card-header d-flex align-items-center
                                        ";
            // line 86
            if ((($tmp = (($_v0 = ($context["customassets"] ?? null)) && is_array($_v0) || $_v0 instanceof ArrayAccess ? ($_v0[CoreExtension::getAttribute($this->env, $this->source, $context["genericobject_type"], "name", [], "any", false, false, false, 86)] ?? null) : null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 87
                yield "                                            bg-success bg-opacity-10 text-success
                                        ";
            } else {
                // line 89
                yield "                                            bg-danger bg-opacity-10 text-danger
                                        ";
            }
            // line 90
            yield "\">
                                ";
            // line 91
            if (((($_v1 = ($context["customassets"] ?? null)) && is_array($_v1) || $_v1 instanceof ArrayAccess ? ($_v1[CoreExtension::getAttribute($this->env, $this->source, $context["genericobject_type"], "name", [], "any", false, false, false, 91)] ?? null) : null) && CoreExtension::getAttribute($this->env, $this->source, (($_v2 = ($context["customassets"] ?? null)) && is_array($_v2) || $_v2 instanceof ArrayAccess ? ($_v2[CoreExtension::getAttribute($this->env, $this->source, $context["genericobject_type"], "name", [], "any", false, false, false, 91)] ?? null) : null), "icon", [], "any", false, false, false, 91))) {
                // line 92
                yield "                                    <i class=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (($_v3 = ($context["customassets"] ?? null)) && is_array($_v3) || $_v3 instanceof ArrayAccess ? ($_v3[CoreExtension::getAttribute($this->env, $this->source, $context["genericobject_type"], "name", [], "any", false, false, false, 92)] ?? null) : null), "icon", [], "any", false, false, false, 92), "html", null, true);
                yield " fa-lg me-2\"></i>
                                ";
            } else {
                // line 94
                yield "                                    <i class=\"ti ti-box fa-lg me-2\"></i>
                                ";
            }
            // line 96
            yield "                                <h3 class=\"card-title mb-0\">
                                    ";
            // line 97
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["genericobject_type"], "name", [], "any", false, false, false, 97), "html", null, true);
            yield "
                                </h3>
                            </div>

                            <div class=\"card-body d-flex flex-column\">
                                ";
            // line 102
            if ((($tmp = (($_v4 = ($context["customassets"] ?? null)) && is_array($_v4) || $_v4 instanceof ArrayAccess ? ($_v4[CoreExtension::getAttribute($this->env, $this->source, $context["genericobject_type"], "name", [], "any", false, false, false, 102)] ?? null) : null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 103
                yield "                                    <div class=\"mb-2\">
                                        <i class=\"ti ti-check text-success me-2\"></i>
                                        <span class=\"text-success fw-bold\">";
                // line 105
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Migrated", "genericobject"), "html", null, true);
                yield "</span>
                                    </div>
                                    <div class=\"mb-2\">
                                        <strong>";
                // line 108
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Items Migrated:", "genericobject"), "html", null, true);
                yield "</strong>
                                        <span class=\"badge glpi-badge\">
                                            ";
                // line 110
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (($_v5 = ($context["customassets"] ?? null)) && is_array($_v5) || $_v5 instanceof ArrayAccess ? ($_v5[CoreExtension::getAttribute($this->env, $this->source, $context["genericobject_type"], "name", [], "any", false, false, false, 110)] ?? null) : null), "items", [], "any", false, false, false, 110), "html", null, true);
                yield "
                                        </span>
                                    </div>
                                    <div class=\"mt-auto d-flex justify-content-end gap-2\">
                                        <a href=\"";
                // line 114
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["CFG_GLPI"] ?? null), "root_doc", [], "any", false, false, false, 114), "html", null, true);
                yield "/front/asset/asset.php?class=";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (($_v6 = ($context["customassets"] ?? null)) && is_array($_v6) || $_v6 instanceof ArrayAccess ? ($_v6[CoreExtension::getAttribute($this->env, $this->source, $context["genericobject_type"], "name", [], "any", false, false, false, 114)] ?? null) : null), "system_name", [], "any", false, false, false, 114), "html", null, true);
                yield "\"
                                        class=\"btn btn-outline-primary\">
                                            <i class=\"ti ti-list me-2\"></i>
                                            ";
                // line 117
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("View Items", "genericobject"), "html", null, true);
                yield "
                                        </a>
                                        <a href=\"";
                // line 119
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["CFG_GLPI"] ?? null), "root_doc", [], "any", false, false, false, 119), "html", null, true);
                yield "/front/asset/assetdefinition.form.php?id=";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (($_v7 = ($context["customassets"] ?? null)) && is_array($_v7) || $_v7 instanceof ArrayAccess ? ($_v7[CoreExtension::getAttribute($this->env, $this->source, $context["genericobject_type"], "name", [], "any", false, false, false, 119)] ?? null) : null), "id", [], "any", false, false, false, 119), "html", null, true);
                yield "\"
                                        class=\"btn btn-outline-success\">
                                            <i class=\"ti ti-eye me-2\"></i>
                                            ";
                // line 122
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("View Asset", "genericobject"), "html", null, true);
                yield "
                                        </a>
                                    </div>
                                ";
            } else {
                // line 126
                yield "                                    <div class=\"mb-2\">
                                        <i class=\"ti ti-x text-danger me-2\"></i>
                                        <span class=\"text-danger fw-bold\">";
                // line 128
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Not Migrated", "genericobject"), "html", null, true);
                yield "</span>
                                    </div>
                                    <div class=\"mb-2\">
                                        <strong>";
                // line 131
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Items Migrated:", "genericobject"), "html", null, true);
                yield "</strong>
                                        <span class=\"badge glpi-badge\">0</span>
                                    </div>
                                    <div class=\"mt-auto d-flex justify-content-end gap-2\">
                                        <button class=\"btn btn-outline-primary\" disabled>
                                            <i class=\"ti ti-list me-2\"></i>
                                            ";
                // line 137
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("View Items", "genericobject"), "html", null, true);
                yield "
                                        </button>
                                        <button class=\"btn btn-outline-secondary\" disabled>
                                            <i class=\"ti ti-eye me-2\"></i>
                                            ";
                // line 141
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("View Asset", "genericobject"), "html", null, true);
                yield "
                                        </button>
                                    </div>
                                ";
            }
            // line 145
            yield "                            </div>
                        </div>
                    ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['key'], $context['genericobject_type'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 148
        yield "                </div>
                ";
        // line 150
        yield "                ";
        yield Twig\Extension\CoreExtension::include($this->env, $context, "components/pager.html.twig", ["count" =>         // line 151
($context["total_count"] ?? null), "start" =>         // line 152
($context["start"] ?? null), "limit" =>         // line 153
($context["limit"] ?? null), "href" => "migration_status.php", "short_display" => false, "no_limit_display" => false]);
        // line 157
        yield "
            </div>
        </div>

        <div class=\"card shadow-sm mb-4 border-primary\">
            <div class=\"card-header bg-primary text-white\">
                <h3 class=\"card-title mb-0\">
                    <i class=\"ti ti-terminal-2 me-2\"></i>
                    ";
        // line 165
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("How to Migrate", "genericobject"), "html", null, true);
        yield "
                </h3>
            </div>
                <div class=\"card-body\">
                    <div class=\"alert alert-warning border-start border-warning border-2 mb-4\">
                        <div class=\"d-flex align-items-start\">
                            <i class=\"ti ti-terminal-2 text-warning me-3 mt-1\"></i>
                            <div>
                                <p class=\"alert-heading mb-2\">";
        // line 173
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Command Line Migration Required", "genericobject"), "html", null, true);
        yield "</p>
                                <p class=\"mb-2\">
                                    ";
        // line 175
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("For optimal performance and reliability, the migration must be performed using the command line:", "genericobject"), "html", null, true);
        yield "
                                </p>
                                <div class=\"bg-light border border-secondary rounded p-3 position-relative mt-3\">
                                    <div class=\"d-flex align-items-center justify-content-between\">
                                        <code id=\"codeBlock\" class=\"mb-0 flex-grow-1 bg-transparent\">php bin/console migration:genericobject_plugin_to_core</code>
                                        <button class=\"btn btn-sm btn-outline-secondary ms-3 copy-btn\" onclick=\"copyCode()\" title=\"";
        // line 180
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Copy command", "genericobject"), "html", null, true);
        yield "\">
                                            <i class=\"ti ti-clipboard\"></i>
                                            ";
        // line 182
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Copy"), "html", null, true);
        yield "
                                        </button>
                                    </div>
                                </div>
                                <small class=\"text-muted mt-2 d-block\">
                                    ";
        // line 187
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Run this command from your GLPI root directory", "genericobject"), "html", null, true);
        yield "
                                </small>
                            </div>
                        </div>
                    </div>

                    <div class=\"alert alert-info border-start border-info border-2\">
                        <div class=\"d-flex align-items-start\">
                            <i class=\"ti ti-info-circle me-3 mt-1\"></i>
                            <div>
                                <p class=\"alert-heading mb-2\">";
        // line 197
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Migration Process", "genericobject"), "html", null, true);
        yield "</p>
                                <ul class=\"mb-2 ps-3\">
                                    <li>";
        // line 199
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Generic objects will be converted into custom assets", "genericobject"), "html", null, true);
        yield "</li>
                                    <li>";
        // line 200
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Types will be retained.", "genericobject"), "html", null, true);
        yield "</li>
                                    <li>";
        // line 201
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Asset data will not be lost", "genericobject"), "html", null, true);
        yield "</li>
                                </ul>
                                <div class=\"border-top pt-2 mt-2\">
                                    <small class=\"text-muted\">
                                        <i class=\"ti ti-alert-circle me-1\"></i>
                                        ";
        // line 206
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Note: Migration status detection is based on data presence and may not be 100% accurate. Please verify manually after running the migration command.", "genericobject"), "html", null, true);
        yield "
                                    </small>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
            </div>

        ";
        // line 217
        yield "        <div class=\"card shadow-sm mb-4\">
            <div class=\"card-header bg-light\">
                <h3 class=\"card-title mb-0\">
                    <i class=\"ti ti-list-check me-2\"></i>
                    ";
        // line 221
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Next Steps", "genericobject"), "html", null, true);
        yield "
                </h3>
            </div>
            <div class=\"card-body\">
                <div class=\"row\">
                    <div class=\"d-flex align-items-start col-md-6\">
                        <i class=\"ti ti-arrow-right text-primary me-2\"></i>
                        <div>
                            <p class=\"fw-bold mb-2\">";
        // line 229
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("After Migration", "genericobject"), "html", null, true);
        yield "</p>
                            <ul class=\"list-unstyled\">
                                <li class=\"mb-2\">
                                    <i class=\"ti ti-chevron-right text-primary me-2\"></i>
                                    ";
        // line 233
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Review converted assets in GLPI 11", "genericobject"), "html", null, true);
        yield "
                                </li>
                                <li class=\"mb-2\">
                                    <i class=\"ti ti-chevron-right text-primary me-2\"></i>
                                    ";
        // line 237
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Test asset access permissions", "genericobject"), "html", null, true);
        yield "
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class=\"d-flex align-items-start col-md-6\">
                        <i class=\"ti ti-arrow-right text-success me-2\"></i>
                        <div>
                            <p class=\"fw-bold mb-2\">";
        // line 245
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Recommendations", "genericobject"), "html", null, true);
        yield "</p>
                            <ul class=\"list-unstyled\">
                                <li class=\"mb-2\">
                                    <i class=\"ti ti-chevron-right text-success me-2\"></i>
                                    ";
        // line 249
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Train users on GLPI 11 native custom assets", "genericobject"), "html", null, true);
        yield "
                                </li>
                                <li class=\"mb-2\">
                                    <i class=\"ti ti-chevron-right text-success me-2\"></i>
                                    ";
        // line 253
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Update internal documentation", "genericobject"), "html", null, true);
        yield "
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<style>
    pre {
        background-color: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 0.25rem;
        padding: 1rem;
        position: relative;
    }

    .copy-btn {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }
</style>
<script>
    function copyCode() {
        const codeBlock = document.getElementById('codeBlock');
        const textArea = document.createElement('textarea');
        textArea.value = codeBlock.textContent;
        document.body.appendChild(textArea);
        textArea.select();
        document.execCommand('copy');
        document.body.removeChild(textArea);

        const copyBtn = document.querySelector('.copy-btn');
        copyBtn.innerHTML = '<i class=\"ti ti-check\"></i> ";
        // line 289
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Copied"), "html", null, true);
        yield " !';
        copyBtn.classList.remove('btn-outline-secondary');
        copyBtn.classList.add('btn-success');

        setTimeout(() => {
            copyBtn.innerHTML = '<i class=\"ti ti-clipboard\"></i> ";
        // line 294
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Copy"), "html", null, true);
        yield "';
            copyBtn.classList.remove('btn-success');
            copyBtn.classList.add('btn-outline-secondary');
        }, 2000);
    }
</script>
";
        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "@genericobject/migration_status.html.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable(): bool
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  470 => 294,  462 => 289,  423 => 253,  416 => 249,  409 => 245,  398 => 237,  391 => 233,  384 => 229,  373 => 221,  367 => 217,  354 => 206,  346 => 201,  342 => 200,  338 => 199,  333 => 197,  320 => 187,  312 => 182,  307 => 180,  299 => 175,  294 => 173,  283 => 165,  273 => 157,  271 => 153,  270 => 152,  269 => 151,  267 => 150,  264 => 148,  256 => 145,  249 => 141,  242 => 137,  233 => 131,  227 => 128,  223 => 126,  216 => 122,  208 => 119,  203 => 117,  195 => 114,  188 => 110,  183 => 108,  177 => 105,  173 => 103,  171 => 102,  163 => 97,  160 => 96,  156 => 94,  150 => 92,  148 => 91,  145 => 90,  141 => 89,  137 => 87,  135 => 86,  131 => 84,  127 => 83,  122 => 80,  120 => 76,  119 => 75,  118 => 74,  116 => 73,  113 => 71,  110 => 70,  107 => 68,  104 => 67,  101 => 66,  98 => 65,  91 => 60,  85 => 56,  76 => 49,  71 => 47,  65 => 43,  56 => 36,  52 => 35,  45 => 30,  42 => 28,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "@genericobject/migration_status.html.twig", "/home/tisoluci/public_html/crpamplona/marketplace/genericobject/templates/migration_status.html.twig");
    }
}
