Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.141.29.119
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
var /
cache /
dev /
twig /
55 /
Delete
Unzip
Name
Size
Permission
Date
Action
559de927dafda85d95931eb802e4265146708818b23fa8c1d78935c55916a272.php
158.25
KB
-rw-rw-rw-
2023-08-29 11:45
Save
Rename
<?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; /* analytics/index.html.twig */ class __TwigTemplate_402fc1e30a72e9812accfd8aa1b739b80c23468ea250a96a4105aad96a5c5dc7 extends Template { private $source; private $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $this->blocks = [ 'content' => [$this, 'block_content'], 'javascript_bottom' => [$this, 'block_javascript_bottom'], ]; } protected function doGetParent(array $context) { // line 1 return "layouts/main-layout.html.twig"; } protected function doDisplay(array $context, array $blocks = []) { $macros = $this->macros; $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"]; $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "analytics/index.html.twig")); $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "analytics/index.html.twig")); $this->parent = $this->loadTemplate("layouts/main-layout.html.twig", "analytics/index.html.twig", 1); $this->parent->display($context, array_merge($this->blocks, $blocks)); $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof); $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); } // line 3 public function block_content($context, array $blocks = []) { $macros = $this->macros; $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"]; $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content")); $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content")); // line 4 echo " <!-- Content Wrapper. Contains page content --> <div class=\"content-wrapper\" style=\"margin-left:0 !important;\"> <!-- Content Header (Page header) --> <section class=\"content-header\"> <div class=\"container-fluid\"> <div class=\"row mb-2\"> <div class=\"col-sm-6\"> <h1>WB аналитика</h1> </div> <div class=\"col-sm-6\"> <ol class=\"breadcrumb float-sm-right\"> <li class=\"breadcrumb-item\"><a href=\"/lk/analytics\">Главная страница</a></li> <li class=\"breadcrumb-item active\">WB</li> </ol> </div> </div> </div><!-- /.container-fluid --> </section> <!-- Main content --> <section class=\"content\"> <div class=\"container-fluid\"> <div class=\"row\"> <div class=\"col-lg-3 col-6\"> <div class=\"small-box bg-warning gray-light\"> <div class=\"inner\"><h3 style=\"font-size: 1.5rem;\">Наличие на складах</h3></div> <div class=\"card-footer\">"; // line 32 echo twig_escape_filter($this->env, (isset($context["sum_amount"]) || array_key_exists("sum_amount", $context) ? $context["sum_amount"] : (function () { throw new RuntimeError('Variable "sum_amount" does not exist.', 32, $this->source); })()), "html", null, true); echo " шт.</div> </div> </div> <div class=\"col-lg-3 col-6\"> <div class=\"small-box bg-warning green-light\"> <div class=\"inner\"><h3 style=\"font-size: 1.5rem;\">Денег в товарах</h3></div> <div class=\"card-footer\">"; // line 38 echo twig_escape_filter($this->env, (isset($context["all_money_in_good"]) || array_key_exists("all_money_in_good", $context) ? $context["all_money_in_good"] : (function () { throw new RuntimeError('Variable "all_money_in_good" does not exist.', 38, $this->source); })()), "html", null, true); echo " ₽</div> </div> </div> <div class=\"col-lg-3 col-6\"> <div class=\"small-box bg-warning yellow-light\"> <div class=\"inner\"><h3 style=\"font-size: 1.5rem;\">Потенциальная чистая прибыль</h3></div> <div class=\"card-footer\">"; // line 44 echo twig_escape_filter($this->env, (isset($context["sum_free_fee_all"]) || array_key_exists("sum_free_fee_all", $context) ? $context["sum_free_fee_all"] : (function () { throw new RuntimeError('Variable "sum_free_fee_all" does not exist.', 44, $this->source); })()), "html", null, true); echo " ₽</div> </div> </div> <div class=\"col-lg-3 col-6\"> <div class=\"small-box bg-warning red-light\"> <div class=\"inner\"><h3 style=\"font-size: 1.5rem;\">Чистая прибыль</h3></div> <div class=\"icon\"><i class=\"ion ion-alert-circle\"></i></div> <div class=\"card-footer\">"; // line 51 echo twig_escape_filter($this->env, (isset($context["sum_free_fee_from_all"]) || array_key_exists("sum_free_fee_from_all", $context) ? $context["sum_free_fee_from_all"] : (function () { throw new RuntimeError('Variable "sum_free_fee_from_all" does not exist.', 51, $this->source); })()), "html", null, true); echo " ₽</div> </div> </div> </div> <div class=\"row\"> <div class=\"col-md-12\"> <div class=\"card\"> <div class=\"card-body\"> <form method=\"get\" action=\"\" id=\"filter-form\"> <div class=\"row\"> <div class=\"col-md-2\"> Найдено товаров: <strong>"; // line 63 echo twig_escape_filter($this->env, (isset($context["items"]) || array_key_exists("items", $context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.', 63, $this->source); })()), "html", null, true); echo "</strong><br> Данные: <strong>с "; // line 64 echo twig_escape_filter($this->env, (isset($context["data_from"]) || array_key_exists("data_from", $context) ? $context["data_from"] : (function () { throw new RuntimeError('Variable "data_from" does not exist.', 64, $this->source); })()), "html", null, true); echo " по "; echo twig_escape_filter($this->env, (isset($context["data_to"]) || array_key_exists("data_to", $context) ? $context["data_to"] : (function () { throw new RuntimeError('Variable "data_to" does not exist.', 64, $this->source); })()), "html", null, true); echo "</strong> </div> <div class=\"col-md-4\"> <button type=\"button\" class=\"btn btn-primary "; // line 68 if ((0 === twig_compare((isset($context["date"]) || array_key_exists("date", $context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.', 68, $this->source); })()), "30days"))) { echo "btn-dark"; } echo "\" onclick=\"location.href='/lk/analytics?date=30days'\">30 дней</button> <button type=\"button\" class=\"btn btn-primary "; // line 69 if ((0 === twig_compare((isset($context["date"]) || array_key_exists("date", $context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.', 69, $this->source); })()), "now"))) { echo "btn-dark"; } echo "\" onclick=\"location.href='/lk/analytics?date=now'\">Сегодня</button> <button type=\"button\" class=\"btn btn-primary "; // line 70 if ((0 === twig_compare((isset($context["date"]) || array_key_exists("date", $context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.', 70, $this->source); })()), "yerstaday"))) { echo "btn-dark"; } echo "\" onclick=\"location.href='/lk/analytics?date=yerstaday'\">Вчера</button> <button type=\"button\" class=\"btn btn-primary "; // line 71 if ((0 === twig_compare((isset($context["date"]) || array_key_exists("date", $context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.', 71, $this->source); })()), "7days"))) { echo "btn-dark"; } echo "\" onclick=\"location.href='/lk/analytics?date=7days'\">7 дней</button> "; // line 73 echo " <br><label for=\"custom_date\">Задать дату:</label> <input type=\"text\" class=\"form-control mt-2\" name=\"custom_date\" id=\"custom_date\" style=\"width: 40%; display: inline-block\"> "; // line 75 echo " </div> <div class=\"col-md-2\"> Бренд <select class=\"form-control select2\" name=\"brand\" style=\"width: 100%;\" onchange=\"\$('#filter-form').submit()\"> <option value=\"\" selected=\"selected\">Все</option> "; // line 80 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable((isset($context["brands"]) || array_key_exists("brands", $context) ? $context["brands"] : (function () { throw new RuntimeError('Variable "brands" does not exist.', 80, $this->source); })())); foreach ($context['_seq'] as $context["_key"] => $context["brand"]) { // line 81 echo " <option value=\""; echo twig_escape_filter($this->env, $context["brand"], "html", null, true); echo "\" "; if ((0 === twig_compare((isset($context["current_brand"]) || array_key_exists("current_brand", $context) ? $context["current_brand"] : (function () { throw new RuntimeError('Variable "current_brand" does not exist.', 81, $this->source); })()), $context["brand"]))) { echo "selected=\"selected\""; } echo ">"; echo twig_escape_filter($this->env, $context["brand"], "html", null, true); echo "</option> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['brand'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 83 echo " </select> </div> <div class=\"col-md-2\"> Склады <select class=\"form-control select2\" name=\"warehouse\" style=\"width: 100%;\" onchange=\"\$('#filter-form').submit()\"> <option value=\"\" selected=\"selected\">Все</option> "; // line 89 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable((isset($context["warehouses"]) || array_key_exists("warehouses", $context) ? $context["warehouses"] : (function () { throw new RuntimeError('Variable "warehouses" does not exist.', 89, $this->source); })())); foreach ($context['_seq'] as $context["_key"] => $context["warehouse"]) { // line 90 echo " <option value=\""; echo twig_escape_filter($this->env, $context["warehouse"], "html", null, true); echo "\" "; if ((0 === twig_compare((isset($context["current_warehouse"]) || array_key_exists("current_warehouse", $context) ? $context["current_warehouse"] : (function () { throw new RuntimeError('Variable "current_warehouse" does not exist.', 90, $this->source); })()), $context["warehouse"]))) { echo "selected=\"selected\""; } echo ">"; echo twig_escape_filter($this->env, $context["warehouse"], "html", null, true); echo "</option> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['warehouse'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 92 echo " </select> </div> <div class=\"col-md-2 pt-4 text-right\"> <a href=\"/lk/analytics?xls=Y\" target=\"_blank\" class=\"btn btn-primary\">XLS</a> </div> </div> <div class=\"\"><a href=\"javascript:void(0)\" id=\"show-filter\">Показать фильтр</a></div> <div class=\"filter-block "; // line 99 echo twig_escape_filter($this->env, (isset($context["filter_show"]) || array_key_exists("filter_show", $context) ? $context["filter_show"] : (function () { throw new RuntimeError('Variable "filter_show" does not exist.', 99, $this->source); })()), "html", null, true); echo "\"> <div class=\"row\"> <div class=\"col-md-3\"> <div class=\"form-group row\"> <div class=\"col\"> <label for=\"our_rate\">Рейтинг:</label> <select class=\"form-control select2\" name=\"our_rate\" style=\"width: 70%;\"> <option value=\"\" selected=\"selected\">Все</option> <option value=\"A\" "; // line 107 if ((0 === twig_compare((isset($context["our_rate"]) || array_key_exists("our_rate", $context) ? $context["our_rate"] : (function () { throw new RuntimeError('Variable "our_rate" does not exist.', 107, $this->source); })()), "A"))) { echo "selected=\"selected\""; } echo ">A</option> <option value=\"A-B\" "; // line 108 if ((0 === twig_compare((isset($context["our_rate"]) || array_key_exists("our_rate", $context) ? $context["our_rate"] : (function () { throw new RuntimeError('Variable "our_rate" does not exist.', 108, $this->source); })()), "A-B"))) { echo "selected=\"selected\""; } echo ">A-B</option> <option value=\"A-C\" "; // line 109 if ((0 === twig_compare((isset($context["our_rate"]) || array_key_exists("our_rate", $context) ? $context["our_rate"] : (function () { throw new RuntimeError('Variable "our_rate" does not exist.', 109, $this->source); })()), "A-C"))) { echo "selected=\"selected\""; } echo ">A-C</option> <option value=\"B-C\" "; // line 110 if ((0 === twig_compare((isset($context["our_rate"]) || array_key_exists("our_rate", $context) ? $context["our_rate"] : (function () { throw new RuntimeError('Variable "our_rate" does not exist.', 110, $this->source); })()), "B-C"))) { echo "selected=\"selected\""; } echo ">B-C</option> <option value=\"C\" "; // line 111 if ((0 === twig_compare((isset($context["our_rate"]) || array_key_exists("our_rate", $context) ? $context["our_rate"] : (function () { throw new RuntimeError('Variable "our_rate" does not exist.', 111, $this->source); })()), "C"))) { echo "selected=\"selected\""; } echo ">C</option> </select> </div> </div> </div> <div class=\"col-md-3\"> <div class=\"form-group row\"> <div class=\"col\"> <label for=\"filter_price_from\">Наличие, от:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_quantity_from\" value=\""; // line 120 echo twig_escape_filter($this->env, (isset($context["filter_quantity_from"]) || array_key_exists("filter_quantity_from", $context) ? $context["filter_quantity_from"] : (function () { throw new RuntimeError('Variable "filter_quantity_from" does not exist.', 120, $this->source); })()), "html", null, true); echo "\"> </div> <div class=\"col\"> <label for=\"filter_price_to\">Наличие, до:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_quantity_to\" value=\""; // line 124 echo twig_escape_filter($this->env, (isset($context["filter_quantity_to"]) || array_key_exists("filter_quantity_to", $context) ? $context["filter_quantity_to"] : (function () { throw new RuntimeError('Variable "filter_quantity_to" does not exist.', 124, $this->source); })()), "html", null, true); echo "\"> </div> </div> </div> <div class=\"col-md-3\"> <div class=\"form-group row\"> <div class=\"col\"> <label for=\"filter_price_from\">Рыночная цена, от:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_price_from\" value=\""; // line 132 echo twig_escape_filter($this->env, (isset($context["filter_price_from"]) || array_key_exists("filter_price_from", $context) ? $context["filter_price_from"] : (function () { throw new RuntimeError('Variable "filter_price_from" does not exist.', 132, $this->source); })()), "html", null, true); echo "\"> </div> <div class=\"col\"> <label for=\"filter_price_to\">Рыночная цена, до:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_price_to\" value=\""; // line 136 echo twig_escape_filter($this->env, (isset($context["filter_price_to"]) || array_key_exists("filter_price_to", $context) ? $context["filter_price_to"] : (function () { throw new RuntimeError('Variable "filter_price_to" does not exist.', 136, $this->source); })()), "html", null, true); echo "\"> </div> </div> </div> <div class=\"col-md-3\"> <div class=\"form-group row green-light\"> <div class=\"col\"> <label for=\"filter_money_in_good_from\">Денег в товаре, от:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_money_in_good_from\" value=\""; // line 144 echo twig_escape_filter($this->env, (isset($context["filter_money_in_good_from"]) || array_key_exists("filter_money_in_good_from", $context) ? $context["filter_money_in_good_from"] : (function () { throw new RuntimeError('Variable "filter_money_in_good_from" does not exist.', 144, $this->source); })()), "html", null, true); echo "\"> </div> <div class=\"col\"> <label for=\"filter_money_in_good_to\">Денег в товаре, до:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_money_in_good_to\" value=\""; // line 148 echo twig_escape_filter($this->env, (isset($context["filter_money_in_good_to"]) || array_key_exists("filter_money_in_good_to", $context) ? $context["filter_money_in_good_to"] : (function () { throw new RuntimeError('Variable "filter_money_in_good_to" does not exist.', 148, $this->source); })()), "html", null, true); echo "\"> </div> </div> </div> </div> <div class=\"row\"> <div class=\"col-md-3\"> <div class=\"form-group row yellow-light\"> <div class=\"col\"> <label for=\"filter_free_fee_one_from\">ПЧП с 1 ед., от:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_free_fee_one_from\" value=\""; // line 158 echo twig_escape_filter($this->env, (isset($context["filter_free_fee_one_from"]) || array_key_exists("filter_free_fee_one_from", $context) ? $context["filter_free_fee_one_from"] : (function () { throw new RuntimeError('Variable "filter_free_fee_one_from" does not exist.', 158, $this->source); })()), "html", null, true); echo "\"> </div> <div class=\"col\"> <label for=\"filter_free_fee_one_to\">ПЧП с 1 ед., до:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_free_fee_one_to\" value=\""; // line 162 echo twig_escape_filter($this->env, (isset($context["filter_free_fee_one_to"]) || array_key_exists("filter_free_fee_one_to", $context) ? $context["filter_free_fee_one_to"] : (function () { throw new RuntimeError('Variable "filter_free_fee_one_to" does not exist.', 162, $this->source); })()), "html", null, true); echo "\"> </div> </div> </div> <div class=\"col-md-3\"> <div class=\"form-group row yellow-light\"> <div class=\"col\"> <label for=\"filter_free_fee_all_from\">ПЧП с товара, от:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_free_fee_all_from\" value=\""; // line 170 echo twig_escape_filter($this->env, (isset($context["filter_free_fee_all_from"]) || array_key_exists("filter_free_fee_all_from", $context) ? $context["filter_free_fee_all_from"] : (function () { throw new RuntimeError('Variable "filter_free_fee_all_from" does not exist.', 170, $this->source); })()), "html", null, true); echo "\"> </div> <div class=\"col\"> <label for=\"filter_free_fee_all_to\">ПЧП с товара, до:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_free_fee_all_to\" value=\""; // line 174 echo twig_escape_filter($this->env, (isset($context["filter_free_fee_all_to"]) || array_key_exists("filter_free_fee_all_to", $context) ? $context["filter_free_fee_all_to"] : (function () { throw new RuntimeError('Variable "filter_free_fee_all_to" does not exist.', 174, $this->source); })()), "html", null, true); echo "\"> </div> </div> </div> <div class=\"col-md-3\"> <div class=\"form-group row\"> <div class=\"col\"> <label for=\"filter_medium_buy_from\">Средний выкуп, от:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_medium_buy_from\" value=\""; // line 182 echo twig_escape_filter($this->env, (isset($context["filter_medium_buy_from"]) || array_key_exists("filter_medium_buy_from", $context) ? $context["filter_medium_buy_from"] : (function () { throw new RuntimeError('Variable "filter_medium_buy_from" does not exist.', 182, $this->source); })()), "html", null, true); echo "\"> </div> <div class=\"col\"> <label for=\"filter_medium_buy_to\">Средний выкуп, до:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_medium_buy_to\" value=\""; // line 186 echo twig_escape_filter($this->env, (isset($context["filter_medium_buy_to"]) || array_key_exists("filter_medium_buy_to", $context) ? $context["filter_medium_buy_to"] : (function () { throw new RuntimeError('Variable "filter_medium_buy_to" does not exist.', 186, $this->source); })()), "html", null, true); echo "\"> </div> </div> </div> <div class=\"col-md-3\"> <div class=\"form-group row\"> <div class=\"col\"> <label for=\"filter_cost_price_from\">Себестоимость, от:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_cost_price_from\" value=\""; // line 194 echo twig_escape_filter($this->env, (isset($context["filter_cost_price_from"]) || array_key_exists("filter_cost_price_from", $context) ? $context["filter_cost_price_from"] : (function () { throw new RuntimeError('Variable "filter_cost_price_from" does not exist.', 194, $this->source); })()), "html", null, true); echo "\"> </div> <div class=\"col\"> <label for=\"filter_cost_price_to\">Себестоимость, до:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_cost_price_to\" value=\""; // line 198 echo twig_escape_filter($this->env, (isset($context["filter_cost_price_to"]) || array_key_exists("filter_cost_price_to", $context) ? $context["filter_cost_price_to"] : (function () { throw new RuntimeError('Variable "filter_cost_price_to" does not exist.', 198, $this->source); })()), "html", null, true); echo "\"> </div> </div> </div> </div> <div class=\"row\"> <div class=\"col-md-3\"> <div class=\"form-group row red-light\"> <div class=\"col\"> <label for=\"filter_number_sale_from\">Выкуплено товара, от:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_number_sale_from\" value=\""; // line 208 echo twig_escape_filter($this->env, (isset($context["filter_number_sale_from"]) || array_key_exists("filter_number_sale_from", $context) ? $context["filter_number_sale_from"] : (function () { throw new RuntimeError('Variable "filter_number_sale_from" does not exist.', 208, $this->source); })()), "html", null, true); echo "\"> </div> <div class=\"col\"> <label for=\"filter_number_sale_to\">Выкуплено товара, до:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_number_sale_to\" value=\""; // line 212 echo twig_escape_filter($this->env, (isset($context["filter_number_sale_to"]) || array_key_exists("filter_number_sale_to", $context) ? $context["filter_number_sale_to"] : (function () { throw new RuntimeError('Variable "filter_number_sale_to" does not exist.', 212, $this->source); })()), "html", null, true); echo "\"> </div> </div> </div> <div class=\"col-md-3\"> <div class=\"form-group row red-light\"> <div class=\"col\"> <label for=\"filter_number_sale_price_from\">Средняя цена, от:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_number_sale_price_from\" value=\""; // line 220 echo twig_escape_filter($this->env, (isset($context["filter_number_sale_price_from"]) || array_key_exists("filter_number_sale_price_from", $context) ? $context["filter_number_sale_price_from"] : (function () { throw new RuntimeError('Variable "filter_number_sale_price_from" does not exist.', 220, $this->source); })()), "html", null, true); echo "\"> </div> <div class=\"col\"> <label for=\"filter_number_sale_price_to\">Средняя цена, до:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_number_sale_price_to\" value=\""; // line 224 echo twig_escape_filter($this->env, (isset($context["filter_number_sale_price_to"]) || array_key_exists("filter_number_sale_price_to", $context) ? $context["filter_number_sale_price_to"] : (function () { throw new RuntimeError('Variable "filter_number_sale_price_to" does not exist.', 224, $this->source); })()), "html", null, true); echo "\"> </div> </div> </div> <div class=\"col-md-3\"> <div class=\"form-group row red-light\"> <div class=\"col\"> <label for=\"filter_fee_from\">Выручка, от:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_fee_from\" value=\""; // line 232 echo twig_escape_filter($this->env, (isset($context["filter_fee_from"]) || array_key_exists("filter_fee_from", $context) ? $context["filter_fee_from"] : (function () { throw new RuntimeError('Variable "filter_fee_from" does not exist.', 232, $this->source); })()), "html", null, true); echo "\"> </div> <div class=\"col\"> <label for=\"filter_fee_to\">Выручка, до:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_fee_to\" value=\""; // line 236 echo twig_escape_filter($this->env, (isset($context["filter_fee_to"]) || array_key_exists("filter_fee_to", $context) ? $context["filter_fee_to"] : (function () { throw new RuntimeError('Variable "filter_fee_to" does not exist.', 236, $this->source); })()), "html", null, true); echo "\"> </div> </div> </div> <div class=\"col-md-3\"> <div class=\"form-group row red-light\"> <div class=\"col\"> <label for=\"filter_free_fee_from_one_from\">ЧП с 1 ед., от:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_free_fee_from_one_from\" value=\""; // line 244 echo twig_escape_filter($this->env, (isset($context["filter_free_fee_from_one_from"]) || array_key_exists("filter_free_fee_from_one_from", $context) ? $context["filter_free_fee_from_one_from"] : (function () { throw new RuntimeError('Variable "filter_free_fee_from_one_from" does not exist.', 244, $this->source); })()), "html", null, true); echo "\"> </div> <div class=\"col\"> <label for=\"filter_free_fee_from_one_to\">ЧП с 1 ед., до:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_free_fee_from_one_to\" value=\""; // line 248 echo twig_escape_filter($this->env, (isset($context["filter_free_fee_from_one_to"]) || array_key_exists("filter_free_fee_from_one_to", $context) ? $context["filter_free_fee_from_one_to"] : (function () { throw new RuntimeError('Variable "filter_free_fee_from_one_to" does not exist.', 248, $this->source); })()), "html", null, true); echo "\"> </div> </div> </div> </div> <div class=\"row\"> <div class=\"col-md-3\"> <div class=\"form-group row red-light\"> <div class=\"col\"> <label for=\"filter_free_fee_from_all_from\">ЧП с товара, от:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_free_fee_from_all_from\" value=\""; // line 258 echo twig_escape_filter($this->env, (isset($context["filter_free_fee_from_all_from"]) || array_key_exists("filter_free_fee_from_all_from", $context) ? $context["filter_free_fee_from_all_from"] : (function () { throw new RuntimeError('Variable "filter_free_fee_from_all_from" does not exist.', 258, $this->source); })()), "html", null, true); echo "\"> </div> <div class=\"col\"> <label for=\"filter_free_fee_from_all_to\">ЧП с товара, до:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_free_fee_from_all_to\" value=\""; // line 262 echo twig_escape_filter($this->env, (isset($context["filter_free_fee_from_all_to"]) || array_key_exists("filter_free_fee_from_all_to", $context) ? $context["filter_free_fee_from_all_to"] : (function () { throw new RuntimeError('Variable "filter_free_fee_from_all_to" does not exist.', 262, $this->source); })()), "html", null, true); echo "\"> </div> </div> </div> <div class=\"col-md-7\"> </div> <div class=\"col-md-2 pt-4 text-right\"> <input type=\"reset\" class=\"btn btn-info\" name=\"reset\" value=\"Сбросить\"> <input type=\"submit\" class=\"btn btn-primary\" name=\"filter\" value=\"Фильтровать\"> </div> </div> </div> </form> </div> </div> </div> </div> <div class=\"row\"> <div class=\"col-12\"> <div class=\"card\"> <div class=\"card-body table-responsive-sm p-0\"> <table class=\"table table-hover text-nowrap\"> <thead> <tr> <th title=\"Фирменный ABC\">Рейтинг <a href=\""; // line 286 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("analytics", ["sortBy" => "our_rate", "sortType" => "asc"]), "html", null, true); echo "\" class=\"fa fa-arrow"; if (((0 === twig_compare((isset($context["sortBy"]) || array_key_exists("sortBy", $context) ? $context["sortBy"] : (function () { throw new RuntimeError('Variable "sortBy" does not exist.', 286, $this->source); })()), "our_rate")) && (0 === twig_compare((isset($context["sortType"]) || array_key_exists("sortType", $context) ? $context["sortType"] : (function () { throw new RuntimeError('Variable "sortType" does not exist.', 286, $this->source); })()), "asc")))) { echo "-circle"; } echo "-up\"></a> <a href=\""; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("analytics", ["sortBy" => "our_rate", "sortType" => "desc"]), "html", null, true); echo "\" class=\"fa fa-arrow"; if (((0 === twig_compare((isset($context["sortBy"]) || array_key_exists("sortBy", $context) ? $context["sortBy"] : (function () { throw new RuntimeError('Variable "sortBy" does not exist.', 286, $this->source); })()), "our_rate")) && (0 === twig_compare((isset($context["sortType"]) || array_key_exists("sortType", $context) ? $context["sortType"] : (function () { throw new RuntimeError('Variable "sortType" does not exist.', 286, $this->source); })()), "desc")))) { echo "-circle"; } echo "-down\"></a></th> <th>Фото</th> <th title=\"Название Товара, Бренд, SKU, Артикул WB, ссылка на WB, Рейтинг WB\">Товар</th> <th style=\"width:50px;word-wrap: break-word;white-space: initial !important;\" title=\"Остатки товара (штрихкод), с дифференциацией по складам\">Наличие на складах <a href=\""; // line 289 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("analytics", ["sortBy" => "amount", "sortType" => "asc"]), "html", null, true); echo "\" class=\"fa fa-arrow"; if (((0 === twig_compare((isset($context["sortBy"]) || array_key_exists("sortBy", $context) ? $context["sortBy"] : (function () { throw new RuntimeError('Variable "sortBy" does not exist.', 289, $this->source); })()), "amount")) && (0 === twig_compare((isset($context["sortType"]) || array_key_exists("sortType", $context) ? $context["sortType"] : (function () { throw new RuntimeError('Variable "sortType" does not exist.', 289, $this->source); })()), "asc")))) { echo "-circle"; } echo "-up\"></a> <a href=\""; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("analytics", ["sortBy" => "amount", "sortType" => "desc"]), "html", null, true); echo "\" class=\"fa fa-arrow"; if (((0 === twig_compare((isset($context["sortBy"]) || array_key_exists("sortBy", $context) ? $context["sortBy"] : (function () { throw new RuntimeError('Variable "sortBy" does not exist.', 289, $this->source); })()), "amount")) && (0 === twig_compare((isset($context["sortType"]) || array_key_exists("sortType", $context) ? $context["sortType"] : (function () { throw new RuntimeError('Variable "sortType" does not exist.', 289, $this->source); })()), "desc")))) { echo "-circle"; } echo "-down\"></a></th> <th style=\"width:50px;word-wrap: break-word;white-space: initial !important;\" title=\"Рыночная цена после скидки на данный момент\">Рыночная цена <a href=\""; // line 290 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("analytics", ["sortBy" => "price", "sortType" => "asc"]), "html", null, true); echo "\" class=\"fa fa-arrow"; if (((0 === twig_compare((isset($context["sortBy"]) || array_key_exists("sortBy", $context) ? $context["sortBy"] : (function () { throw new RuntimeError('Variable "sortBy" does not exist.', 290, $this->source); })()), "price")) && (0 === twig_compare((isset($context["sortType"]) || array_key_exists("sortType", $context) ? $context["sortType"] : (function () { throw new RuntimeError('Variable "sortType" does not exist.', 290, $this->source); })()), "asc")))) { echo "-circle"; } echo "-up\"></a> <a href=\""; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("analytics", ["sortBy" => "price", "sortType" => "desc"]), "html", null, true); echo "\" class=\"fa fa-arrow"; if (((0 === twig_compare((isset($context["sortBy"]) || array_key_exists("sortBy", $context) ? $context["sortBy"] : (function () { throw new RuntimeError('Variable "sortBy" does not exist.', 290, $this->source); })()), "price")) && (0 === twig_compare((isset($context["sortType"]) || array_key_exists("sortType", $context) ? $context["sortType"] : (function () { throw new RuntimeError('Variable "sortType" does not exist.', 290, $this->source); })()), "desc")))) { echo "-circle"; } echo "-down\"></a></th> <th style=\"width:50px;word-wrap: break-word;white-space: initial !important;\" title=\"Денег в товаре на данный момент\">Денег в товаре <a href=\""; // line 291 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("analytics", ["sortBy" => "money_in_good", "sortType" => "asc"]), "html", null, true); echo "\" class=\"fa fa-arrow"; if (((0 === twig_compare((isset($context["sortBy"]) || array_key_exists("sortBy", $context) ? $context["sortBy"] : (function () { throw new RuntimeError('Variable "sortBy" does not exist.', 291, $this->source); })()), "money_in_good")) && (0 === twig_compare((isset($context["sortType"]) || array_key_exists("sortType", $context) ? $context["sortType"] : (function () { throw new RuntimeError('Variable "sortType" does not exist.', 291, $this->source); })()), "asc")))) { echo "-circle"; } echo "-up\"></a> <a href=\""; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("analytics", ["sortBy" => "money_in_good", "sortType" => "desc"]), "html", null, true); echo "\" class=\"fa fa-arrow"; if (((0 === twig_compare((isset($context["sortBy"]) || array_key_exists("sortBy", $context) ? $context["sortBy"] : (function () { throw new RuntimeError('Variable "sortBy" does not exist.', 291, $this->source); })()), "money_in_good")) && (0 === twig_compare((isset($context["sortType"]) || array_key_exists("sortType", $context) ? $context["sortType"] : (function () { throw new RuntimeError('Variable "sortType" does not exist.', 291, $this->source); })()), "desc")))) { echo "-circle"; } echo "-down\"></a></th> <th style=\"width:50px;word-wrap: break-word;white-space: initial !important;\" title=\"Потенциальная чистая прибыль с одной единицы товара при текущей рыночной цене\">ПЧП с 1 ед. <a href=\""; // line 292 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("analytics", ["sortBy" => "free_fee_one", "sortType" => "asc"]), "html", null, true); echo "\" class=\"fa fa-arrow"; if (((0 === twig_compare((isset($context["sortBy"]) || array_key_exists("sortBy", $context) ? $context["sortBy"] : (function () { throw new RuntimeError('Variable "sortBy" does not exist.', 292, $this->source); })()), "free_fee_one")) && (0 === twig_compare((isset($context["sortType"]) || array_key_exists("sortType", $context) ? $context["sortType"] : (function () { throw new RuntimeError('Variable "sortType" does not exist.', 292, $this->source); })()), "asc")))) { echo "-circle"; } echo "-up\"></a> <a href=\""; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("analytics", ["sortBy" => "free_fee_one", "sortType" => "desc"]), "html", null, true); echo "\" class=\"fa fa-arrow"; if (((0 === twig_compare((isset($context["sortBy"]) || array_key_exists("sortBy", $context) ? $context["sortBy"] : (function () { throw new RuntimeError('Variable "sortBy" does not exist.', 292, $this->source); })()), "free_fee_one")) && (0 === twig_compare((isset($context["sortType"]) || array_key_exists("sortType", $context) ? $context["sortType"] : (function () { throw new RuntimeError('Variable "sortType" does not exist.', 292, $this->source); })()), "desc")))) { echo "-circle"; } echo "-down\"></a></th> <th style=\"width:50px;word-wrap: break-word;white-space: initial !important;\" title=\"Потенциальная чистая прибыль со всего товара в наличии товара при текущей рыночной цене\">ПЧП с товара <a href=\""; // line 293 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("analytics", ["sortBy" => "free_fee_all", "sortType" => "asc"]), "html", null, true); echo "\" class=\"fa fa-arrow"; if (((0 === twig_compare((isset($context["sortBy"]) || array_key_exists("sortBy", $context) ? $context["sortBy"] : (function () { throw new RuntimeError('Variable "sortBy" does not exist.', 293, $this->source); })()), "free_fee_all")) && (0 === twig_compare((isset($context["sortType"]) || array_key_exists("sortType", $context) ? $context["sortType"] : (function () { throw new RuntimeError('Variable "sortType" does not exist.', 293, $this->source); })()), "asc")))) { echo "-circle"; } echo "-up\"></a> <a href=\""; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("analytics", ["sortBy" => "free_fee_all", "sortType" => "desc"]), "html", null, true); echo "\" class=\"fa fa-arrow"; if (((0 === twig_compare((isset($context["sortBy"]) || array_key_exists("sortBy", $context) ? $context["sortBy"] : (function () { throw new RuntimeError('Variable "sortBy" does not exist.', 293, $this->source); })()), "free_fee_all")) && (0 === twig_compare((isset($context["sortType"]) || array_key_exists("sortType", $context) ? $context["sortType"] : (function () { throw new RuntimeError('Variable "sortType" does not exist.', 293, $this->source); })()), "desc")))) { echo "-circle"; } echo "-down\"></a></th> <th style=\"width:50px;word-wrap: break-word;white-space: initial !important;\" title=\"Процент выкупа товаров по данным WB\">Средний выкуп <a href=\""; // line 294 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("analytics", ["sortBy" => "medium_buy", "sortType" => "asc"]), "html", null, true); echo "\" class=\"fa fa-arrow"; if (((0 === twig_compare((isset($context["sortBy"]) || array_key_exists("sortBy", $context) ? $context["sortBy"] : (function () { throw new RuntimeError('Variable "sortBy" does not exist.', 294, $this->source); })()), "medium_buy")) && (0 === twig_compare((isset($context["sortType"]) || array_key_exists("sortType", $context) ? $context["sortType"] : (function () { throw new RuntimeError('Variable "sortType" does not exist.', 294, $this->source); })()), "asc")))) { echo "-circle"; } echo "-up\"></a> <a href=\""; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("analytics", ["sortBy" => "medium_buy", "sortType" => "desc"]), "html", null, true); echo "\" class=\"fa fa-arrow"; if (((0 === twig_compare((isset($context["sortBy"]) || array_key_exists("sortBy", $context) ? $context["sortBy"] : (function () { throw new RuntimeError('Variable "sortBy" does not exist.', 294, $this->source); })()), "medium_buy")) && (0 === twig_compare((isset($context["sortType"]) || array_key_exists("sortType", $context) ? $context["sortType"] : (function () { throw new RuntimeError('Variable "sortType" does not exist.', 294, $this->source); })()), "desc")))) { echo "-circle"; } echo "-down\"></a></th> <th style=\"width:50px;word-wrap: break-word;white-space: initial !important;\" title=\"Себестоимость\">Себестоимость <a href=\""; // line 295 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("analytics", ["sortBy" => "cost_price", "sortType" => "asc"]), "html", null, true); echo "\" class=\"fa fa-arrow"; if (((0 === twig_compare((isset($context["sortBy"]) || array_key_exists("sortBy", $context) ? $context["sortBy"] : (function () { throw new RuntimeError('Variable "sortBy" does not exist.', 295, $this->source); })()), "cost_price")) && (0 === twig_compare((isset($context["sortType"]) || array_key_exists("sortType", $context) ? $context["sortType"] : (function () { throw new RuntimeError('Variable "sortType" does not exist.', 295, $this->source); })()), "asc")))) { echo "-circle"; } echo "-up\"></a> <a href=\""; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("analytics", ["sortBy" => "cost_price", "sortType" => "desc"]), "html", null, true); echo "\" class=\"fa fa-arrow"; if (((0 === twig_compare((isset($context["sortBy"]) || array_key_exists("sortBy", $context) ? $context["sortBy"] : (function () { throw new RuntimeError('Variable "sortBy" does not exist.', 295, $this->source); })()), "cost_price")) && (0 === twig_compare((isset($context["sortType"]) || array_key_exists("sortType", $context) ? $context["sortType"] : (function () { throw new RuntimeError('Variable "sortType" does not exist.', 295, $this->source); })()), "desc")))) { echo "-circle"; } echo "-down\"></a></th> <th style=\"width:50px;word-wrap: break-word;white-space: initial !important;\" title=\"Общее количеств о выкупов по всему товару за выбранный период (все размеры и склады)\">Выкуплено товара <a href=\""; // line 296 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("analytics", ["sortBy" => "number_sale", "sortType" => "asc"]), "html", null, true); echo "\" class=\"fa fa-arrow"; if (((0 === twig_compare((isset($context["sortBy"]) || array_key_exists("sortBy", $context) ? $context["sortBy"] : (function () { throw new RuntimeError('Variable "sortBy" does not exist.', 296, $this->source); })()), "number_sale")) && (0 === twig_compare((isset($context["sortType"]) || array_key_exists("sortType", $context) ? $context["sortType"] : (function () { throw new RuntimeError('Variable "sortType" does not exist.', 296, $this->source); })()), "asc")))) { echo "-circle"; } echo "-up\"></a> <a href=\""; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("analytics", ["sortBy" => "number_sale", "sortType" => "desc"]), "html", null, true); echo "\" class=\"fa fa-arrow"; if (((0 === twig_compare((isset($context["sortBy"]) || array_key_exists("sortBy", $context) ? $context["sortBy"] : (function () { throw new RuntimeError('Variable "sortBy" does not exist.', 296, $this->source); })()), "number_sale")) && (0 === twig_compare((isset($context["sortType"]) || array_key_exists("sortType", $context) ? $context["sortType"] : (function () { throw new RuntimeError('Variable "sortType" does not exist.', 296, $this->source); })()), "desc")))) { echo "-circle"; } echo "-down\"></a></th> <th style=\"width:50px;word-wrap: break-word;white-space: initial !important;\" title=\"Средняя цена одной продажи за выбранный период\">Средняя цена <a href=\""; // line 297 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("analytics", ["sortBy" => "number_sale_price", "sortType" => "asc"]), "html", null, true); echo "\" class=\"fa fa-arrow"; if (((0 === twig_compare((isset($context["sortBy"]) || array_key_exists("sortBy", $context) ? $context["sortBy"] : (function () { throw new RuntimeError('Variable "sortBy" does not exist.', 297, $this->source); })()), "number_sale_price")) && (0 === twig_compare((isset($context["sortType"]) || array_key_exists("sortType", $context) ? $context["sortType"] : (function () { throw new RuntimeError('Variable "sortType" does not exist.', 297, $this->source); })()), "asc")))) { echo "-circle"; } echo "-up\"></a> <a href=\""; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("analytics", ["sortBy" => "number_sale_price", "sortType" => "desc"]), "html", null, true); echo "\" class=\"fa fa-arrow"; if (((0 === twig_compare((isset($context["sortBy"]) || array_key_exists("sortBy", $context) ? $context["sortBy"] : (function () { throw new RuntimeError('Variable "sortBy" does not exist.', 297, $this->source); })()), "number_sale_price")) && (0 === twig_compare((isset($context["sortType"]) || array_key_exists("sortType", $context) ? $context["sortType"] : (function () { throw new RuntimeError('Variable "sortType" does not exist.', 297, $this->source); })()), "desc")))) { echo "-circle"; } echo "-down\"></a></th> <th style=\"width:50px;word-wrap: break-word;white-space: initial !important;\" title=\"Сумма выкупов по всему товару за выбранный период (все размеры и склады)\">Выручка <a href=\""; // line 298 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("analytics", ["sortBy" => "fee", "sortType" => "asc"]), "html", null, true); echo "\" class=\"fa fa-arrow"; if (((0 === twig_compare((isset($context["sortBy"]) || array_key_exists("sortBy", $context) ? $context["sortBy"] : (function () { throw new RuntimeError('Variable "sortBy" does not exist.', 298, $this->source); })()), "fee")) && (0 === twig_compare((isset($context["sortType"]) || array_key_exists("sortType", $context) ? $context["sortType"] : (function () { throw new RuntimeError('Variable "sortType" does not exist.', 298, $this->source); })()), "asc")))) { echo "-circle"; } echo "-up\"></a> <a href=\""; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("analytics", ["sortBy" => "fee", "sortType" => "desc"]), "html", null, true); echo "\" class=\"fa fa-arrow"; if (((0 === twig_compare((isset($context["sortBy"]) || array_key_exists("sortBy", $context) ? $context["sortBy"] : (function () { throw new RuntimeError('Variable "sortBy" does not exist.', 298, $this->source); })()), "fee")) && (0 === twig_compare((isset($context["sortType"]) || array_key_exists("sortType", $context) ? $context["sortType"] : (function () { throw new RuntimeError('Variable "sortType" does not exist.', 298, $this->source); })()), "desc")))) { echo "-circle"; } echo "-down\"></a></th> <th style=\"width:50px;word-wrap: break-word;white-space: initial !important;\" title=\"Чистая прибыль с одной единицы проданного товара в среднем за выбранный период)\">ЧП с 1 ед. <a href=\""; // line 299 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("analytics", ["sortBy" => "free_fee_from_one", "sortType" => "asc"]), "html", null, true); echo "\" class=\"fa fa-arrow"; if (((0 === twig_compare((isset($context["sortBy"]) || array_key_exists("sortBy", $context) ? $context["sortBy"] : (function () { throw new RuntimeError('Variable "sortBy" does not exist.', 299, $this->source); })()), "free_fee_from_one")) && (0 === twig_compare((isset($context["sortType"]) || array_key_exists("sortType", $context) ? $context["sortType"] : (function () { throw new RuntimeError('Variable "sortType" does not exist.', 299, $this->source); })()), "asc")))) { echo "-circle"; } echo "-up\"></a> <a href=\""; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("analytics", ["sortBy" => "free_fee_from_one", "sortType" => "desc"]), "html", null, true); echo "\" class=\"fa fa-arrow"; if (((0 === twig_compare((isset($context["sortBy"]) || array_key_exists("sortBy", $context) ? $context["sortBy"] : (function () { throw new RuntimeError('Variable "sortBy" does not exist.', 299, $this->source); })()), "free_fee_from_one")) && (0 === twig_compare((isset($context["sortType"]) || array_key_exists("sortType", $context) ? $context["sortType"] : (function () { throw new RuntimeError('Variable "sortType" does not exist.', 299, $this->source); })()), "desc")))) { echo "-circle"; } echo "-down\"></a></th> <th style=\"width:50px;word-wrap: break-word;white-space: initial !important;\" title=\"Чистая прибыль со всего проданного товара за выбранный период\">ЧП с товара <a href=\""; // line 300 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("analytics", ["sortBy" => "free_fee_from_all", "sortType" => "asc"]), "html", null, true); echo "\" class=\"fa fa-arrow"; if (((0 === twig_compare((isset($context["sortBy"]) || array_key_exists("sortBy", $context) ? $context["sortBy"] : (function () { throw new RuntimeError('Variable "sortBy" does not exist.', 300, $this->source); })()), "free_fee_from_all")) && (0 === twig_compare((isset($context["sortType"]) || array_key_exists("sortType", $context) ? $context["sortType"] : (function () { throw new RuntimeError('Variable "sortType" does not exist.', 300, $this->source); })()), "asc")))) { echo "-circle"; } echo "-up\"></a> <a href=\""; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("analytics", ["sortBy" => "free_fee_from_all", "sortType" => "desc"]), "html", null, true); echo "\" class=\"fa fa-arrow"; if (((0 === twig_compare((isset($context["sortBy"]) || array_key_exists("sortBy", $context) ? $context["sortBy"] : (function () { throw new RuntimeError('Variable "sortBy" does not exist.', 300, $this->source); })()), "free_fee_from_all")) && (0 === twig_compare((isset($context["sortType"]) || array_key_exists("sortType", $context) ? $context["sortType"] : (function () { throw new RuntimeError('Variable "sortType" does not exist.', 300, $this->source); })()), "desc")))) { echo "-circle"; } echo "-down\"></a></th> "; // line 304 echo " <th title=\"\">Динамика продаж</th> </tr> </thead> <tbody> <tr> "; // line 309 if ( !twig_test_empty((isset($context["cards"]) || array_key_exists("cards", $context) ? $context["cards"] : (function () { throw new RuntimeError('Variable "cards" does not exist.', 309, $this->source); })()))) { // line 310 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable((isset($context["cards"]) || array_key_exists("cards", $context) ? $context["cards"] : (function () { throw new RuntimeError('Variable "cards" does not exist.', 310, $this->source); })())); foreach ($context['_seq'] as $context["_key"] => $context["card"]) { // line 311 echo " <td>"; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["card"], "our_rate", [], "any", false, false, false, 311), "html", null, true); echo "</td> <td> "; // line 313 if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["card"], "img", [], "any", false, false, false, 313))) { // line 314 echo " <img width=\"100\" alt=\"\" src=\""; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["card"], "img", [], "any", false, false, false, 314), "html", null, true); echo "\" /> "; } // line 316 echo " </td> <td> <div ><b>"; // line 318 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["card"], "object", [], "any", false, false, false, 318), "html", null, true); echo "</b></div> <div ><b>Бренд:</b> "; // line 319 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["card"], "brand", [], "any", false, false, false, 319), "html", null, true); echo "</div> <div ><b>Артикул:</b> <a target=\"_blank\" class=\"wb-link\" href=\"https://www.wildberries.ru/catalog/"; // line 320 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["card"], "nmID", [], "any", false, false, false, 320), "html", null, true); echo "/detail.aspx\">"; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["card"], "nmID", [], "any", false, false, false, 320), "html", null, true); echo "</a></div> <div ><b>Рейтинг WB: "; // line 321 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["card"], "wb_rating", [], "any", false, false, false, 321), "html", null, true); echo "</b></div> </td> <td><a href=\"javascript:void(0)\" class=\"show_stocks_list\"><strong>"; // line 323 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["card"], "amount", [], "any", false, false, false, 323), "html", null, true); echo " шт.</strong></a> <div class=\"stocks_list\"> "; // line 325 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["card"], "amountStocks", [], "any", false, false, false, 325)); foreach ($context['_seq'] as $context["_key"] => $context["stock"]) { // line 326 echo " "; if (twig_get_attribute($this->env, $this->source, $context["stock"], "quantity", [], "any", false, false, false, 326)) { // line 327 echo " "; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["stock"], "quantity", [], "any", false, false, false, 327), "html", null, true); echo " шт.<br> "; // line 328 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["stock"], "warehouse_name", [], "any", false, false, false, 328), "html", null, true); echo "<br> "; // line 329 if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["stock"], "tech_size", [], "any", false, false, false, 329))) { echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["stock"], "tech_size", [], "any", false, false, false, 329), "html", null, true); echo "<br>"; } // line 330 echo " <div id=\"ajax-edit-comm-"; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["stock"], "id", [], "any", false, false, false, 330), "html", null, true); echo "\">Комм(%): "; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["stock"], "commision", [], "any", false, false, false, 330), "html", null, true); echo " <a href=\"#\" class=\"ajax-edit-comm\" data-id=\""; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["stock"], "id", [], "any", false, false, false, 330), "html", null, true); echo "\" data-price=\""; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["stock"], "commision", [], "any", false, false, false, 330), "html", null, true); echo "\"><i class=\"fa fa-edit\"></i></a></div> <div id=\"ajax-edit-log-"; // line 331 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["stock"], "id", [], "any", false, false, false, 331), "html", null, true); echo "\">Логис(р): "; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["stock"], "logistics", [], "any", false, false, false, 331), "html", null, true); echo " <a href=\"#\" class=\"ajax-edit-log\" data-id=\""; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["stock"], "id", [], "any", false, false, false, 331), "html", null, true); echo "\" data-price=\""; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["stock"], "logistics", [], "any", false, false, false, 331), "html", null, true); echo "\"><i class=\"fa fa-edit\"></i></a></div> <br><br> "; } // line 334 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['stock'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 335 echo " </div> </td> <td>"; // line 338 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["card"], "price", [], "any", false, false, false, 338), "html", null, true); echo " ₽</td> <td class=\"green-light\">"; // line 339 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["card"], "money_in_good", [], "any", false, false, false, 339), "html", null, true); echo " ₽</td> <td class=\"yellow-light\">"; // line 340 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["card"], "free_fee_one", [], "any", false, false, false, 340), "html", null, true); echo " ₽</td> <td class=\"yellow-light\">"; // line 341 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["card"], "free_fee_all", [], "any", false, false, false, 341), "html", null, true); echo " ₽</td> <td>"; // line 342 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["card"], "medium_buy", [], "any", false, false, false, 342), "html", null, true); echo "</td> <td id=\"ajax-edit-cost-"; // line 343 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["card"], "id", [], "any", false, false, false, 343), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["card"], "cost_price", [], "any", false, false, false, 343), "html", null, true); echo " ₽ <a href=\"#\" class=\"ajax-edit-cost\" data-id=\""; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["card"], "id", [], "any", false, false, false, 343), "html", null, true); echo "\" data-price=\""; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["card"], "cost_price", [], "any", false, false, false, 343), "html", null, true); echo "\"><i class=\"fa fa-edit\"></i></a></td> <td class=\"red-light\">"; // line 344 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["card"], "number_sale", [], "any", false, false, false, 344), "html", null, true); echo "</td> <td class=\"red-light\">"; // line 345 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["card"], "number_sale_price", [], "any", false, false, false, 345), "html", null, true); echo " ₽</td> <td class=\"red-light\">"; // line 346 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["card"], "fee", [], "any", false, false, false, 346), "html", null, true); echo " ₽</td> <td class=\"red-light\">"; // line 347 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["card"], "free_fee_from_one", [], "any", false, false, false, 347), "html", null, true); echo " ₽</td> <td class=\"red-light\">"; // line 348 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["card"], "free_fee_from_all", [], "any", false, false, false, 348), "html", null, true); echo " ₽</td> "; // line 352 echo " <td> <div class=\"chart\" data-id=\""; // line 353 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["card"], "id", [], "any", false, false, false, 353), "html", null, true); echo "\" data-date=\""; if ((isset($context["date"]) || array_key_exists("date", $context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.', 353, $this->source); })())) { echo twig_escape_filter($this->env, (isset($context["date"]) || array_key_exists("date", $context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.', 353, $this->source); })()), "html", null, true); } echo "\"> <canvas class=\"lineChart_"; // line 354 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["card"], "nmID", [], "any", false, false, false, 354), "html", null, true); echo "\" style=\"min-height: 150px; height: 150px; max-height: 150px; max-width: 100%;\"></canvas> </div> </td> </tr> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['card'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 359 echo " "; } // line 360 echo " </tbody> </table> </div> <!-- /.card-body --> <div class=\"card-footer clearfix\"> "; // line 366 echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["cards"]) || array_key_exists("cards", $context) ? $context["cards"] : (function () { throw new RuntimeError('Variable "cards" does not exist.', 366, $this->source); })()), "analytics/pagination.html.twig"); echo " </div> "; // line 378 echo " </div> <!-- /.card --> </div> </div> </div> </section> <!-- /.content --> </div> <!-- /.content-wrapper --> <div class=\"modal\" id=\"chartModal\" tabindex=\"-1\" style=\"max-width: 80%\"> <div class=\"modal-dialog\" role=\"document\" style=\"max-width: 80%\"> <div class=\"modal-content\"> <div class=\"modal-header\"> <h5 class=\"modal-title\"></h5> <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"> <span aria-hidden=\"true\">×</span> </button> </div> <div class=\"modal-body\"> <div class=\"chart-modal\"> <canvas class=\"lineChart_modal\" style=\"min-height: 150px; height: 500px; max-height: 400px; width: 800px; max-width: 100%;\"></canvas> </div> </div> </div> </div> </div> "; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof); } // line 408 public function block_javascript_bottom($context, array $blocks = []) { $macros = $this->macros; $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"]; $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript_bottom")); $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript_bottom")); // line 409 echo " "; $this->displayParentBlock("javascript_bottom", $context, $blocks); echo " <script> \$(function () { /* ChartJS * ------- * Here we will create a few charts using ChartJS */ var areaChartData = { labels : ["; // line 418 echo (isset($context["graph_dates"]) || array_key_exists("graph_dates", $context) ? $context["graph_dates"] : (function () { throw new RuntimeError('Variable "graph_dates" does not exist.', 418, $this->source); })()); echo "], datasets: [ { label : 'Наличие на складах', backgroundColor : 'rgba(10,10,188,1)', borderColor : 'rgba(10,10,188,1)', pointRadius : false, pointColor : '#3b8bba', pointStrokeColor : 'rgba(10,10,188,1)', pointHighlightFill : '#fff', pointHighlightStroke: 'rgba(220,220,220,1)', data : [] }, { label : 'Рыночная цена', backgroundColor : 'rgba(210, 214, 222, 1)', borderColor : 'rgba(210, 214, 222, 1)', pointRadius : false, pointColor : 'rgba(210, 214, 222, 1)', pointStrokeColor : '#c1c7d1', pointHighlightFill : '#fff', pointHighlightStroke: 'rgba(220,220,220,1)', data : [] }, { label : 'Выкуплено товара', backgroundColor : 'rgba(10, 214, 10, 1)', borderColor : 'rgba(10, 214, 10, 1)', pointRadius : false, pointColor : 'rgba(10, 214, 10, 1)', pointStrokeColor : '#c1c7d1', pointHighlightFill : '#fff', pointHighlightStroke: 'rgba(220,220,220,1)', data : [] }, ] } var areaChartOptions = { maintainAspectRatio : false, responsive : true, legend: { display: false }, scales: { xAxes: [{ gridLines : { display : false, } }], yAxes: [{ gridLines : { display : false, } }] } } //------------- //- LINE CHART - //-------------- "; // line 480 if ( !twig_test_empty((isset($context["cards"]) || array_key_exists("cards", $context) ? $context["cards"] : (function () { throw new RuntimeError('Variable "cards" does not exist.', 480, $this->source); })()))) { // line 481 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable((isset($context["cards"]) || array_key_exists("cards", $context) ? $context["cards"] : (function () { throw new RuntimeError('Variable "cards" does not exist.', 481, $this->source); })())); foreach ($context['_seq'] as $context["_key"] => $context["card"]) { // line 482 echo " var lineChartCanvas = \$('.lineChart_"; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["card"], "nmID", [], "any", false, false, false, 482), "html", null, true); echo "').get(0).getContext('2d') var lineChartOptions = \$.extend(true, {}, areaChartOptions) var lineChartData = \$.extend(true, {}, areaChartData) lineChartData.datasets[0].fill = false; lineChartData.datasets[1].fill = false; lineChartData.datasets[2].fill = false; lineChartData.datasets[0]['data'] = ["; // line 488 echo twig_get_attribute($this->env, $this->source, (isset($context["stock_quantity_full"]) || array_key_exists("stock_quantity_full", $context) ? $context["stock_quantity_full"] : (function () { throw new RuntimeError('Variable "stock_quantity_full" does not exist.', 488, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["card"], "nmID", [], "any", false, false, false, 488), [], "array", false, false, false, 488); echo "]; lineChartData.datasets[1]['data'] = ["; // line 489 echo twig_get_attribute($this->env, $this->source, (isset($context["stock_price"]) || array_key_exists("stock_price", $context) ? $context["stock_price"] : (function () { throw new RuntimeError('Variable "stock_price" does not exist.', 489, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["card"], "nmID", [], "any", false, false, false, 489), [], "array", false, false, false, 489); echo "]; lineChartData.datasets[2]['data'] = ["; // line 490 echo twig_get_attribute($this->env, $this->source, (isset($context["number_sale"]) || array_key_exists("number_sale", $context) ? $context["number_sale"] : (function () { throw new RuntimeError('Variable "number_sale" does not exist.', 490, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["card"], "nmID", [], "any", false, false, false, 490), [], "array", false, false, false, 490); echo "]; lineChartOptions.datasetFill = false var lineChart = new Chart(lineChartCanvas, { type: 'line', data: lineChartData, options: lineChartOptions }) "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['card'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 499 echo " "; } // line 500 echo " \$(document).on('click', '.chart', function() { let id = \$(this).data('id') let data_date = \$(this).data('date') let url = '/lk/analytics/chart/'+id let getdata = 'id='+id+'&date='+data_date \$.ajax({ type: \"GET\", url: url, data: getdata, success: (data) => { var areaChartData = { labels : ["; // line 513 echo (isset($context["graph_dates"]) || array_key_exists("graph_dates", $context) ? $context["graph_dates"] : (function () { throw new RuntimeError('Variable "graph_dates" does not exist.', 513, $this->source); })()); echo "], axisY:[{ title: \"Наличие на складах\", lineColor: \"rgba(10,10,188,1)\", tickColor: \"rgba(10,10,188,1)\", labelFontColor: \"rgba(10,10,188,1)\", titleFontColor: \"rgba(10,10,188,1)\", includeZero: true, }, { title: \"Рыночная цена\", lineColor: \"rgba(210, 214, 222, 1)\", tickColor: \"rgba(210, 214, 222, 1)\", labelFontColor: \"rgba(210, 214, 222, 1)\", titleFontColor: \"rgba(210, 214, 222, 1)\", includeZero: true, }], axisY2: { title: \"Выкуплено товара\", lineColor: \"rgba(10, 214, 10, 1)\", tickColor: \"rgba(10, 214, 10, 1)\", labelFontColor: \"rgba(10, 214, 10, 1)\", titleFontColor: \"rgba(10, 214, 10, 1)\", includeZero: true, }, datasets: [ { label : 'Наличие на складах', axisYIndex : 0, showInLegend : true, type : \"line\", backgroundColor : 'rgba(10,10,188,1)', borderColor : 'rgba(10,10,188,1)', pointRadius : false, pointColor : '#3b8bba', pointStrokeColor : 'rgba(10,10,188,1)', pointHighlightFill : '#fff', pointHighlightStroke: 'rgba(220,220,220,1)', data : [] }, { label : 'Рыночная цена', axisYIndex : 1, showInLegend : true, type : \"line\", backgroundColor : 'rgba(210, 214, 222, 1)', borderColor : 'rgba(210, 214, 222, 1)', pointRadius : false, pointColor : 'rgba(210, 214, 222, 1)', pointStrokeColor : '#c1c7d1', pointHighlightFill : '#fff', pointHighlightStroke: 'rgba(220,220,220,1)', data : [] }, { label : 'Выкуплено товара', axisYType : \"secondary\", showInLegend : true, type : \"line\", backgroundColor : 'rgba(10, 214, 10, 1)', borderColor : 'rgba(10, 214, 10, 1)', pointRadius : false, pointColor : 'rgba(10, 214, 10, 1)', pointStrokeColor : '#c1c7d1', pointHighlightFill : '#fff', pointHighlightStroke: 'rgba(220,220,220,1)', data : [] }, ] } var areaChartOptions = { maintainAspectRatio : false, responsive : true, legend: { display: true, cursor: \"pointer\", }, axisX: { title: \"Даты\" }, axisY: { title: \"Значения\", }, } \$('#chartModal .modal-title').html('График показателей для товара: '+data.title) \$('#chartModal').modal() var lineChartCanvas = \$('#chartModal .lineChart_modal').get(0).getContext('2d') var lineChartOptions = \$.extend(true, {}, areaChartOptions) var lineChartData = \$.extend(true, {}, areaChartData) lineChartData.datasets[0].fill = false; lineChartData.datasets[1].fill = false; lineChartData.datasets[2].fill = false; lineChartData.datasets[0]['data'] = data.stock_quantity_full; lineChartData.datasets[1]['data'] = data.stock_price; lineChartData.datasets[2]['data'] = data.number_sale; lineChartOptions.datasetFill = false var lineChart = new Chart(lineChartCanvas, { type: 'line', data: lineChartData, options: lineChartOptions }) } }); return false }) \$('#custom_date').daterangepicker({ \"locale\": { \"format\": \"YYYY-MM-DD\", \"separator\": \" - \", \"applyLabel\": \"Применить\", \"cancelLabel\": \"Отмена\", \"fromLabel\": \"От\", \"toLabel\": \"До\", \"customRangeLabel\": \"Custom\", \"weekLabel\": \"W\", \"daysOfWeek\": [ \"Вс\", \"Пн\", \"Вт\", \"Ср\", \"Чт\", \"Пт\", \"Сб\" ], \"monthNames\": [ \"Январь\", \"Февраль\", \"Март\", \"Апрель\", \"Май\", \"Июнь\", \"Июль\", \"Август\", \"Сентябрь\", \"Октябрь\", \"Ноябрь\", \"Декабрь\" ], \"firstDay\": 1 }, \"startDate\": \"2023-08-08\", \"endDate\": \"2023-08-14\", \"minDate\": \"2023-06-01\", \"maxDate\": \"2023-08-14\" }, function(start, end, label) { location.href='/lk/analytics?custom_date='+start.format('YYYY-MM-DD')+' - '+end.format('YYYY-MM-DD'); }); \$(document).on('click', '#custom_date_btn', function() { location.href='/lk/analytics?custom_date='+\$('#custom_date').val(); }); \$(document).on('click', '#show-filter', function() { if (\$('.filter-block').hasClass('active')) { \$('.filter-block').slideUp().removeClass('active'); \$(this).html('Показать фильтр'); } else { \$('.filter-block').slideDown().addClass('active'); \$(this).html('Скрыть фильтр'); } }); \$(document).on('click', '.show_stocks_list', function() { let stocks_list = \$(this).siblings(\$('.stocks_list')) if (stocks_list.css('display')=='none') stocks_list.slideDown(); else stocks_list.slideUp(); }); \$(document).on('click', '.ajax-edit-cost', function() { let id = \$(this).data('id') let price = \$(this).data('price') \$('#ajax-edit-cost-'+id).html('<input type=\"text\" value=\"'+price+'\" id=\"ajax-cost-value-'+id+'\" style=\"width:90px;\"> <a href=\"#\" class=\"ajax-save-cost\" data-id=\"'+id+'\"><i class=\"fa fa-save\"></i></a>') return false }) \$(document).on('click', '.ajax-save-cost', function() { let id = \$(this).data('id') let price = \$('#ajax-cost-value-'+id).val() let url = '/lk/analytics/save/cost/'+id let getdata = 'price='+price \$.ajax({ type: \"GET\", url: url, data: getdata, // beforeSend: () => { // button.addClass('ajax-executing'); // button.prop('disabled', true); // }, success: (data) => { \$('#ajax-edit-cost-'+id).html(data+' <a href=\"#\" class=\"ajax-edit-cost\" data-id=\"'+id+'\" data-price=\"'+data+'\"><i class=\"fa fa-edit\"></i></a>') } }); return false }) \$(document).on('click', '.ajax-edit-comm', function() { let id = \$(this).data('id') let price = \$(this).data('price') \$('#ajax-edit-comm-'+id).html('<input type=\"text\" value=\"'+price+'\" id=\"ajax-comm-value-'+id+'\" style=\"width:90px;\"> <a href=\"#\" class=\"ajax-save-comm\" data-id=\"'+id+'\"><i class=\"fa fa-save\"></i></a>') return false }) \$(document).on('click', '.ajax-save-comm', function() { let id = \$(this).data('id') let price = \$('#ajax-comm-value-'+id).val() let url = '/lk/analytics/save/comm/'+id let getdata = 'price='+price \$.ajax({ type: \"GET\", url: url, data: getdata, success: (data) => { \$('#ajax-edit-comm-'+id).html('Комм(%): '+data+' <a href=\"#\" class=\"ajax-edit-comm\" data-id=\"'+id+'\" data-price=\"'+data+'\"><i class=\"fa fa-edit\"></i></a>') } }); return false }) \$(document).on('click', '.ajax-edit-log', function() { let id = \$(this).data('id') let price = \$(this).data('price') \$('#ajax-edit-log-'+id).html('<input type=\"text\" value=\"'+price+'\" id=\"ajax-log-value-'+id+'\" style=\"width:90px;\"> <a href=\"#\" class=\"ajax-save-log\" data-id=\"'+id+'\"><i class=\"fa fa-save\"></i></a>') return false }) \$(document).on('click', '.ajax-save-log', function() { let id = \$(this).data('id') let price = \$('#ajax-log-value-'+id).val() let url = '/lk/analytics/save/log/'+id let getdata = 'price='+price \$.ajax({ type: \"GET\", url: url, data: getdata, success: (data) => { \$('#ajax-edit-log-'+id).html('Логис(р): '+data+' <a href=\"#\" class=\"ajax-edit-log\" data-id=\"'+id+'\" data-price=\"'+data+'\"><i class=\"fa fa-edit\"></i></a>') } }); return false }) }) </script> "; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof); } public function getTemplateName() { return "analytics/index.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 1098 => 513, 1083 => 500, 1080 => 499, 1065 => 490, 1061 => 489, 1057 => 488, 1047 => 482, 1042 => 481, 1040 => 480, 975 => 418, 962 => 409, 952 => 408, 914 => 378, 909 => 366, 901 => 360, 898 => 359, 887 => 354, 879 => 353, 876 => 352, 872 => 348, 868 => 347, 864 => 346, 860 => 345, 856 => 344, 846 => 343, 842 => 342, 838 => 341, 834 => 340, 830 => 339, 826 => 338, 821 => 335, 815 => 334, 803 => 331, 792 => 330, 787 => 329, 783 => 328, 778 => 327, 775 => 326, 771 => 325, 766 => 323, 761 => 321, 755 => 320, 751 => 319, 747 => 318, 743 => 316, 737 => 314, 735 => 313, 729 => 311, 724 => 310, 722 => 309, 715 => 304, 701 => 300, 687 => 299, 673 => 298, 659 => 297, 645 => 296, 631 => 295, 617 => 294, 603 => 293, 589 => 292, 575 => 291, 561 => 290, 547 => 289, 531 => 286, 504 => 262, 497 => 258, 484 => 248, 477 => 244, 466 => 236, 459 => 232, 448 => 224, 441 => 220, 430 => 212, 423 => 208, 410 => 198, 403 => 194, 392 => 186, 385 => 182, 374 => 174, 367 => 170, 356 => 162, 349 => 158, 336 => 148, 329 => 144, 318 => 136, 311 => 132, 300 => 124, 293 => 120, 279 => 111, 273 => 110, 267 => 109, 261 => 108, 255 => 107, 244 => 99, 235 => 92, 220 => 90, 216 => 89, 208 => 83, 193 => 81, 189 => 80, 182 => 75, 179 => 73, 173 => 71, 167 => 70, 161 => 69, 155 => 68, 146 => 64, 142 => 63, 127 => 51, 117 => 44, 108 => 38, 99 => 32, 69 => 4, 59 => 3, 36 => 1,); } public function getSourceContext() { return new Source("{% extends 'layouts/main-layout.html.twig' %} {% block content %} <!-- Content Wrapper. Contains page content --> <div class=\"content-wrapper\" style=\"margin-left:0 !important;\"> <!-- Content Header (Page header) --> <section class=\"content-header\"> <div class=\"container-fluid\"> <div class=\"row mb-2\"> <div class=\"col-sm-6\"> <h1>WB аналитика</h1> </div> <div class=\"col-sm-6\"> <ol class=\"breadcrumb float-sm-right\"> <li class=\"breadcrumb-item\"><a href=\"/lk/analytics\">Главная страница</a></li> <li class=\"breadcrumb-item active\">WB</li> </ol> </div> </div> </div><!-- /.container-fluid --> </section> <!-- Main content --> <section class=\"content\"> <div class=\"container-fluid\"> <div class=\"row\"> <div class=\"col-lg-3 col-6\"> <div class=\"small-box bg-warning gray-light\"> <div class=\"inner\"><h3 style=\"font-size: 1.5rem;\">Наличие на складах</h3></div> <div class=\"card-footer\">{{ sum_amount }} шт.</div> </div> </div> <div class=\"col-lg-3 col-6\"> <div class=\"small-box bg-warning green-light\"> <div class=\"inner\"><h3 style=\"font-size: 1.5rem;\">Денег в товарах</h3></div> <div class=\"card-footer\">{{ all_money_in_good }} ₽</div> </div> </div> <div class=\"col-lg-3 col-6\"> <div class=\"small-box bg-warning yellow-light\"> <div class=\"inner\"><h3 style=\"font-size: 1.5rem;\">Потенциальная чистая прибыль</h3></div> <div class=\"card-footer\">{{ sum_free_fee_all }} ₽</div> </div> </div> <div class=\"col-lg-3 col-6\"> <div class=\"small-box bg-warning red-light\"> <div class=\"inner\"><h3 style=\"font-size: 1.5rem;\">Чистая прибыль</h3></div> <div class=\"icon\"><i class=\"ion ion-alert-circle\"></i></div> <div class=\"card-footer\">{{ sum_free_fee_from_all }} ₽</div> </div> </div> </div> <div class=\"row\"> <div class=\"col-md-12\"> <div class=\"card\"> <div class=\"card-body\"> <form method=\"get\" action=\"\" id=\"filter-form\"> <div class=\"row\"> <div class=\"col-md-2\"> Найдено товаров: <strong>{{ items }}</strong><br> Данные: <strong>с {{ data_from }} по {{ data_to }}</strong> </div> <div class=\"col-md-4\"> <button type=\"button\" class=\"btn btn-primary {% if date == '30days' %}btn-dark{% endif %}\" onclick=\"location.href='/lk/analytics?date=30days'\">30 дней</button> <button type=\"button\" class=\"btn btn-primary {% if date == 'now' %}btn-dark{% endif %}\" onclick=\"location.href='/lk/analytics?date=now'\">Сегодня</button> <button type=\"button\" class=\"btn btn-primary {% if date == 'yerstaday' %}btn-dark{% endif %}\" onclick=\"location.href='/lk/analytics?date=yerstaday'\">Вчера</button> <button type=\"button\" class=\"btn btn-primary {% if date == '7days' %}btn-dark{% endif %}\" onclick=\"location.href='/lk/analytics?date=7days'\">7 дней</button> {#<button type=\"button\" id=\"custom_date_btn\" class=\"btn btn-primary {% if custom_date is not empty %}btn-dark{% endif %}\">Выбрать дату</button>#} <br><label for=\"custom_date\">Задать дату:</label> <input type=\"text\" class=\"form-control mt-2\" name=\"custom_date\" id=\"custom_date\" style=\"width: 40%; display: inline-block\"> {# <button type=\"button\" class=\"btn btn-primary\" id=\"custom_date_btn\" style=\"position: relative; top: -2px;\">Выбрать</button>#} </div> <div class=\"col-md-2\"> Бренд <select class=\"form-control select2\" name=\"brand\" style=\"width: 100%;\" onchange=\"\$('#filter-form').submit()\"> <option value=\"\" selected=\"selected\">Все</option> {% for brand in brands %} <option value=\"{{ brand }}\" {% if current_brand == brand %}selected=\"selected\"{% endif %}>{{ brand }}</option> {% endfor %} </select> </div> <div class=\"col-md-2\"> Склады <select class=\"form-control select2\" name=\"warehouse\" style=\"width: 100%;\" onchange=\"\$('#filter-form').submit()\"> <option value=\"\" selected=\"selected\">Все</option> {% for warehouse in warehouses %} <option value=\"{{ warehouse }}\" {% if current_warehouse == warehouse %}selected=\"selected\"{% endif %}>{{ warehouse }}</option> {% endfor %} </select> </div> <div class=\"col-md-2 pt-4 text-right\"> <a href=\"/lk/analytics?xls=Y\" target=\"_blank\" class=\"btn btn-primary\">XLS</a> </div> </div> <div class=\"\"><a href=\"javascript:void(0)\" id=\"show-filter\">Показать фильтр</a></div> <div class=\"filter-block {{ filter_show }}\"> <div class=\"row\"> <div class=\"col-md-3\"> <div class=\"form-group row\"> <div class=\"col\"> <label for=\"our_rate\">Рейтинг:</label> <select class=\"form-control select2\" name=\"our_rate\" style=\"width: 70%;\"> <option value=\"\" selected=\"selected\">Все</option> <option value=\"A\" {% if our_rate == 'A' %}selected=\"selected\"{% endif %}>A</option> <option value=\"A-B\" {% if our_rate == 'A-B' %}selected=\"selected\"{% endif %}>A-B</option> <option value=\"A-C\" {% if our_rate == 'A-C' %}selected=\"selected\"{% endif %}>A-C</option> <option value=\"B-C\" {% if our_rate == 'B-C' %}selected=\"selected\"{% endif %}>B-C</option> <option value=\"C\" {% if our_rate == 'C' %}selected=\"selected\"{% endif %}>C</option> </select> </div> </div> </div> <div class=\"col-md-3\"> <div class=\"form-group row\"> <div class=\"col\"> <label for=\"filter_price_from\">Наличие, от:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_quantity_from\" value=\"{{ filter_quantity_from }}\"> </div> <div class=\"col\"> <label for=\"filter_price_to\">Наличие, до:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_quantity_to\" value=\"{{ filter_quantity_to }}\"> </div> </div> </div> <div class=\"col-md-3\"> <div class=\"form-group row\"> <div class=\"col\"> <label for=\"filter_price_from\">Рыночная цена, от:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_price_from\" value=\"{{ filter_price_from }}\"> </div> <div class=\"col\"> <label for=\"filter_price_to\">Рыночная цена, до:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_price_to\" value=\"{{ filter_price_to }}\"> </div> </div> </div> <div class=\"col-md-3\"> <div class=\"form-group row green-light\"> <div class=\"col\"> <label for=\"filter_money_in_good_from\">Денег в товаре, от:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_money_in_good_from\" value=\"{{ filter_money_in_good_from }}\"> </div> <div class=\"col\"> <label for=\"filter_money_in_good_to\">Денег в товаре, до:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_money_in_good_to\" value=\"{{ filter_money_in_good_to }}\"> </div> </div> </div> </div> <div class=\"row\"> <div class=\"col-md-3\"> <div class=\"form-group row yellow-light\"> <div class=\"col\"> <label for=\"filter_free_fee_one_from\">ПЧП с 1 ед., от:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_free_fee_one_from\" value=\"{{ filter_free_fee_one_from }}\"> </div> <div class=\"col\"> <label for=\"filter_free_fee_one_to\">ПЧП с 1 ед., до:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_free_fee_one_to\" value=\"{{ filter_free_fee_one_to }}\"> </div> </div> </div> <div class=\"col-md-3\"> <div class=\"form-group row yellow-light\"> <div class=\"col\"> <label for=\"filter_free_fee_all_from\">ПЧП с товара, от:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_free_fee_all_from\" value=\"{{ filter_free_fee_all_from }}\"> </div> <div class=\"col\"> <label for=\"filter_free_fee_all_to\">ПЧП с товара, до:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_free_fee_all_to\" value=\"{{ filter_free_fee_all_to }}\"> </div> </div> </div> <div class=\"col-md-3\"> <div class=\"form-group row\"> <div class=\"col\"> <label for=\"filter_medium_buy_from\">Средний выкуп, от:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_medium_buy_from\" value=\"{{ filter_medium_buy_from }}\"> </div> <div class=\"col\"> <label for=\"filter_medium_buy_to\">Средний выкуп, до:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_medium_buy_to\" value=\"{{ filter_medium_buy_to }}\"> </div> </div> </div> <div class=\"col-md-3\"> <div class=\"form-group row\"> <div class=\"col\"> <label for=\"filter_cost_price_from\">Себестоимость, от:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_cost_price_from\" value=\"{{ filter_cost_price_from }}\"> </div> <div class=\"col\"> <label for=\"filter_cost_price_to\">Себестоимость, до:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_cost_price_to\" value=\"{{ filter_cost_price_to }}\"> </div> </div> </div> </div> <div class=\"row\"> <div class=\"col-md-3\"> <div class=\"form-group row red-light\"> <div class=\"col\"> <label for=\"filter_number_sale_from\">Выкуплено товара, от:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_number_sale_from\" value=\"{{ filter_number_sale_from }}\"> </div> <div class=\"col\"> <label for=\"filter_number_sale_to\">Выкуплено товара, до:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_number_sale_to\" value=\"{{ filter_number_sale_to }}\"> </div> </div> </div> <div class=\"col-md-3\"> <div class=\"form-group row red-light\"> <div class=\"col\"> <label for=\"filter_number_sale_price_from\">Средняя цена, от:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_number_sale_price_from\" value=\"{{ filter_number_sale_price_from }}\"> </div> <div class=\"col\"> <label for=\"filter_number_sale_price_to\">Средняя цена, до:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_number_sale_price_to\" value=\"{{ filter_number_sale_price_to }}\"> </div> </div> </div> <div class=\"col-md-3\"> <div class=\"form-group row red-light\"> <div class=\"col\"> <label for=\"filter_fee_from\">Выручка, от:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_fee_from\" value=\"{{ filter_fee_from }}\"> </div> <div class=\"col\"> <label for=\"filter_fee_to\">Выручка, до:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_fee_to\" value=\"{{ filter_fee_to }}\"> </div> </div> </div> <div class=\"col-md-3\"> <div class=\"form-group row red-light\"> <div class=\"col\"> <label for=\"filter_free_fee_from_one_from\">ЧП с 1 ед., от:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_free_fee_from_one_from\" value=\"{{ filter_free_fee_from_one_from }}\"> </div> <div class=\"col\"> <label for=\"filter_free_fee_from_one_to\">ЧП с 1 ед., до:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_free_fee_from_one_to\" value=\"{{ filter_free_fee_from_one_to }}\"> </div> </div> </div> </div> <div class=\"row\"> <div class=\"col-md-3\"> <div class=\"form-group row red-light\"> <div class=\"col\"> <label for=\"filter_free_fee_from_all_from\">ЧП с товара, от:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_free_fee_from_all_from\" value=\"{{ filter_free_fee_from_all_from }}\"> </div> <div class=\"col\"> <label for=\"filter_free_fee_from_all_to\">ЧП с товара, до:</label> <input type=\"text\" class=\"form-control mb-2\" name=\"filter_free_fee_from_all_to\" value=\"{{ filter_free_fee_from_all_to }}\"> </div> </div> </div> <div class=\"col-md-7\"> </div> <div class=\"col-md-2 pt-4 text-right\"> <input type=\"reset\" class=\"btn btn-info\" name=\"reset\" value=\"Сбросить\"> <input type=\"submit\" class=\"btn btn-primary\" name=\"filter\" value=\"Фильтровать\"> </div> </div> </div> </form> </div> </div> </div> </div> <div class=\"row\"> <div class=\"col-12\"> <div class=\"card\"> <div class=\"card-body table-responsive-sm p-0\"> <table class=\"table table-hover text-nowrap\"> <thead> <tr> <th title=\"Фирменный ABC\">Рейтинг <a href=\"{{ path('analytics', {sortBy: 'our_rate', sortType: 'asc'}) }}\" class=\"fa fa-arrow{% if sortBy=='our_rate' and sortType=='asc' %}-circle{% endif %}-up\"></a> <a href=\"{{ path('analytics', {sortBy: 'our_rate', sortType: 'desc'}) }}\" class=\"fa fa-arrow{% if sortBy=='our_rate' and sortType=='desc' %}-circle{% endif %}-down\"></a></th> <th>Фото</th> <th title=\"Название Товара, Бренд, SKU, Артикул WB, ссылка на WB, Рейтинг WB\">Товар</th> <th style=\"width:50px;word-wrap: break-word;white-space: initial !important;\" title=\"Остатки товара (штрихкод), с дифференциацией по складам\">Наличие на складах <a href=\"{{ path('analytics', {sortBy: 'amount', sortType: 'asc'}) }}\" class=\"fa fa-arrow{% if sortBy=='amount' and sortType=='asc' %}-circle{% endif %}-up\"></a> <a href=\"{{ path('analytics', {sortBy: 'amount', sortType: 'desc'}) }}\" class=\"fa fa-arrow{% if sortBy=='amount' and sortType=='desc' %}-circle{% endif %}-down\"></a></th> <th style=\"width:50px;word-wrap: break-word;white-space: initial !important;\" title=\"Рыночная цена после скидки на данный момент\">Рыночная цена <a href=\"{{ path('analytics', {sortBy: 'price', sortType: 'asc'}) }}\" class=\"fa fa-arrow{% if sortBy=='price' and sortType=='asc' %}-circle{% endif %}-up\"></a> <a href=\"{{ path('analytics', {sortBy: 'price', sortType: 'desc'}) }}\" class=\"fa fa-arrow{% if sortBy=='price' and sortType=='desc' %}-circle{% endif %}-down\"></a></th> <th style=\"width:50px;word-wrap: break-word;white-space: initial !important;\" title=\"Денег в товаре на данный момент\">Денег в товаре <a href=\"{{ path('analytics', {sortBy: 'money_in_good', sortType: 'asc'}) }}\" class=\"fa fa-arrow{% if sortBy=='money_in_good' and sortType=='asc' %}-circle{% endif %}-up\"></a> <a href=\"{{ path('analytics', {sortBy: 'money_in_good', sortType: 'desc'}) }}\" class=\"fa fa-arrow{% if sortBy=='money_in_good' and sortType=='desc' %}-circle{% endif %}-down\"></a></th> <th style=\"width:50px;word-wrap: break-word;white-space: initial !important;\" title=\"Потенциальная чистая прибыль с одной единицы товара при текущей рыночной цене\">ПЧП с 1 ед. <a href=\"{{ path('analytics', {sortBy: 'free_fee_one', sortType: 'asc'}) }}\" class=\"fa fa-arrow{% if sortBy=='free_fee_one' and sortType=='asc' %}-circle{% endif %}-up\"></a> <a href=\"{{ path('analytics', {sortBy: 'free_fee_one', sortType: 'desc'}) }}\" class=\"fa fa-arrow{% if sortBy=='free_fee_one' and sortType=='desc' %}-circle{% endif %}-down\"></a></th> <th style=\"width:50px;word-wrap: break-word;white-space: initial !important;\" title=\"Потенциальная чистая прибыль со всего товара в наличии товара при текущей рыночной цене\">ПЧП с товара <a href=\"{{ path('analytics', {sortBy: 'free_fee_all', sortType: 'asc'}) }}\" class=\"fa fa-arrow{% if sortBy=='free_fee_all' and sortType=='asc' %}-circle{% endif %}-up\"></a> <a href=\"{{ path('analytics', {sortBy: 'free_fee_all', sortType: 'desc'}) }}\" class=\"fa fa-arrow{% if sortBy=='free_fee_all' and sortType=='desc' %}-circle{% endif %}-down\"></a></th> <th style=\"width:50px;word-wrap: break-word;white-space: initial !important;\" title=\"Процент выкупа товаров по данным WB\">Средний выкуп <a href=\"{{ path('analytics', {sortBy: 'medium_buy', sortType: 'asc'}) }}\" class=\"fa fa-arrow{% if sortBy=='medium_buy' and sortType=='asc' %}-circle{% endif %}-up\"></a> <a href=\"{{ path('analytics', {sortBy: 'medium_buy', sortType: 'desc'}) }}\" class=\"fa fa-arrow{% if sortBy=='medium_buy' and sortType=='desc' %}-circle{% endif %}-down\"></a></th> <th style=\"width:50px;word-wrap: break-word;white-space: initial !important;\" title=\"Себестоимость\">Себестоимость <a href=\"{{ path('analytics', {sortBy: 'cost_price', sortType: 'asc'}) }}\" class=\"fa fa-arrow{% if sortBy=='cost_price' and sortType=='asc' %}-circle{% endif %}-up\"></a> <a href=\"{{ path('analytics', {sortBy: 'cost_price', sortType: 'desc'}) }}\" class=\"fa fa-arrow{% if sortBy=='cost_price' and sortType=='desc' %}-circle{% endif %}-down\"></a></th> <th style=\"width:50px;word-wrap: break-word;white-space: initial !important;\" title=\"Общее количеств о выкупов по всему товару за выбранный период (все размеры и склады)\">Выкуплено товара <a href=\"{{ path('analytics', {sortBy: 'number_sale', sortType: 'asc'}) }}\" class=\"fa fa-arrow{% if sortBy=='number_sale' and sortType=='asc' %}-circle{% endif %}-up\"></a> <a href=\"{{ path('analytics', {sortBy: 'number_sale', sortType: 'desc'}) }}\" class=\"fa fa-arrow{% if sortBy=='number_sale' and sortType=='desc' %}-circle{% endif %}-down\"></a></th> <th style=\"width:50px;word-wrap: break-word;white-space: initial !important;\" title=\"Средняя цена одной продажи за выбранный период\">Средняя цена <a href=\"{{ path('analytics', {sortBy: 'number_sale_price', sortType: 'asc'}) }}\" class=\"fa fa-arrow{% if sortBy=='number_sale_price' and sortType=='asc' %}-circle{% endif %}-up\"></a> <a href=\"{{ path('analytics', {sortBy: 'number_sale_price', sortType: 'desc'}) }}\" class=\"fa fa-arrow{% if sortBy=='number_sale_price' and sortType=='desc' %}-circle{% endif %}-down\"></a></th> <th style=\"width:50px;word-wrap: break-word;white-space: initial !important;\" title=\"Сумма выкупов по всему товару за выбранный период (все размеры и склады)\">Выручка <a href=\"{{ path('analytics', {sortBy: 'fee', sortType: 'asc'}) }}\" class=\"fa fa-arrow{% if sortBy=='fee' and sortType=='asc' %}-circle{% endif %}-up\"></a> <a href=\"{{ path('analytics', {sortBy: 'fee', sortType: 'desc'}) }}\" class=\"fa fa-arrow{% if sortBy=='fee' and sortType=='desc' %}-circle{% endif %}-down\"></a></th> <th style=\"width:50px;word-wrap: break-word;white-space: initial !important;\" title=\"Чистая прибыль с одной единицы проданного товара в среднем за выбранный период)\">ЧП с 1 ед. <a href=\"{{ path('analytics', {sortBy: 'free_fee_from_one', sortType: 'asc'}) }}\" class=\"fa fa-arrow{% if sortBy=='free_fee_from_one' and sortType=='asc' %}-circle{% endif %}-up\"></a> <a href=\"{{ path('analytics', {sortBy: 'free_fee_from_one', sortType: 'desc'}) }}\" class=\"fa fa-arrow{% if sortBy=='free_fee_from_one' and sortType=='desc' %}-circle{% endif %}-down\"></a></th> <th style=\"width:50px;word-wrap: break-word;white-space: initial !important;\" title=\"Чистая прибыль со всего проданного товара за выбранный период\">ЧП с товара <a href=\"{{ path('analytics', {sortBy: 'free_fee_from_all', sortType: 'asc'}) }}\" class=\"fa fa-arrow{% if sortBy=='free_fee_from_all' and sortType=='asc' %}-circle{% endif %}-up\"></a> <a href=\"{{ path('analytics', {sortBy: 'free_fee_from_all', sortType: 'desc'}) }}\" class=\"fa fa-arrow{% if sortBy=='free_fee_from_all' and sortType=='desc' %}-circle{% endif %}-down\"></a></th> {# <th>free_fee_from_all</th> <th>sum_free_fee_all_part</th> <th>part_amount</th> #} <th title=\"\">Динамика продаж</th> </tr> </thead> <tbody> <tr> {% if cards is not empty %} {% for card in cards %} <td>{{ card.our_rate }}</td> <td> {% if card.img is not empty %} <img width=\"100\" alt=\"\" src=\"{{ card.img }}\" /> {% endif %} </td> <td> <div ><b>{{ card.object }}</b></div> <div ><b>Бренд:</b> {{ card.brand }}</div> <div ><b>Артикул:</b> <a target=\"_blank\" class=\"wb-link\" href=\"https://www.wildberries.ru/catalog/{{ card.nmID }}/detail.aspx\">{{ card.nmID }}</a></div> <div ><b>Рейтинг WB: {{ card.wb_rating }}</b></div> </td> <td><a href=\"javascript:void(0)\" class=\"show_stocks_list\"><strong>{{ card.amount }} шт.</strong></a> <div class=\"stocks_list\"> {% for stock in card.amountStocks %} {% if stock.quantity %} {{ stock.quantity }} шт.<br> {{ stock.warehouse_name }}<br> {% if stock.tech_size is not empty %}{{ stock.tech_size }}<br>{% endif %} <div id=\"ajax-edit-comm-{{ stock.id }}\">Комм(%): {{ stock.commision }} <a href=\"#\" class=\"ajax-edit-comm\" data-id=\"{{ stock.id }}\" data-price=\"{{ stock.commision }}\"><i class=\"fa fa-edit\"></i></a></div> <div id=\"ajax-edit-log-{{ stock.id }}\">Логис(р): {{ stock.logistics }} <a href=\"#\" class=\"ajax-edit-log\" data-id=\"{{ stock.id }}\" data-price=\"{{ stock.logistics }}\"><i class=\"fa fa-edit\"></i></a></div> <br><br> {% endif %} {% endfor %} </div> </td> <td>{{ card.price }} ₽</td> <td class=\"green-light\">{{ card.money_in_good }} ₽</td> <td class=\"yellow-light\">{{ card.free_fee_one }} ₽</td> <td class=\"yellow-light\">{{ card.free_fee_all }} ₽</td> <td>{{ card.medium_buy }}</td> <td id=\"ajax-edit-cost-{{ card.id }}\">{{ card.cost_price }} ₽ <a href=\"#\" class=\"ajax-edit-cost\" data-id=\"{{ card.id }}\" data-price=\"{{ card.cost_price }}\"><i class=\"fa fa-edit\"></i></a></td> <td class=\"red-light\">{{ card.number_sale }}</td> <td class=\"red-light\">{{ card.number_sale_price }} ₽</td> <td class=\"red-light\">{{ card.fee }} ₽</td> <td class=\"red-light\">{{ card.free_fee_from_one }} ₽</td> <td class=\"red-light\">{{ card.free_fee_from_all }} ₽</td> {#<td>{{ card.sum_free_fee_all_part }}</td> <td>{{ card.part_amount }}</td> <td>{{ card.sum_two }}</td> #} <td> <div class=\"chart\" data-id=\"{{ card.id }}\" data-date=\"{% if date %}{{ date }}{% endif %}\"> <canvas class=\"lineChart_{{ card.nmID }}\" style=\"min-height: 150px; height: 150px; max-height: 150px; max-width: 100%;\"></canvas> </div> </td> </tr> {% endfor %} {% endif %} </tbody> </table> </div> <!-- /.card-body --> <div class=\"card-footer clearfix\"> {{ knp_pagination_render(cards, 'analytics/pagination.html.twig') }} </div> {# <div class=\"card-footer clearfix\"> <ul class=\"pagination pagination-sm m-0 float-right\"> <li class=\"page-item\"><a class=\"page-link\" href=\"#\">«</a></li> <li class=\"page-item\"><a class=\"page-link\" href=\"#\">1</a></li> <li class=\"page-item\"><a class=\"page-link\" href=\"#\">2</a></li> <li class=\"page-item\"><a class=\"page-link\" href=\"#\">3</a></li> <li class=\"page-item\"><a class=\"page-link\" href=\"#\">»</a></li> </ul> </div> #} </div> <!-- /.card --> </div> </div> </div> </section> <!-- /.content --> </div> <!-- /.content-wrapper --> <div class=\"modal\" id=\"chartModal\" tabindex=\"-1\" style=\"max-width: 80%\"> <div class=\"modal-dialog\" role=\"document\" style=\"max-width: 80%\"> <div class=\"modal-content\"> <div class=\"modal-header\"> <h5 class=\"modal-title\"></h5> <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"> <span aria-hidden=\"true\">×</span> </button> </div> <div class=\"modal-body\"> <div class=\"chart-modal\"> <canvas class=\"lineChart_modal\" style=\"min-height: 150px; height: 500px; max-height: 400px; width: 800px; max-width: 100%;\"></canvas> </div> </div> </div> </div> </div> {% endblock content %} {% block javascript_bottom %} {{ parent() }} <script> \$(function () { /* ChartJS * ------- * Here we will create a few charts using ChartJS */ var areaChartData = { labels : [{{ graph_dates|raw }}], datasets: [ { label : 'Наличие на складах', backgroundColor : 'rgba(10,10,188,1)', borderColor : 'rgba(10,10,188,1)', pointRadius : false, pointColor : '#3b8bba', pointStrokeColor : 'rgba(10,10,188,1)', pointHighlightFill : '#fff', pointHighlightStroke: 'rgba(220,220,220,1)', data : [] }, { label : 'Рыночная цена', backgroundColor : 'rgba(210, 214, 222, 1)', borderColor : 'rgba(210, 214, 222, 1)', pointRadius : false, pointColor : 'rgba(210, 214, 222, 1)', pointStrokeColor : '#c1c7d1', pointHighlightFill : '#fff', pointHighlightStroke: 'rgba(220,220,220,1)', data : [] }, { label : 'Выкуплено товара', backgroundColor : 'rgba(10, 214, 10, 1)', borderColor : 'rgba(10, 214, 10, 1)', pointRadius : false, pointColor : 'rgba(10, 214, 10, 1)', pointStrokeColor : '#c1c7d1', pointHighlightFill : '#fff', pointHighlightStroke: 'rgba(220,220,220,1)', data : [] }, ] } var areaChartOptions = { maintainAspectRatio : false, responsive : true, legend: { display: false }, scales: { xAxes: [{ gridLines : { display : false, } }], yAxes: [{ gridLines : { display : false, } }] } } //------------- //- LINE CHART - //-------------- {% if cards is not empty %} {% for card in cards %} var lineChartCanvas = \$('.lineChart_{{ card.nmID }}').get(0).getContext('2d') var lineChartOptions = \$.extend(true, {}, areaChartOptions) var lineChartData = \$.extend(true, {}, areaChartData) lineChartData.datasets[0].fill = false; lineChartData.datasets[1].fill = false; lineChartData.datasets[2].fill = false; lineChartData.datasets[0]['data'] = [{{ stock_quantity_full[card.nmID]|raw }}]; lineChartData.datasets[1]['data'] = [{{ stock_price[card.nmID]|raw }}]; lineChartData.datasets[2]['data'] = [{{ number_sale[card.nmID]|raw }}]; lineChartOptions.datasetFill = false var lineChart = new Chart(lineChartCanvas, { type: 'line', data: lineChartData, options: lineChartOptions }) {% endfor %} {% endif %} \$(document).on('click', '.chart', function() { let id = \$(this).data('id') let data_date = \$(this).data('date') let url = '/lk/analytics/chart/'+id let getdata = 'id='+id+'&date='+data_date \$.ajax({ type: \"GET\", url: url, data: getdata, success: (data) => { var areaChartData = { labels : [{{ graph_dates|raw }}], axisY:[{ title: \"Наличие на складах\", lineColor: \"rgba(10,10,188,1)\", tickColor: \"rgba(10,10,188,1)\", labelFontColor: \"rgba(10,10,188,1)\", titleFontColor: \"rgba(10,10,188,1)\", includeZero: true, }, { title: \"Рыночная цена\", lineColor: \"rgba(210, 214, 222, 1)\", tickColor: \"rgba(210, 214, 222, 1)\", labelFontColor: \"rgba(210, 214, 222, 1)\", titleFontColor: \"rgba(210, 214, 222, 1)\", includeZero: true, }], axisY2: { title: \"Выкуплено товара\", lineColor: \"rgba(10, 214, 10, 1)\", tickColor: \"rgba(10, 214, 10, 1)\", labelFontColor: \"rgba(10, 214, 10, 1)\", titleFontColor: \"rgba(10, 214, 10, 1)\", includeZero: true, }, datasets: [ { label : 'Наличие на складах', axisYIndex : 0, showInLegend : true, type : \"line\", backgroundColor : 'rgba(10,10,188,1)', borderColor : 'rgba(10,10,188,1)', pointRadius : false, pointColor : '#3b8bba', pointStrokeColor : 'rgba(10,10,188,1)', pointHighlightFill : '#fff', pointHighlightStroke: 'rgba(220,220,220,1)', data : [] }, { label : 'Рыночная цена', axisYIndex : 1, showInLegend : true, type : \"line\", backgroundColor : 'rgba(210, 214, 222, 1)', borderColor : 'rgba(210, 214, 222, 1)', pointRadius : false, pointColor : 'rgba(210, 214, 222, 1)', pointStrokeColor : '#c1c7d1', pointHighlightFill : '#fff', pointHighlightStroke: 'rgba(220,220,220,1)', data : [] }, { label : 'Выкуплено товара', axisYType : \"secondary\", showInLegend : true, type : \"line\", backgroundColor : 'rgba(10, 214, 10, 1)', borderColor : 'rgba(10, 214, 10, 1)', pointRadius : false, pointColor : 'rgba(10, 214, 10, 1)', pointStrokeColor : '#c1c7d1', pointHighlightFill : '#fff', pointHighlightStroke: 'rgba(220,220,220,1)', data : [] }, ] } var areaChartOptions = { maintainAspectRatio : false, responsive : true, legend: { display: true, cursor: \"pointer\", }, axisX: { title: \"Даты\" }, axisY: { title: \"Значения\", }, } \$('#chartModal .modal-title').html('График показателей для товара: '+data.title) \$('#chartModal').modal() var lineChartCanvas = \$('#chartModal .lineChart_modal').get(0).getContext('2d') var lineChartOptions = \$.extend(true, {}, areaChartOptions) var lineChartData = \$.extend(true, {}, areaChartData) lineChartData.datasets[0].fill = false; lineChartData.datasets[1].fill = false; lineChartData.datasets[2].fill = false; lineChartData.datasets[0]['data'] = data.stock_quantity_full; lineChartData.datasets[1]['data'] = data.stock_price; lineChartData.datasets[2]['data'] = data.number_sale; lineChartOptions.datasetFill = false var lineChart = new Chart(lineChartCanvas, { type: 'line', data: lineChartData, options: lineChartOptions }) } }); return false }) \$('#custom_date').daterangepicker({ \"locale\": { \"format\": \"YYYY-MM-DD\", \"separator\": \" - \", \"applyLabel\": \"Применить\", \"cancelLabel\": \"Отмена\", \"fromLabel\": \"От\", \"toLabel\": \"До\", \"customRangeLabel\": \"Custom\", \"weekLabel\": \"W\", \"daysOfWeek\": [ \"Вс\", \"Пн\", \"Вт\", \"Ср\", \"Чт\", \"Пт\", \"Сб\" ], \"monthNames\": [ \"Январь\", \"Февраль\", \"Март\", \"Апрель\", \"Май\", \"Июнь\", \"Июль\", \"Август\", \"Сентябрь\", \"Октябрь\", \"Ноябрь\", \"Декабрь\" ], \"firstDay\": 1 }, \"startDate\": \"2023-08-08\", \"endDate\": \"2023-08-14\", \"minDate\": \"2023-06-01\", \"maxDate\": \"2023-08-14\" }, function(start, end, label) { location.href='/lk/analytics?custom_date='+start.format('YYYY-MM-DD')+' - '+end.format('YYYY-MM-DD'); }); \$(document).on('click', '#custom_date_btn', function() { location.href='/lk/analytics?custom_date='+\$('#custom_date').val(); }); \$(document).on('click', '#show-filter', function() { if (\$('.filter-block').hasClass('active')) { \$('.filter-block').slideUp().removeClass('active'); \$(this).html('Показать фильтр'); } else { \$('.filter-block').slideDown().addClass('active'); \$(this).html('Скрыть фильтр'); } }); \$(document).on('click', '.show_stocks_list', function() { let stocks_list = \$(this).siblings(\$('.stocks_list')) if (stocks_list.css('display')=='none') stocks_list.slideDown(); else stocks_list.slideUp(); }); \$(document).on('click', '.ajax-edit-cost', function() { let id = \$(this).data('id') let price = \$(this).data('price') \$('#ajax-edit-cost-'+id).html('<input type=\"text\" value=\"'+price+'\" id=\"ajax-cost-value-'+id+'\" style=\"width:90px;\"> <a href=\"#\" class=\"ajax-save-cost\" data-id=\"'+id+'\"><i class=\"fa fa-save\"></i></a>') return false }) \$(document).on('click', '.ajax-save-cost', function() { let id = \$(this).data('id') let price = \$('#ajax-cost-value-'+id).val() let url = '/lk/analytics/save/cost/'+id let getdata = 'price='+price \$.ajax({ type: \"GET\", url: url, data: getdata, // beforeSend: () => { // button.addClass('ajax-executing'); // button.prop('disabled', true); // }, success: (data) => { \$('#ajax-edit-cost-'+id).html(data+' <a href=\"#\" class=\"ajax-edit-cost\" data-id=\"'+id+'\" data-price=\"'+data+'\"><i class=\"fa fa-edit\"></i></a>') } }); return false }) \$(document).on('click', '.ajax-edit-comm', function() { let id = \$(this).data('id') let price = \$(this).data('price') \$('#ajax-edit-comm-'+id).html('<input type=\"text\" value=\"'+price+'\" id=\"ajax-comm-value-'+id+'\" style=\"width:90px;\"> <a href=\"#\" class=\"ajax-save-comm\" data-id=\"'+id+'\"><i class=\"fa fa-save\"></i></a>') return false }) \$(document).on('click', '.ajax-save-comm', function() { let id = \$(this).data('id') let price = \$('#ajax-comm-value-'+id).val() let url = '/lk/analytics/save/comm/'+id let getdata = 'price='+price \$.ajax({ type: \"GET\", url: url, data: getdata, success: (data) => { \$('#ajax-edit-comm-'+id).html('Комм(%): '+data+' <a href=\"#\" class=\"ajax-edit-comm\" data-id=\"'+id+'\" data-price=\"'+data+'\"><i class=\"fa fa-edit\"></i></a>') } }); return false }) \$(document).on('click', '.ajax-edit-log', function() { let id = \$(this).data('id') let price = \$(this).data('price') \$('#ajax-edit-log-'+id).html('<input type=\"text\" value=\"'+price+'\" id=\"ajax-log-value-'+id+'\" style=\"width:90px;\"> <a href=\"#\" class=\"ajax-save-log\" data-id=\"'+id+'\"><i class=\"fa fa-save\"></i></a>') return false }) \$(document).on('click', '.ajax-save-log', function() { let id = \$(this).data('id') let price = \$('#ajax-log-value-'+id).val() let url = '/lk/analytics/save/log/'+id let getdata = 'price='+price \$.ajax({ type: \"GET\", url: url, data: getdata, success: (data) => { \$('#ajax-edit-log-'+id).html('Логис(р): '+data+' <a href=\"#\" class=\"ajax-edit-log\" data-id=\"'+id+'\" data-price=\"'+data+'\"><i class=\"fa fa-edit\"></i></a>') } }); return false }) }) </script> {% endblock %}", "analytics/index.html.twig", "/home/www/wb/templates/analytics/index.html.twig"); } }