<?php

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

/* @SendAllMails4/admin/button.twig */
class __TwigTemplate_705f1b87e4a7cd6d3df48fe20878a90e7e4f646118c6d9c00b3524246b3b3624 extends \Eccube\Twig\Template
{
    private $source;
    private $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 = [])
    {
        $macros = $this->macros;
        // line 1
        echo "<script>
\$(function() {
    \$('#bulkSendMail').before('<button id=\"SendAllMail4\" type=\"button\" class=\"btn btn-ec-regular mr-2\" data-type=\"mail\" data-bulk-update=\"true\">一括通知</button>');

    \$('#bulkSendMail').text(\"出荷通知\");
});

\$(document).on(\"click\", \"#SendAllMail4\", function(){
    var array = [];
    \$('input[id^=\"check_\"]:checked').each(function() {
        array.push(\$(this).val());
    });
    var url = \"";
        // line 13
        echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("send_all_mails4_admin_mail", ["ids" => 1]);
        echo "\";
    window.location.href = url.slice(0, -1)+array.join(',');
});
</script>



";
    }

    public function getTemplateName()
    {
        return "@SendAllMails4/admin/button.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  51 => 13,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "@SendAllMails4/admin/button.twig", "/home/probiotech2/www/mamebio/app/Plugin/SendAllMails4/Resource/template/admin/button.twig");
    }
}
