<?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;
/* Item/NewCartArea/cart_matrix.twig */
class __TwigTemplate_b386441d8f9b8bbe64c96decb1d77a9b 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 = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Item/NewCartArea/cart_matrix.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Item/NewCartArea/cart_matrix.twig"));
// line 1
echo "<style>
.gray {
background: #dddddd;
}
</style>
";
// line 6
$context["formId"] = ("form-" . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["loop"]) || array_key_exists("loop", $context) ? $context["loop"] : (function () { throw new RuntimeError('Variable "loop" does not exist.', 6, $this->source); })()), "index0", [], "any", false, false, true, 6), 6, $this->source));
// line 7
$context["anchor"] = ("goods-" . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 7, $this->source); })()), "goods", [], "any", false, false, true, 7), "goodsId", [], "any", false, false, true, 7), 7, $this->source));
// line 8
if ((isset($context["parent"]) || array_key_exists("parent", $context) ? $context["parent"] : (function () { throw new RuntimeError('Variable "parent" does not exist.', 8, $this->source); })())) {
// line 9
echo "<input type=\"hidden\" name=\"returnUrl\" value=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("item/detail", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["parent"]) || array_key_exists("parent", $context) ? $context["parent"] : (function () { throw new RuntimeError('Variable "parent" does not exist.', 9, $this->source); })()), "goods", [], "any", false, false, true, 9), "itemId", [], "any", false, false, true, 9)]), "html", null, true);
echo "#";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["anchor"]) || array_key_exists("anchor", $context) ? $context["anchor"] : (function () { throw new RuntimeError('Variable "anchor" does not exist.', 9, $this->source); })()), 9, $this->source), "html", null, true);
echo "\">
";
}
// line 11
echo "<div class=\"anchor-wrapper\">
<a class=\"anchor\" id=\"";
// line 13
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["anchor"]) || array_key_exists("anchor", $context) ? $context["anchor"] : (function () { throw new RuntimeError('Variable "anchor" does not exist.', 13, $this->source); })()), 13, $this->source), "html", null, true);
echo "\"></a>
<div class=\"new-cart-area\">
";
// line 17
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["NewUI"]) || array_key_exists("NewUI", $context) ? $context["NewUI"] : (function () { throw new RuntimeError('Variable "NewUI" does not exist.', 17, $this->source); })()), "ColorSelector", [], "any", false, false, true, 17), "Enabled", [], "any", false, false, true, 17)) {
// line 18
echo " <div class=\"col1\">
<div class=\"current-sku-info\">
<div class=\"current-color\">
<div class=\"image-holder\">
<img class=\"current-color-img\" src=\"\">
</div>
<div class=\"tile-name\"></div>
<div class=\"title\">選択中のカラー</div>
</div>
<div class=\"goods-label-list\">
";
// line 28
echo $this->extensions['Customize\Twig\Extension\CustomExtension']->renderGoodsLabelList($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 28, $this->source); })()), "goods", [], "any", false, false, true, 28), 28, $this->source));
echo "
</div>
</div>
</div>
";
}
// line 33
echo "
<div class=\"col2\">
<div class=\"select-sku-panel\">
";
// line 38
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["NewUI"]) || array_key_exists("NewUI", $context) ? $context["NewUI"] : (function () { throw new RuntimeError('Variable "NewUI" does not exist.', 38, $this->source); })()), "ColorSelector", [], "any", false, false, true, 38), "Enabled", [], "any", false, false, true, 38)) {
// line 39
echo " <div class=\"select-color-panel\">
";
// line 40
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["NewUI"]) || array_key_exists("NewUI", $context) ? $context["NewUI"] : (function () { throw new RuntimeError('Variable "NewUI" does not exist.', 40, $this->source); })()), "ColorSelector", [], "any", false, false, true, 40), "ShowCaption", [], "any", false, false, true, 40)) {
// line 41
echo " <div class=\"title required\">カラーを選択</div>
";
}
// line 43
echo " <div class=\"horizontal-menu color-selector\">
";
// line 44
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 44, $this->source); })()), "colorList", [], "any", false, false, true, 44));
foreach ($context['_seq'] as $context["index"] => $context["color"]) {
// line 45
echo "
";
// line 46
if ( !twig_get_attribute($this->env, $this->source, $context["color"], "isHidden", [], "any", false, false, true, 46)) {
// line 47
echo " <div class=\"menu-item\">
<div class=\"color-tile";
// line 48
if ((($context["index"] == "main") || 0)) {
echo " selected";
}
echo "\" data-gcl-id=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["color"], "gclId", [], "any", false, false, true, 48), 48, $this->source), "html", null, true);
echo "\">
<div class=\"image-holder";
// line 49
if (twig_get_attribute($this->env, $this->source, $context["color"], "isSokujitsuHassou", [], "any", false, false, true, 49)) {
echo " sokujitsu-hassou";
}
echo "\">
";
// line 50
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["color"], "itemSashikomiImage", [], "any", false, false, true, 50))) {
// line 51
echo " <img src=\"https://img0.land-mark.biz/ut_img/";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["color"], "itemSashikomiImage", [], "any", false, false, true, 51), "path", [], "any", false, false, true, 51), 51, $this->source), "html", null, true);
echo "\">
";
} elseif ( !twig_test_empty(twig_get_attribute($this->env, $this->source, // line 52
(isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 52, $this->source); })()), "itemHiraokiImage", [], "any", false, false, true, 52))) {
// line 53
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 53, $this->source); })()), "itemHiraokiImage", [], "any", false, false, true, 53), "path", [], "any", false, false, true, 53), 53, $this->source), "html", null, true);
echo "\">
";
}
// line 55
echo " </div>
<div class=\"tile-name\">";
// line 56
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["color"], "colorName", [], "any", false, false, true, 56), 56, $this->source), "html", null, true);
echo "(";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["color"], "janShiireColor", [], "any", false, false, true, 56), 56, $this->source), "html", null, true);
echo ")</div>
</div>
</div>
";
}
// line 60
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['index'], $context['color'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 62
echo " </div>
</div>
";
}
// line 65
echo "
";
// line 66
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["NewUI"]) || array_key_exists("NewUI", $context) ? $context["NewUI"] : (function () { throw new RuntimeError('Variable "NewUI" does not exist.', 66, $this->source); })()), "SizeSelector", [], "any", false, false, true, 66), "Enabled", [], "any", false, false, true, 66)) {
// line 67
echo " <div class=\"select-size-panel\">
";
// line 68
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["NewUI"]) || array_key_exists("NewUI", $context) ? $context["NewUI"] : (function () { throw new RuntimeError('Variable "NewUI" does not exist.', 68, $this->source); })()), "SizeSelector", [], "any", false, false, true, 68), "ShowCaption", [], "any", false, false, true, 68)) {
// line 69
echo " <div class=\"title required\">サイズ・数量を選択</div>
";
}
// line 71
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 71, $this->source); })()), "goods", [], "any", false, false, true, 71), "goodsColorList", [], "any", false, false, true, 71));
foreach ($context['_seq'] as $context["j"] => $context["color"]) {
// line 72
echo " <div class=\"size-selector";
if (($context["j"] == 0)) {
echo " active";
}
echo "\" data-gcl-id=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["color"], "gclId", [], "any", false, false, true, 72), 72, $this->source), "html", null, true);
echo "\">
<table>
<colgroup>
<col class=\"size\" />
<col class=\"price\" />
<col class=\"quantity\" />
<col class=\"stock\" />
</colgroup>
<thead>
<tr class=\"head\">
<th>サイズ</th>
<th>販売価格(税込)</th>
<th>数量</th>
<th>在庫状況</th>
</tr>
</thead>
<tbody>
";
// line 89
if (twig_test_empty((isset($context["visibleSizes"]) || array_key_exists("visibleSizes", $context) ? $context["visibleSizes"] : (function () { throw new RuntimeError('Variable "visibleSizes" does not exist.', 89, $this->source); })()))) {
echo "
";
// line 90
$context["visibleSizes"] = twig_array_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 90, $this->source); })()), "sizeList", [], "any", false, false, true, 90), 90, $this->source), function ($__size__) use ($context, $macros) { $context["size"] = $__size__; return !twig_get_attribute($this->env, $this->source, (isset($context["size"]) || array_key_exists("size", $context) ? $context["size"] : (function () { throw new RuntimeError('Variable "size" does not exist.', 90, $this->source); })()), "hidden", [], "any", false, false, true, 90); });
// line 91
echo " ";
}
// line 92
echo " ";
$context["indexLoop"] = 0;
// line 93
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["visibleSizes"]) || array_key_exists("visibleSizes", $context) ? $context["visibleSizes"] : (function () { throw new RuntimeError('Variable "visibleSizes" does not exist.', 93, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["size"]) {
// line 94
echo " ";
if (twig_test_empty((isset($context["skuMap"]) || array_key_exists("skuMap", $context) ? $context["skuMap"] : (function () { throw new RuntimeError('Variable "skuMap" does not exist.', 94, $this->source); })()))) {
// line 95
echo " ";
$context["sku"] = twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 95, $this->source); })()), "getSkuByIdentifiers", [0 => twig_get_attribute($this->env, $this->source, $context["color"], "gclId", [], "any", false, false, true, 95), 1 => twig_get_attribute($this->env, $this->source, $context["size"], "gpId", [], "any", false, false, true, 95), 2 => (isset($context["indexLoop"]) || array_key_exists("indexLoop", $context) ? $context["indexLoop"] : (function () { throw new RuntimeError('Variable "indexLoop" does not exist.', 95, $this->source); })())], "method", false, false, true, 95);
// line 96
echo " ";
} else {
// line 97
echo " ";
$context["sku"] = (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["skuMap"] ?? null), twig_get_attribute($this->env, $this->source, $context["color"], "gclId", [], "any", false, false, true, 97), [], "array", false, true, true, 97), twig_get_attribute($this->env, $this->source, $context["size"], "gpId", [], "any", false, false, true, 97), [], "array", true, true, true, 97) && !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["skuMap"] ?? null), twig_get_attribute($this->env, $this->source, $context["color"], "gclId", [], "any", false, false, true, 97), [], "array", false, true, true, 97), twig_get_attribute($this->env, $this->source, $context["size"], "gpId", [], "any", false, false, true, 97), [], "array", false, false, true, 97)))) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["skuMap"] ?? null), twig_get_attribute($this->env, $this->source, $context["color"], "gclId", [], "any", false, false, true, 97), [], "array", false, true, true, 97), twig_get_attribute($this->env, $this->source, $context["size"], "gpId", [], "any", false, false, true, 97), [], "array", false, false, true, 97)) : (null));
// line 98
echo " ";
}
// line 99
echo " ";
$context["indexLoop"] = ((isset($context["indexLoop"]) || array_key_exists("indexLoop", $context) ? $context["indexLoop"] : (function () { throw new RuntimeError('Variable "indexLoop" does not exist.', 99, $this->source); })()) + 1);
// line 100
echo " ";
if ( !twig_test_empty((isset($context["sku"]) || array_key_exists("sku", $context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.', 100, $this->source); })()))) {
// line 101
echo " <tr>
<td class=\"size\">
<span class=\"size_name";
// line 103
if (twig_get_attribute($this->env, $this->source, (isset($context["sku"]) || array_key_exists("sku", $context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.', 103, $this->source); })()), "isSokujitsuHassouAvailable", [], "any", false, false, true, 103)) {
echo " sokujitsu";
}
echo "\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["size"], "sizeName", [], "any", false, false, true, 103), 103, $this->source), "html", null, true);
echo "</span>
</td>
<td class=\"price\"><span class=\"price\">";
// line 105
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\ServiceExtension']->GetLmPrice($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["size"], "price", [], "any", false, false, true, 105), 105, $this->source)), "html", null, true);
echo "(税込)</span></td>
";
// line 106
$context["gray"] = twig_get_attribute($this->env, $this->source, (isset($context["sku"]) || array_key_exists("sku", $context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.', 106, $this->source); })()), "noDisp", [], "any", false, false, true, 106);
// line 107
echo " <td class=\"quantity\">
";
// line 108
if ($this->extensions['Customize\Twig\Extension\ServiceExtension']->isMobile()) {
// line 109
echo " <select name=\"product_matrix[";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["sku"]) || array_key_exists("sku", $context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.', 109, $this->source); })()), "janId", [], "any", false, false, true, 109), 109, $this->source), "html", null, true);
echo "]\" class=\"kazu";
if ((twig_get_attribute($this->env, $this->source, (isset($context["sku"]) || array_key_exists("sku", $context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.', 109, $this->source); })()), "backOrder", [], "any", false, false, true, 109) == twig_constant("\\Lm\\Entity\\Sku::BACK_ORDER_RESERVATION"))) {
echo " reservation";
}
echo "\"";
if ((((twig_get_attribute($this->env, $this->source, (isset($context["sku"]) || array_key_exists("sku", $context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.', 109, $this->source); })()), "backOrder", [], "any", false, false, true, 109) != twig_constant("\\Lm\\Entity\\Sku::BACK_ORDER_RESERVATION")) && (twig_get_attribute($this->env, $this->source, (isset($context["sku"]) || array_key_exists("sku", $context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.', 109, $this->source); })()), "stockAvailability", [], "any", false, false, true, 109) == twig_constant("\\Lm\\Entity\\Sku::STOCK_AVL_OUT_OF_STOCK"))) || (isset($context["gray"]) || array_key_exists("gray", $context) ? $context["gray"] : (function () { throw new RuntimeError('Variable "gray" does not exist.', 109, $this->source); })()))) {
echo " disabled";
}
echo ">
";
// line 110
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(0, 100));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 111
echo " <option value=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["i"], 111, $this->source), "html", null, true);
echo "\">";
if (($context["i"] == 0)) {
echo "数量";
} else {
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["i"], 111, $this->source), "html", null, true);
}
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 113
echo " </select>
";
} else {
// line 115
echo " <input type=\"text\" name=\"product_matrix[";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["sku"]) || array_key_exists("sku", $context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.', 115, $this->source); })()), "janId", [], "any", false, false, true, 115), 115, $this->source), "html", null, true);
echo "]\" class=\"kazu";
if ((twig_get_attribute($this->env, $this->source, (isset($context["sku"]) || array_key_exists("sku", $context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.', 115, $this->source); })()), "backOrder", [], "any", false, false, true, 115) == twig_constant("\\Lm\\Entity\\Sku::BACK_ORDER_RESERVATION"))) {
echo " reservation";
}
echo "\"";
if (((twig_get_attribute($this->env, $this->source, (isset($context["sku"]) || array_key_exists("sku", $context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.', 115, $this->source); })()), "backOrder", [], "any", false, false, true, 115) != twig_constant("\\Lm\\Entity\\Sku::BACK_ORDER_RESERVATION")) && (twig_get_attribute($this->env, $this->source, (isset($context["sku"]) || array_key_exists("sku", $context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.', 115, $this->source); })()), "stockAvailability", [], "any", false, false, true, 115) == twig_constant("\\Lm\\Entity\\Sku::STOCK_AVL_OUT_OF_STOCK")))) {
echo " disabled";
}
echo " min=\"0\" value=\"0\">
<div class=\"btn-up-down\">";
// line 117
echo "<span class=\"btn-up\">▲</span>";
// line 118
echo "<span class=\"btn-down\">▼</span>";
// line 119
echo "</div>
";
}
// line 121
echo " </td>
<td class=\"stock";
// line 122
if ((array_key_exists("gray", $context) && (isset($context["gray"]) || array_key_exists("gray", $context) ? $context["gray"] : (function () { throw new RuntimeError('Variable "gray" does not exist.', 122, $this->source); })()))) {
echo " gray";
}
echo "\">
<span class=\"zaiko\">
";
// line 124
if ((twig_get_attribute($this->env, $this->source, (isset($context["sku"]) || array_key_exists("sku", $context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.', 124, $this->source); })()), "backOrder", [], "any", false, false, true, 124) > twig_constant("\\Lm\\Entity\\Sku::BACK_ORDER_UNAVAILABLE"))) {
// line 125
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["sku"]) || array_key_exists("sku", $context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.', 125, $this->source); })()), "stockAvailability", [], "any", false, false, true, 125) != twig_constant("\\Lm\\Entity\\Sku::STOCK_AVL_OUT_OF_STOCK"))) {
// line 126
echo " ";
if ( !(isset($context["gray"]) || array_key_exists("gray", $context) ? $context["gray"] : (function () { throw new RuntimeError('Variable "gray" does not exist.', 126, $this->source); })())) {
// line 127
echo " <span class=\"zaiko_number";
if ((twig_get_attribute($this->env, $this->source, (isset($context["sku"]) || array_key_exists("sku", $context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.', 127, $this->source); })()), "stockAvailability", [], "any", false, false, true, 127) == twig_constant("\\Lm\\Entity\\Sku::STOCK_AVL_LOW_STOCK"))) {
echo " low-stock";
}
echo "\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["sku"]) || array_key_exists("sku", $context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.', 127, $this->source); })()), "stockTotal", [], "any", false, false, true, 127), 127, $this->source), "html", null, true);
echo "</span>
";
}
// line 129
echo " ";
} else {
// line 130
echo " ";
if ( !(isset($context["gray"]) || array_key_exists("gray", $context) ? $context["gray"] : (function () { throw new RuntimeError('Variable "gray" does not exist.', 130, $this->source); })())) {
// line 131
echo " 在庫切れ
";
}
// line 133
echo " ";
}
// line 134
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["sku"]) || array_key_exists("sku", $context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.', 134, $this->source); })()), "sokujitsuHassouAvailable", [], "any", false, false, true, 134) && !(isset($context["gray"]) || array_key_exists("gray", $context) ? $context["gray"] : (function () { throw new RuntimeError('Variable "gray" does not exist.', 134, $this->source); })()))) {
// line 135
echo " ";
// line 136
echo " <span class=\"zaiko_number sokujitsu\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["sku"]) || array_key_exists("sku", $context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.', 136, $this->source); })()), "stockSokujitsu", [], "any", false, false, true, 136), 136, $this->source), "html", null, true);
echo "</span>
";
}
// line 138
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["sku"]) || array_key_exists("sku", $context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.', 138, $this->source); })()), "backOrder", [], "any", false, false, true, 138) > twig_constant("\\Lm\\Entity\\Sku::BACK_ORDER_UNAVAILABLE"))) {
// line 139
echo " <div class=\"nyuka-yotei\">
入荷予定日<br>
";
// line 141
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\ServiceExtension']->formatStockArrivalDate(((twig_get_attribute($this->env, $this->source, (isset($context["sku"]) || array_key_exists("sku", $context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.', 141, $this->source); })()), "bichikuNyukaDate", [], "any", false, false, true, 141)) ? (twig_get_attribute($this->env, $this->source, (isset($context["sku"]) || array_key_exists("sku", $context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.', 141, $this->source); })()), "bichikuNyukaDate", [], "any", false, false, true, 141)) : (twig_get_attribute($this->env, $this->source, (isset($context["sku"]) || array_key_exists("sku", $context) ? $context["sku"] : (function () { throw new RuntimeError('Variable "sku" does not exist.', 141, $this->source); })()), "nyukaDate", [], "any", false, false, true, 141)))), "html", null, true);
echo "
</div>
";
} else {
// line 144
echo " ";
}
// line 145
echo " </span>
</td>
</tr>
";
}
// line 149
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['size'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 150
echo " </tbody>
</table>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['j'], $context['color'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 154
echo " </div>
";
}
// line 156
echo "
</div>
";
// line 159
if ((isset($context["parent"]) || array_key_exists("parent", $context) ? $context["parent"] : (function () { throw new RuntimeError('Variable "parent" does not exist.', 159, $this->source); })())) {
// line 160
echo " <div>
<button type=\"button\" class=\"btn-v2 forward btn_next_item\" alt=\"※クリックすると画面が下に移動します\">次のセット商品を選ぶ</button>
</div>
";
}
// line 166
echo "
</div>
</div>
</div>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "Item/NewCartArea/cart_matrix.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 456 => 166, 448 => 160, 446 => 159, 441 => 156, 437 => 154, 428 => 150, 422 => 149, 416 => 145, 413 => 144, 407 => 141, 403 => 139, 400 => 138, 394 => 136, 392 => 135, 389 => 134, 386 => 133, 382 => 131, 379 => 130, 376 => 129, 366 => 127, 363 => 126, 360 => 125, 358 => 124, 351 => 122, 348 => 121, 344 => 119, 342 => 118, 340 => 117, 327 => 115, 323 => 113, 308 => 111, 304 => 110, 291 => 109, 289 => 108, 286 => 107, 284 => 106, 280 => 105, 271 => 103, 267 => 101, 264 => 100, 261 => 99, 258 => 98, 255 => 97, 252 => 96, 249 => 95, 246 => 94, 241 => 93, 238 => 92, 235 => 91, 233 => 90, 229 => 89, 204 => 72, 199 => 71, 195 => 69, 193 => 68, 190 => 67, 188 => 66, 185 => 65, 180 => 62, 173 => 60, 164 => 56, 161 => 55, 155 => 53, 153 => 52, 148 => 51, 146 => 50, 140 => 49, 132 => 48, 129 => 47, 127 => 46, 124 => 45, 120 => 44, 117 => 43, 113 => 41, 111 => 40, 108 => 39, 106 => 38, 99 => 33, 91 => 28, 79 => 18, 77 => 17, 70 => 13, 66 => 11, 58 => 9, 56 => 8, 54 => 7, 52 => 6, 45 => 1,);
}
public function getSourceContext()
{
return new Source("<style>
.gray {
background: #dddddd;
}
</style>
{% set formId = \"form-#{loop.index0}\" %}
{% set anchor = \"goods-#{item.goods.goodsId}\" %}
{% if parent %}
<input type=\"hidden\" name=\"returnUrl\" value=\"{{ url('item/detail', { 'id': parent.goods.itemId }) }}#{{ anchor }}\">
{% endif %}
<div class=\"anchor-wrapper\">
<a class=\"anchor\" id=\"{{ anchor }}\"></a>
<div class=\"new-cart-area\">
{% if NewUI.ColorSelector.Enabled %}
<div class=\"col1\">
<div class=\"current-sku-info\">
<div class=\"current-color\">
<div class=\"image-holder\">
<img class=\"current-color-img\" src=\"\">
</div>
<div class=\"tile-name\"></div>
<div class=\"title\">選択中のカラー</div>
</div>
<div class=\"goods-label-list\">
{{ showGoodsLabelList(item.goods) | raw }}
</div>
</div>
</div>
{% endif %}
<div class=\"col2\">
<div class=\"select-sku-panel\">
{% if NewUI.ColorSelector.Enabled %}
<div class=\"select-color-panel\">
{% if NewUI.ColorSelector.ShowCaption %}
<div class=\"title required\">カラーを選択</div>
{% endif %}
<div class=\"horizontal-menu color-selector\">
{% for index, color in item.colorList %}
{% if not color.isHidden %}
<div class=\"menu-item\">
<div class=\"color-tile{% if index == \"main\" or 0 %} selected{% endif %}\" data-gcl-id=\"{{ color.gclId }}\">
<div class=\"image-holder{% if color.isSokujitsuHassou %} sokujitsu-hassou{% endif %}\">
{% if color.itemSashikomiImage is not empty %}
<img src=\"https://img0.land-mark.biz/ut_img/{{ color.itemSashikomiImage.path }}\">
{% elseif item.itemHiraokiImage is not empty %}
<img src=\"{{ item.itemHiraokiImage.path }}\">
{% endif %}
</div>
<div class=\"tile-name\">{{ color.colorName }}({{ color.janShiireColor }})</div>
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>
{% endif %}
{% if NewUI.SizeSelector.Enabled %}
<div class=\"select-size-panel\">
{% if NewUI.SizeSelector.ShowCaption %}
<div class=\"title required\">サイズ・数量を選択</div>
{% endif %}
{% for j, color in item.goods.goodsColorList %}
<div class=\"size-selector{% if j == 0 %} active{% endif %}\" data-gcl-id=\"{{ color.gclId }}\">
<table>
<colgroup>
<col class=\"size\" />
<col class=\"price\" />
<col class=\"quantity\" />
<col class=\"stock\" />
</colgroup>
<thead>
<tr class=\"head\">
<th>サイズ</th>
<th>販売価格(税込)</th>
<th>数量</th>
<th>在庫状況</th>
</tr>
</thead>
<tbody>
{% if visibleSizes is empty %}
{% set visibleSizes = item.sizeList|filter(size => not size.hidden) %}
{% endif %}
{% set indexLoop = 0 %}
{% for size in visibleSizes %}
{% if skuMap is empty %}
{% set sku = item.getSkuByIdentifiers(color.gclId, size.gpId , indexLoop) %}
{% else %}
{% set sku = skuMap[color.gclId][size.gpId] ?? null %}
{% endif %}
{% set indexLoop = indexLoop + 1 %}
{% if sku is not empty %}
<tr>
<td class=\"size\">
<span class=\"size_name{% if sku.isSokujitsuHassouAvailable %} sokujitsu{% endif %}\">{{ size.sizeName }}</span>
</td>
<td class=\"price\"><span class=\"price\">{{ size.price|LmPrice }}(税込)</span></td>
{% set gray = sku.noDisp %}
<td class=\"quantity\">
{% if isMobile() %}
<select name=\"product_matrix[{{ sku.janId }}]\" class=\"kazu{% if sku.backOrder == constant('\\\\Lm\\\\Entity\\\\Sku::BACK_ORDER_RESERVATION') %} reservation{% endif %}\"{% if (sku.backOrder != constant('\\\\Lm\\\\Entity\\\\Sku::BACK_ORDER_RESERVATION') and sku.stockAvailability == constant('\\\\Lm\\\\Entity\\\\Sku::STOCK_AVL_OUT_OF_STOCK')) or gray %} disabled{% endif %}>
{% for i in range(0, 100) %}
<option value=\"{{ i }}\">{% if i == 0 %}数量{% else %}{{ i }}{% endif %}</option>
{% endfor %}
</select>
{% else %}
<input type=\"text\" name=\"product_matrix[{{ sku.janId }}]\" class=\"kazu{% if sku.backOrder == constant('\\\\Lm\\\\Entity\\\\Sku::BACK_ORDER_RESERVATION') %} reservation{% endif %}\"{% if (sku.backOrder != constant('\\\\Lm\\\\Entity\\\\Sku::BACK_ORDER_RESERVATION') and sku.stockAvailability == constant('\\\\Lm\\\\Entity\\\\Sku::STOCK_AVL_OUT_OF_STOCK')) %} disabled{% endif %} min=\"0\" value=\"0\">
<div class=\"btn-up-down\">{#
#}<span class=\"btn-up\">▲</span>{#
#}<span class=\"btn-down\">▼</span>{#
#}</div>
{% endif %}
</td>
<td class=\"stock{% if gray is defined and gray %} gray{% endif %}\">
<span class=\"zaiko\">
{% if sku.backOrder > constant('\\\\Lm\\\\Entity\\\\Sku::BACK_ORDER_UNAVAILABLE') %}
{% elseif sku.stockAvailability != constant('\\\\Lm\\\\Entity\\\\Sku::STOCK_AVL_OUT_OF_STOCK') %}
{% if not gray %}
<span class=\"zaiko_number{% if sku.stockAvailability == constant('\\\\Lm\\\\Entity\\\\Sku::STOCK_AVL_LOW_STOCK') %} low-stock{% endif %}\">{{ sku.stockTotal }}</span>
{% endif %}
{% else %}
{% if not gray %}
在庫切れ
{% endif %}
{% endif %}
{% if sku.sokujitsuHassouAvailable and not gray %}
{# dump({ \"sku.stockBichiku\": sku.stockBichiku, \"sku.isBichikuReady\": sku.isBichikuReady }) #}
<span class=\"zaiko_number sokujitsu\">{{ sku.stockSokujitsu }}</span>
{% endif %}
{% if sku.backOrder > constant('\\\\Lm\\\\Entity\\\\Sku::BACK_ORDER_UNAVAILABLE') %}
<div class=\"nyuka-yotei\">
入荷予定日<br>
{{ formatStockArrivalDate(sku.bichikuNyukaDate ?: sku.nyukaDate) }}
</div>
{% else %}
{% endif %}
</span>
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
</div>
{% endfor %}
</div>
{% endif %}
</div>
{% if parent %}
<div>
<button type=\"button\" class=\"btn-v2 forward btn_next_item\" alt=\"※クリックすると画面が下に移動します\">次のセット商品を選ぶ</button>
</div>
{% endif %}
</div>
</div>
</div>", "Item/NewCartArea/cart_matrix.twig", "/var/www/html/app/template/default/Item/NewCartArea/cart_matrix.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 6, "if" => 8, "for" => 44);
static $filters = array("escape" => 9, "raw" => 28, "filter" => 90, "LmPrice" => 105);
static $functions = array("url" => 9, "showGoodsLabelList" => 28, "isMobile" => 108, "constant" => 109, "range" => 110, "formatStockArrivalDate" => 141);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for'],
['escape', 'raw', 'filter', 'LmPrice'],
['url', 'showGoodsLabelList', 'isMobile', 'constant', 'range', 'formatStockArrivalDate']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}