<?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;

/* Block/apg_sc_two_month_calendar.twig */
class __TwigTemplate_09fdc80d900cb29beb8140c384777135d0ee137325eaba27087c597d1933e1de 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
        $context["apgScThisMonth"] = $this->extensions['Plugin\ApgSimpleCalendar\Twig\Extension\PluginExtension']->getMonthDays(0);
        // line 2
        $context["apgScNextMonth"] = $this->extensions['Plugin\ApgSimpleCalendar\Twig\Extension\PluginExtension']->getMonthDays(1);
        // line 3
        echo "
<div id=\"calender\" class=\"move_me move_up\">
    <div class=\"container\">
        <div class=\"ec-secHeading\">
            <span class=\"ec-secHeading__en\">CALENDER</span>
            <span class=\"ec-secHeading__line\"></span>
            <span class=\"ec-secHeading__ja\">営業日カレンダー</span>
        </div>
        <div class=\"row\">
            <div class=\"col-xs-12 col-md-8\">
                <div class=\"row calenders\">
                    <div class=\"col-xs-6 cal_1\">
                        <table class=\"apg_sc_table center-block\">
                            <tbody>
                            <tr>
                                <th colspan=\"7\" class=\"apg_sc_header text_orange\">
                                    <span class=\"apg_sc_year\">";
        // line 19
        echo twig_escape_filter($this->env, (($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 = ($context["apgScThisMonth"] ?? null)) && is_array($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4) || $__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 instanceof ArrayAccess ? ($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4["year"] ?? null) : null), "html", null, true);
        echo "</span>年<span
                                            class=\"apg_sc_month\">";
        // line 20
        echo twig_escape_filter($this->env, (($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 = ($context["apgScThisMonth"] ?? null)) && is_array($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144) || $__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 instanceof ArrayAccess ? ($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144["month"] ?? null) : null), "html", null, true);
        echo "</span>月
                                </th>
                            </tr>
                            <tr class=\"week\">
                                <th class=\"apg_sc_sunday_header\">日</th>
                                <th class=\"apg_sc_monday_header\">月</th>
                                <th class=\"apg_sc_tuesday_header\">火</th>
                                <th class=\"apg_sc_wednesday_header\">水</th>
                                <th class=\"apg_sc_thursday_header\">木</th>
                                <th class=\"apg_sc_friday_header\">金</th>
                                <th class=\"apg_sc_saturday_header\">土</th>
                            </tr>
                            ";
        // line 32
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b = ($context["apgScThisMonth"] ?? null)) && is_array($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b) || $__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b instanceof ArrayAccess ? ($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b["days"] ?? null) : null));
        foreach ($context['_seq'] as $context["_key"] => $context["tr"]) {
            // line 33
            echo "                                <tr>
                                    ";
            // line 34
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($context["tr"]);
            $context['loop'] = [
              'parent' => $context['_parent'],
              'index0' => 0,
              'index'  => 1,
              'first'  => true,
            ];
            if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
                $length = count($context['_seq']);
                $context['loop']['revindex0'] = $length - 1;
                $context['loop']['revindex'] = $length;
                $context['loop']['length'] = $length;
                $context['loop']['last'] = 1 === $length;
            }
            foreach ($context['_seq'] as $context["_key"] => $context["td"]) {
                // line 35
                echo "                                        ";
                $context["apgCalendarClass"] = "";
                // line 36
                echo "                                        ";
                if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 36) == 7)) {
                    // line 37
                    echo "                                            ";
                    $context["apgCalendarClass"] = "apg_sc_saturday";
                    // line 38
                    echo "                                        ";
                } elseif ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 38) == 1)) {
                    // line 39
                    echo "                                            ";
                    $context["apgCalendarClass"] = "apg_sc_sunday";
                    // line 40
                    echo "                                        ";
                } elseif ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 40) == 2)) {
                    // line 41
                    echo "                                            ";
                    $context["apgCalendarClass"] = "apg_sc_monday";
                    // line 42
                    echo "                                        ";
                } elseif ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 42) == 3)) {
                    // line 43
                    echo "                                            ";
                    $context["apgCalendarClass"] = "apg_sc_tuesday";
                    // line 44
                    echo "                                        ";
                } elseif ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 44) == 4)) {
                    // line 45
                    echo "                                            ";
                    $context["apgCalendarClass"] = "apg_sc_wednesday";
                    // line 46
                    echo "                                        ";
                } elseif ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 46) == 5)) {
                    // line 47
                    echo "                                            ";
                    $context["apgCalendarClass"] = "apg_sc_thursday";
                    // line 48
                    echo "                                        ";
                } elseif ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 48) == 6)) {
                    // line 49
                    echo "                                            ";
                    $context["apgCalendarClass"] = "apg_sc_friday";
                    // line 50
                    echo "                                        ";
                }
                // line 51
                echo "                                        ";
                if ((twig_get_attribute($this->env, $this->source, $context["td"], "day", [], "any", false, false, false, 51) == twig_date_format_filter($this->env, "now", "j"))) {
                    // line 52
                    echo "                                            ";
                    $context["apgCalendarClass"] = (($context["apgCalendarClass"] ?? null) . " apg_sc_today");
                    // line 53
                    echo "                                        ";
                }
                // line 54
                echo "                                        ";
                if (twig_get_attribute($this->env, $this->source, $context["td"], "holiday", [], "any", false, false, false, 54)) {
                    // line 55
                    echo "                                            ";
                    $context["apgCalendarClass"] = (($context["apgCalendarClass"] ?? null) . " apg_sc_holiday");
                    // line 56
                    echo "                                        ";
                }
                // line 57
                echo "                                        ";
                if (twig_test_empty(twig_get_attribute($this->env, $this->source, $context["td"], "day", [], "any", false, false, false, 57))) {
                    // line 58
                    echo "                                            ";
                    $context["apgCalendarClass"] = (($context["apgCalendarClass"] ?? null) . " apg_sc_non_day");
                    // line 59
                    echo "                                        ";
                }
                // line 60
                echo "                                        <td title=\"";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["td"], "name", [], "any", false, false, false, 60), "html", null, true);
                echo "\" class=\"";
                echo twig_escape_filter($this->env, ($context["apgCalendarClass"] ?? null), "html", null, true);
                echo "\">";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["td"], "day", [], "any", false, false, false, 60), "html", null, true);
                echo "</td>
                                    ";
                ++$context['loop']['index0'];
                ++$context['loop']['index'];
                $context['loop']['first'] = false;
                if (isset($context['loop']['length'])) {
                    --$context['loop']['revindex0'];
                    --$context['loop']['revindex'];
                    $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                }
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['td'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 62
            echo "                                </tr>
                            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tr'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 64
        echo "                        </table>
                    </div>
                    <div class=\"col-xs-6 cal_2\">
                        <table class=\"apg_sc_table center-block\">
                            <tbody>
                            <tr>
                                <th colspan=\"7\" class=\"apg_sc_header text_orange\">
                                    <span class=\"apg_sc_year\">";
        // line 71
        echo twig_escape_filter($this->env, (($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002 = ($context["apgScNextMonth"] ?? null)) && is_array($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002) || $__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002 instanceof ArrayAccess ? ($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002["year"] ?? null) : null), "html", null, true);
        echo "</span>年<span
                                            class=\"apg_sc_month\">";
        // line 72
        echo twig_escape_filter($this->env, (($__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4 = ($context["apgScNextMonth"] ?? null)) && is_array($__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4) || $__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4 instanceof ArrayAccess ? ($__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4["month"] ?? null) : null), "html", null, true);
        echo "</span>月
                                </th>
                            </tr>
                            <tr class=\"week\">
                                <th class=\"apg_sc_sunday_header\">日</th>
                                <th class=\"apg_sc_monday_header\">月</th>
                                <th class=\"apg_sc_tuesday_header\">火</th>
                                <th class=\"apg_sc_wednesday_header\">水</th>
                                <th class=\"apg_sc_thursday_header\">木</th>
                                <th class=\"apg_sc_friday_header\">金</th>
                                <th class=\"apg_sc_saturday_header\">土</th>
                            </tr>
                            ";
        // line 84
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((($__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666 = ($context["apgScNextMonth"] ?? null)) && is_array($__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666) || $__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666 instanceof ArrayAccess ? ($__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666["days"] ?? null) : null));
        foreach ($context['_seq'] as $context["_key"] => $context["tr"]) {
            // line 85
            echo "                                <tr>
                                    ";
            // line 86
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($context["tr"]);
            $context['loop'] = [
              'parent' => $context['_parent'],
              'index0' => 0,
              'index'  => 1,
              'first'  => true,
            ];
            if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
                $length = count($context['_seq']);
                $context['loop']['revindex0'] = $length - 1;
                $context['loop']['revindex'] = $length;
                $context['loop']['length'] = $length;
                $context['loop']['last'] = 1 === $length;
            }
            foreach ($context['_seq'] as $context["_key"] => $context["td"]) {
                // line 87
                echo "                                        ";
                $context["apgCalendarClass"] = "";
                // line 88
                echo "                                        ";
                if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 88) == 7)) {
                    // line 89
                    echo "                                            ";
                    $context["apgCalendarClass"] = "apg_sc_saturday";
                    // line 90
                    echo "                                        ";
                } elseif ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 90) == 1)) {
                    // line 91
                    echo "                                            ";
                    $context["apgCalendarClass"] = "apg_sc_sunday";
                    // line 92
                    echo "                                        ";
                } elseif ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 92) == 2)) {
                    // line 93
                    echo "                                            ";
                    $context["apgCalendarClass"] = "apg_sc_monday";
                    // line 94
                    echo "                                        ";
                } elseif ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 94) == 3)) {
                    // line 95
                    echo "                                            ";
                    $context["apgCalendarClass"] = "apg_sc_tuesday";
                    // line 96
                    echo "                                        ";
                } elseif ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 96) == 4)) {
                    // line 97
                    echo "                                            ";
                    $context["apgCalendarClass"] = "apg_sc_wednesday";
                    // line 98
                    echo "                                        ";
                } elseif ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 98) == 5)) {
                    // line 99
                    echo "                                            ";
                    $context["apgCalendarClass"] = "apg_sc_thursday";
                    // line 100
                    echo "                                        ";
                } elseif ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 100) == 6)) {
                    // line 101
                    echo "                                            ";
                    $context["apgCalendarClass"] = "apg_sc_friday";
                    // line 102
                    echo "                                        ";
                }
                // line 103
                echo "                                        ";
                if ((twig_get_attribute($this->env, $this->source, $context["td"], "day", [], "any", false, false, false, 103) == twig_date_format_filter($this->env, "now", "j"))) {
                    // line 104
                    echo "                                            ";
                    $context["apgCalendarClass"] = (($context["apgCalendarClass"] ?? null) . " apg_sc_today");
                    // line 105
                    echo "                                        ";
                }
                // line 106
                echo "                                        ";
                if (twig_get_attribute($this->env, $this->source, $context["td"], "holiday", [], "any", false, false, false, 106)) {
                    // line 107
                    echo "                                            ";
                    $context["apgCalendarClass"] = (($context["apgCalendarClass"] ?? null) . " apg_sc_holiday");
                    // line 108
                    echo "                                        ";
                }
                // line 109
                echo "                                        ";
                if (twig_test_empty(twig_get_attribute($this->env, $this->source, $context["td"], "day", [], "any", false, false, false, 109))) {
                    // line 110
                    echo "                                            ";
                    $context["apgCalendarClass"] = (($context["apgCalendarClass"] ?? null) . " apg_sc_non_day");
                    // line 111
                    echo "                                        ";
                }
                // line 112
                echo "                                        <td title=\"";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["td"], "name", [], "any", false, false, false, 112), "html", null, true);
                echo "\" class=\"";
                echo twig_escape_filter($this->env, ($context["apgCalendarClass"] ?? null), "html", null, true);
                echo "\">";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["td"], "day", [], "any", false, false, false, 112), "html", null, true);
                echo "</td>
                                    ";
                ++$context['loop']['index0'];
                ++$context['loop']['index'];
                $context['loop']['first'] = false;
                if (isset($context['loop']['length'])) {
                    --$context['loop']['revindex0'];
                    --$context['loop']['revindex'];
                    $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                }
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['td'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 114
            echo "                                </tr>
                            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tr'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 116
        echo "                        </table>
                    </div>
                </div>
            </div>
                
            <div class=\"col-xs-12 col-md-4\">
                <p class=\"kyugyo_color\">が休業日です</p>
                <!--<p>ご注文確認後２営業日以内に発送いたします。 <br />
（商品の到着は、お住まいの地域によって異なります。） </p>-->
\t\t\t\t<div class=\"free_dial text-center\">
\t\t\t\t    <p class=\"fd_text text-center\">お問い合わせ・ご注文は<br />平日 10:00 - 17:00</p>
\t\t\t\t    <p class=\"fd text-center\">0120-160-312</p>
\t\t\t\t</div>
\t\t\t</div>
        </div>
    </div>
</div>";
    }

    public function getTemplateName()
    {
        return "Block/apg_sc_two_month_calendar.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  360 => 116,  353 => 114,  332 => 112,  329 => 111,  326 => 110,  323 => 109,  320 => 108,  317 => 107,  314 => 106,  311 => 105,  308 => 104,  305 => 103,  302 => 102,  299 => 101,  296 => 100,  293 => 99,  290 => 98,  287 => 97,  284 => 96,  281 => 95,  278 => 94,  275 => 93,  272 => 92,  269 => 91,  266 => 90,  263 => 89,  260 => 88,  257 => 87,  240 => 86,  237 => 85,  233 => 84,  218 => 72,  214 => 71,  205 => 64,  198 => 62,  177 => 60,  174 => 59,  171 => 58,  168 => 57,  165 => 56,  162 => 55,  159 => 54,  156 => 53,  153 => 52,  150 => 51,  147 => 50,  144 => 49,  141 => 48,  138 => 47,  135 => 46,  132 => 45,  129 => 44,  126 => 43,  123 => 42,  120 => 41,  117 => 40,  114 => 39,  111 => 38,  108 => 37,  105 => 36,  102 => 35,  85 => 34,  82 => 33,  78 => 32,  63 => 20,  59 => 19,  41 => 3,  39 => 2,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "Block/apg_sc_two_month_calendar.twig", "/home/probiotech2/www/mamebio/app/template/default/Block/apg_sc_two_month_calendar.twig");
    }
}
