var/cache/dev/twig/ba/ba92f75529c0f5fd4b5b530c0a3efaed038a734fd6b6c533bd2a1b9e41415a50.php line 53

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Mypage/index.twig */
  14. class __TwigTemplate_ef360ee943c16ed9810c7b721ecd3d92a123b58b344fa5d2d71e062c123c53ce extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'main' => [$this'block_main'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 11
  29.         return "default_frame.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Mypage/index.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Mypage/index.twig"));
  38.         // line 13
  39.         $context["mypageno"] = "index";
  40.         // line 15
  41.         $context["body_class"] = "mypage";
  42.         // line 11
  43.         $this->parent $this->loadTemplate("default_frame.twig""Mypage/index.twig"11);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  47.         
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  49.     }
  50.     // line 17
  51.     public function block_main($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  58.         // line 18
  59.         echo "    <div class=\"ec-layoutRole__main\">
  60.         <div class=\"ec-mypageRole\">
  61.             <div class=\"ec-pageHeader\">
  62.                 <h1>";
  63.         // line 21
  64.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("マイページ"), "html"nulltrue);
  65.         echo "/";
  66.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご注文履歴"), "html"nulltrue);
  67.         echo "</h1>
  68.             </div>
  69.             ";
  70.         // line 23
  71.         $this->loadTemplate("Mypage/navi.twig""Mypage/index.twig"23)->display($context);
  72.         // line 24
  73.         echo "        </div>
  74.         <div class=\"ec-mypageRole\">
  75.             ";
  76.         // line 26
  77.         if ((twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'26$this->source); })()), "totalItemCount", [], "any"falsefalsefalse26) > 0)) {
  78.             // line 27
  79.             echo "                <p class=\"ec-para-normal\">";
  80.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%count%件の履歴があります", ["%count%" => twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'27$this->source); })()), "totalItemCount", [], "any"falsefalsefalse27)]), "html"nulltrue);
  81.             echo "</p>
  82.                 ";
  83.             // line 28
  84.             $context['_parent'] = $context;
  85.             $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'28$this->source); })()));
  86.             foreach ($context['_seq'] as $context["_key"] => $context["Order"]) {
  87.                 // line 29
  88.                 echo "                    <div class=\"ec-historyRole\">
  89.                         <div class=\"ec-historyRole__contents\">
  90.                             <div class=\"ec-historyRole__header\">
  91.                                 <div class=\"ec-historyListHeader\">
  92.                                     <p class=\"ec-historyListHeader__date\">";
  93.                 // line 34
  94.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\IntlExtension']->date_sec($this->envtwig_get_attribute($this->env$this->source$context["Order"], "order_date", [], "any"falsefalsefalse34)), "html"nulltrue);
  95.                 echo "</p>
  96.                                     <dl class=\"ec-definitions\">
  97.                                         <dt>";
  98.                 // line 36
  99.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご注文番号"), "html"nulltrue);
  100.                 echo "</dt>
  101.                                         <dd>";
  102.                 // line 37
  103.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Order"], "order_no", [], "any"falsefalsefalse37), "html"nulltrue);
  104.                 echo "</dd>
  105.                                     </dl>
  106.                                     ";
  107.                 // line 39
  108.                 if (twig_get_attribute($this->env$this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo"$context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.'39$this->source); })()), "option_mypage_order_status_display", [], "any"falsefalsefalse39)) {
  109.                     // line 40
  110.                     echo "                                        <dl class=\"ec-definitions\">
  111.                                             <dt>";
  112.                     // line 41
  113.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご注文状況"), "html"nulltrue);
  114.                     echo "</dt>
  115.                                             <dd>";
  116.                     // line 42
  117.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Order"], "CustomerOrderStatus", [], "any"falsefalsefalse42), "html"nulltrue);
  118.                     echo "</dd>
  119.                                         </dl>
  120.                                     ";
  121.                 }
  122.                 // line 45
  123.                 echo "                                    <p class=\"ec-historyListHeader__action\"><a class=\"ec-inlineBtn\"
  124.                                                                                href=\"";
  125.                 // line 46
  126.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_history", ["order_no" => twig_get_attribute($this->env$this->source$context["Order"], "order_no", [], "any"falsefalsefalse46)]), "html"nulltrue);
  127.                 echo "\">";
  128.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("詳細を見る"), "html"nulltrue);
  129.                 echo "</a>
  130.                                     </p>
  131.                                 </div>
  132.                             </div>
  133.                             <div class=\"ec-historyRole__detail\">
  134.                                 ";
  135.                 // line 51
  136.                 $context['_parent'] = $context;
  137.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Order"], "MergedProductOrderItems", [], "any"falsefalsefalse51));
  138.                 foreach ($context['_seq'] as $context["_key"] => $context["OrderItem"]) {
  139.                     // line 52
  140.                     echo "                                    <div class=\"ec-imageGrid\">
  141.                                         <div class=\"ec-imageGrid__img\">
  142.                                             ";
  143.                     // line 54
  144.                     if ((null === twig_get_attribute($this->env$this->source$context["OrderItem"], "Product", [], "any"falsefalsefalse54))) {
  145.                         // line 55
  146.                         echo "                                                <img src=\"";
  147.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(""), "save_image"), "html"nulltrue);
  148.                         echo "\"/>
  149.                                             ";
  150.                     } else {
  151.                         // line 57
  152.                         echo "                                                <img src=\"";
  153.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["OrderItem"], "Product", [], "any"falsefalsefalse57), "MainListImage", [], "any"falsefalsefalse57)), "save_image"), "html"nulltrue);
  154.                         echo "\">
  155.                                             ";
  156.                     }
  157.                     // line 59
  158.                     echo "                                        </div>
  159.                                         <div class=\"ec-imageGrid__content\">
  160.                                             <p class=\"ec-historyRole__detailTitle\">";
  161.                     // line 61
  162.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["OrderItem"], "product_name", [], "any"falsefalsefalse61), "html"nulltrue);
  163.                     echo "</p>
  164.                                             ";
  165.                     // line 62
  166.                     if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["OrderItem"], "class_category_name1", [], "any"falsefalsefalse62))) {
  167.                         // line 63
  168.                         echo "                                                ";
  169.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["OrderItem"], "class_category_name1", [], "any"falsefalsefalse63), "html"nulltrue);
  170.                         echo "
  171.                                             ";
  172.                     }
  173.                     // line 65
  174.                     echo "                                            ";
  175.                     if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["OrderItem"], "class_category_name2", [], "any"falsefalsefalse65))) {
  176.                         // line 66
  177.                         echo "                                                / ";
  178.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["OrderItem"], "class_category_name2", [], "any"falsefalsefalse66), "html"nulltrue);
  179.                         echo "
  180.                                             ";
  181.                     }
  182.                     // line 68
  183.                     echo "                                            <p class=\"ec-historyRole__detailPrice\">";
  184.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["OrderItem"], "price_inc_tax", [], "any"falsefalsefalse68)), "html"nulltrue);
  185.                     echo "
  186.                                                 × ";
  187.                     // line 69
  188.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["OrderItem"], "quantity", [], "any"falsefalsefalse69), "html"nulltrue);
  189.                     echo "</p>
  190.                                         </div>
  191.                                     </div>
  192.                                 ";
  193.                 }
  194.                 $_parent $context['_parent'];
  195.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['OrderItem'], $context['_parent'], $context['loop']);
  196.                 $context array_intersect_key($context$_parent) + $_parent;
  197.                 // line 73
  198.                 echo "                            </div>
  199.                         </div>
  200.                     </div>
  201.                 ";
  202.             }
  203.             $_parent $context['_parent'];
  204.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Order'], $context['_parent'], $context['loop']);
  205.             $context array_intersect_key($context$_parent) + $_parent;
  206.             // line 77
  207.             echo "                <div class=\"ec-pagerRole\">
  208.                     ";
  209.             // line 78
  210.             $this->loadTemplate("pager.twig""Mypage/index.twig"78)->display(twig_array_merge($context, ["pages" => twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'78$this->source); })()), "paginationData", [], "any"falsefalsefalse78)]));
  211.             // line 79
  212.             echo "                </div>
  213.             ";
  214.         } else {
  215.             // line 81
  216.             echo "                <p class=\"ec-para-normal\">";
  217.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご注文履歴はありません。"), "html"nulltrue);
  218.             echo "</p>
  219.             ";
  220.         }
  221.         // line 83
  222.         echo "        </div>
  223.     </div>
  224. ";
  225.         
  226.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  227.         
  228.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  229.     }
  230.     public function getTemplateName()
  231.     {
  232.         return "Mypage/index.twig";
  233.     }
  234.     public function isTraitable()
  235.     {
  236.         return false;
  237.     }
  238.     public function getDebugInfo()
  239.     {
  240.         return array (  237 => 83,  231 => 81,  227 => 79,  225 => 78,  222 => 77,  213 => 73,  203 => 69,  198 => 68,  192 => 66,  189 => 65,  183 => 63,  181 => 62,  177 => 61,  173 => 59,  167 => 57,  161 => 55,  159 => 54,  155 => 52,  151 => 51,  141 => 46,  138 => 45,  132 => 42,  128 => 41,  125 => 40,  123 => 39,  118 => 37,  114 => 36,  109 => 34,  102 => 29,  98 => 28,  93 => 27,  91 => 26,  87 => 24,  85 => 23,  78 => 21,  73 => 18,  63 => 17,  52 => 11,  50 => 15,  48 => 13,  35 => 11,);
  241.     }
  242.     public function getSourceContext()
  243.     {
  244.         return new Source("{#
  245. This file is part of EC-CUBE
  246. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  247. http://www.ec-cube.co.jp/
  248. For the full copyright and license information, please view the LICENSE
  249. file that was distributed with this source code.
  250. #}
  251. {% extends 'default_frame.twig' %}
  252. {% set mypageno = 'index' %}
  253. {% set body_class = 'mypage' %}
  254. {% block main %}
  255.     <div class=\"ec-layoutRole__main\">
  256.         <div class=\"ec-mypageRole\">
  257.             <div class=\"ec-pageHeader\">
  258.                 <h1>{{ 'マイページ'|trans }}/{{ 'ご注文履歴'|trans }}</h1>
  259.             </div>
  260.             {% include 'Mypage/navi.twig' %}
  261.         </div>
  262.         <div class=\"ec-mypageRole\">
  263.             {% if pagination.totalItemCount > 0 %}
  264.                 <p class=\"ec-para-normal\">{{ '%count%件の履歴があります'|trans({'%count%':pagination.totalItemCount}) }}</p>
  265.                 {% for Order in pagination %}
  266.                     <div class=\"ec-historyRole\">
  267.                         <div class=\"ec-historyRole__contents\">
  268.                             <div class=\"ec-historyRole__header\">
  269.                                 <div class=\"ec-historyListHeader\">
  270.                                     <p class=\"ec-historyListHeader__date\">{{ Order.order_date|date_sec }}</p>
  271.                                     <dl class=\"ec-definitions\">
  272.                                         <dt>{{ 'ご注文番号'|trans }}</dt>
  273.                                         <dd>{{ Order.order_no }}</dd>
  274.                                     </dl>
  275.                                     {% if (BaseInfo.option_mypage_order_status_display) %}
  276.                                         <dl class=\"ec-definitions\">
  277.                                             <dt>{{ 'ご注文状況'|trans }}</dt>
  278.                                             <dd>{{ Order.CustomerOrderStatus }}</dd>
  279.                                         </dl>
  280.                                     {% endif %}
  281.                                     <p class=\"ec-historyListHeader__action\"><a class=\"ec-inlineBtn\"
  282.                                                                                href=\"{{ url('mypage_history', {'order_no': Order.order_no}) }}\">{{ '詳細を見る'|trans }}</a>
  283.                                     </p>
  284.                                 </div>
  285.                             </div>
  286.                             <div class=\"ec-historyRole__detail\">
  287.                                 {% for OrderItem in Order.MergedProductOrderItems %}
  288.                                     <div class=\"ec-imageGrid\">
  289.                                         <div class=\"ec-imageGrid__img\">
  290.                                             {% if OrderItem.Product is null %}
  291.                                                 <img src=\"{{ asset(''|no_image_product, 'save_image') }}\"/>
  292.                                             {% else %}
  293.                                                 <img src=\"{{ asset(OrderItem.Product.MainListImage|no_image_product, 'save_image') }}\">
  294.                                             {% endif %}
  295.                                         </div>
  296.                                         <div class=\"ec-imageGrid__content\">
  297.                                             <p class=\"ec-historyRole__detailTitle\">{{ OrderItem.product_name }}</p>
  298.                                             {% if OrderItem.class_category_name1 is not empty %}
  299.                                                 {{ OrderItem.class_category_name1 }}
  300.                                             {% endif %}
  301.                                             {% if OrderItem.class_category_name2 is not empty %}
  302.                                                 / {{ OrderItem.class_category_name2 }}
  303.                                             {% endif %}
  304.                                             <p class=\"ec-historyRole__detailPrice\">{{ OrderItem.price_inc_tax|price }}
  305.                                                 × {{ OrderItem.quantity }}</p>
  306.                                         </div>
  307.                                     </div>
  308.                                 {% endfor %}
  309.                             </div>
  310.                         </div>
  311.                     </div>
  312.                 {% endfor %}
  313.                 <div class=\"ec-pagerRole\">
  314.                     {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  315.                 </div>
  316.             {% else %}
  317.                 <p class=\"ec-para-normal\">{{ 'ご注文履歴はありません。'|trans }}</p>
  318.             {% endif %}
  319.         </div>
  320.     </div>
  321. {% endblock %}
  322. ""Mypage/index.twig""/home/xs935478/flap-shop.com/public_html/app/template/flapshop/Mypage/index.twig");
  323.     }
  324. }