var/cache/dev/twig/3b/3b3e92a590dc65b528fc8d422cb8519a.php line 33

  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @Flexy/FrontBundle/Themes/Lasalle/templates/admin/statistics/admin/_content.html.twig */
  14. class __TwigTemplate_0fadb68123e8280a09264eebf9874008 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Flexy/FrontBundle/Themes/Lasalle/templates/admin/statistics/admin/_content.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Flexy/FrontBundle/Themes/Lasalle/templates/admin/statistics/admin/_content.html.twig"));
  33.         // line 1
  34.         echo "<turbo-frame id=\"render-stats\" data-turbo-action=\"advance\" >
  35. \t
  36. \t
  37. \t";
  38.         // line 5
  39.         if ( !array_key_exists("store"$context)) {
  40.             // line 6
  41.             echo "
  42. \t\t";
  43.             // line 7
  44.             $context["store"] = null;
  45.             // line 8
  46.             echo "
  47. \t";
  48.         }
  49.         // line 10
  50.         echo "
  51. \t";
  52.         // line 11
  53.         if (( !array_key_exists("year"$context) || (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'11$this->source); })()), "request", [], "any"falsefalsefalse11), "get", [=> "year"], "method"falsefalsefalse11) == "0"))) {
  54.             // line 12
  55.             echo "
  56. \t\t\t";
  57.             // line 14
  58.             $context["year"] = null;
  59.             // line 15
  60.             echo "\t\t
  61. \t";
  62.         }
  63.         // line 18
  64.         echo "
  65. \t\t";
  66.         // line 19
  67.         if (( !array_key_exists("month"$context) || (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'19$this->source); })()), "request", [], "any"falsefalsefalse19), "get", [=> "month"], "method"falsefalsefalse19) == "0"))) {
  68.             // line 20
  69.             echo "
  70. \t\t";
  71.             // line 21
  72.             $context["month"] = null;
  73.             // line 22
  74.             echo "
  75. \t";
  76.         }
  77.         // line 24
  78.         echo "
  79. \t
  80. \t
  81. \t
  82. \t<div class=\"row header\" >
  83. \t\t<div class=\"col-4\" >
  84. \t\t\t<h2 style=\"font-weight:bold;font-size:16px;\" class=\"title\"><i class=\"fa-solid fa-chart-pie\"></i> ";
  85.         // line 31
  86.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Dashboard"), "html"nulltrue);
  87.         echo " ";
  88.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["settings"]) || array_key_exists("settings"$context) ? $context["settings"] : (function () { throw new RuntimeError('Variable "settings" does not exist.'31$this->source); })()), "get", [], "any"falsefalsefalse31), "projectName", [], "any"falsefalsefalse31), "html"nulltrue);
  89.         echo "
  90. \t\t\t<br>
  91. \t\t\t";
  92.         // line 33
  93.         if (((isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'33$this->source); })()) != null)) {
  94.             // line 34
  95.             echo "\t\t\t\t<span class=\"badge badge-info p-1\" ><i class=\"fa-solid fa-shop\"></i> ";
  96.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Store"), "html"nulltrue);
  97.             echo " : ";
  98.             echo twig_escape_filter($this->env, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'34$this->source); })()), "html"nulltrue);
  99.             echo "</span>
  100. \t\t\t";
  101.         }
  102.         // line 36
  103.         echo "\t\t\t";
  104.         if ((((isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'36$this->source); })()) != null) || ((isset($context["month"]) || array_key_exists("month"$context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.'36$this->source); })()) != null))) {
  105.             // line 37
  106.             echo "
  107. \t\t\t\t<span class=\"badge badge-info p-1\" > 
  108. \t\t\t\t<i class=\"fa-solid fa-filter-circle-dollar\"></i>
  109. \t\t\t\t";
  110.             // line 40
  111.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Result for priod"), "html"nulltrue);
  112.             echo " :
  113. \t\t\t\t";
  114.             // line 41
  115.             if (((isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'41$this->source); })()) != null)) {
  116.                 // line 42
  117.                 echo "\t\t\t\t\t";
  118.                 echo twig_escape_filter($this->env, (isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'42$this->source); })()), "html"nulltrue);
  119.                 echo 
  120. \t\t\t\t";
  121.             }
  122.             // line 44
  123.             echo "\t\t\t\t";
  124.             if (((isset($context["month"]) || array_key_exists("month"$context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.'44$this->source); })()) != null)) {
  125.                 // line 45
  126.                 echo "\t\t\t\t
  127. \t\t\t\t\t";
  128.                 // line 46
  129.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_date_format_filter($this->env, ("2000-" . (isset($context["month"]) || array_key_exists("month"$context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.'46$this->source); })())), "F")), "html"nulltrue);
  130.                 echo "</span>
  131. \t\t\t\t";
  132.             }
  133.             // line 48
  134.             echo "\t\t\t";
  135.         }
  136.         // line 49
  137.         echo "\t\t\t
  138. \t\t\t</h2>
  139. \t\t\t
  140. \t\t</div>
  141. \t\t<div class=\"col-8\" >
  142. \t\t\t
  143. \t\t\t<form action=\"";
  144.         // line 57
  145.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_stats");
  146.         echo "\"  method=\"POST\">
  147. \t\t\t
  148. \t\t\t\t<div class=\"row\">
  149. \t\t\t\t\t<div class=\"col-2\" >
  150. \t\t\t\t\t\t<button id=\"btn-filter-stats\" class=\"d-none btn btn-success d-block btn-large\" >Filtrer</button>
  151. \t\t\t\t\t</div>
  152. \t\t\t\t\t<div class=\"col-4\" >
  153. \t\t\t\t\t";
  154.         // line 65
  155.         if ((twig_length_filter($this->env, (isset($context["stores"]) || array_key_exists("stores"$context) ? $context["stores"] : (function () { throw new RuntimeError('Variable "stores" does not exist.'65$this->source); })())) > 1)) {
  156.             // line 66
  157.             echo "\t\t\t\t\t\t<select id=\"store-select\" class=\"form-select\" name=\"store\" aria-label=\"Default select example\">
  158. \t\t\t\t\t\t\t<option value=\"0\" selected>";
  159.             // line 67
  160.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("All stores"), "html"nulltrue);
  161.             echo "</option>
  162. \t\t\t\t\t\t\t";
  163.             // line 68
  164.             $context['_parent'] = $context;
  165.             $context['_seq'] = twig_ensure_traversable((isset($context["stores"]) || array_key_exists("stores"$context) ? $context["stores"] : (function () { throw new RuntimeError('Variable "stores" does not exist.'68$this->source); })()));
  166.             foreach ($context['_seq'] as $context["_key"] => $context["singleStore"]) {
  167.                 // line 69
  168.                 echo "\t\t\t\t\t\t\t\t<option ";
  169.                 if (($context["singleStore"] == (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'69$this->source); })()))) {
  170.                     echo "selected";
  171.                 }
  172.                 echo " value=\"";
  173.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["singleStore"], "id", [], "any"falsefalsefalse69), "html"nulltrue);
  174.                 echo "\">
  175. \t\t\t\t\t\t\t\t\t";
  176.                 // line 70
  177.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["singleStore"], "name", [], "any"falsefalsefalse70), "html"nulltrue);
  178.                 echo "
  179. \t\t\t\t\t\t\t\t</option>
  180. \t\t\t\t\t\t\t";
  181.             }
  182.             $_parent $context['_parent'];
  183.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['singleStore'], $context['_parent'], $context['loop']);
  184.             $context array_intersect_key($context$_parent) + $_parent;
  185.             // line 73
  186.             echo "\t\t\t\t\t\t</select>
  187. \t\t\t\t\t\t
  188. \t\t\t\t\t\t";
  189.         }
  190.         // line 78
  191.         echo "\t\t\t\t\t</div>
  192. \t\t\t\t\t
  193. \t\t\t\t\t<div class=\"col-3\" >
  194. \t\t\t\t\t\t<select id=\"year-select\" class=\"form-select\" name=\"year\" aria-label=\"Default select example\">
  195. \t\t\t\t\t\t\t<option value=\"0\">";
  196.         // line 83
  197.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("All years"), "html"nulltrue);
  198.         echo "</option>
  199. \t\t\t\t\t\t\t";
  200.         // line 84
  201.         $context['_parent'] = $context;
  202.         $context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["shopStatisticProvider"]) || array_key_exists("shopStatisticProvider"$context) ? $context["shopStatisticProvider"] : (function () { throw new RuntimeError('Variable "shopStatisticProvider" does not exist.'84$this->source); })()), "periodsOrdersOptions", [=> (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'84$this->source); })())], "method"falsefalsefalse84), function ($__a__$__b__) use ($context$macros) { $context["a"] = $__a__$context["b"] = $__b__; return (((twig_get_attribute($this->env$this->source, (isset($context["a"]) || array_key_exists("a"$context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.'84$this->source); })()), "year", [], "any"falsefalsefalse84) < twig_get_attribute($this->env$this->source, (isset($context["b"]) || array_key_exists("b"$context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.'84$this->source); })()), "year", [], "any"falsefalsefalse84))) ? (1) : ( -1)); }));
  203.         foreach ($context['_seq'] as $context["_key"] => $context["singleYear"]) {
  204.             // line 85
  205.             echo "\t\t\t\t\t\t\t\t<option ";
  206.             if ((twig_get_attribute($this->env$this->source$context["singleYear"], "year", [], "array"falsefalsefalse85) == (isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'85$this->source); })()))) {
  207.                 echo "selected";
  208.             }
  209.             echo " value=\"";
  210.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["singleYear"], "year", [], "array"falsefalsefalse85), "html"nulltrue);
  211.             echo "\">
  212. \t\t\t\t\t\t\t\t\t";
  213.             // line 86
  214.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["singleYear"], "year", [], "array"falsefalsefalse86), "html"nulltrue);
  215.             echo "
  216. \t\t\t\t\t\t\t\t</option>
  217. \t\t\t\t\t\t\t";
  218.         }
  219.         $_parent $context['_parent'];
  220.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['singleYear'], $context['_parent'], $context['loop']);
  221.         $context array_intersect_key($context$_parent) + $_parent;
  222.         // line 89
  223.         echo "\t\t\t\t\t\t\t
  224. \t\t\t\t\t\t</select>
  225. \t\t\t\t\t</div>
  226. \t\t\t\t\t<div class=\"col-3\" >
  227. \t\t\t\t\t\t
  228. \t\t\t\t\t\t\t<select id=\"months-select\" class=\"form-select\" name=\"month\" aria-label=\"Default select example\">
  229. \t\t\t\t\t\t\t<option value=\"0\">";
  230.         // line 97
  231.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("All months"), "html"nulltrue);
  232.         echo "</option>
  233. \t\t\t\t\t\t\t";
  234.         // line 98
  235.         $context['_parent'] = $context;
  236.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["shopStatisticProvider"]) || array_key_exists("shopStatisticProvider"$context) ? $context["shopStatisticProvider"] : (function () { throw new RuntimeError('Variable "shopStatisticProvider" does not exist.'98$this->source); })()), "periodsOrdersOptions", [=> (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'98$this->source); })())], "method"falsefalsefalse98));
  237.         foreach ($context['_seq'] as $context["_key"] => $context["singleYear"]) {
  238.             // line 99
  239.             echo "\t\t\t\t\t\t\t\t";
  240.             $context['_parent'] = $context;
  241.             $context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->envtwig_get_attribute($this->env$this->source$context["singleYear"], "months", [], "array"falsefalsefalse99), function ($__a__$__b__) use ($context$macros) { $context["a"] = $__a__$context["b"] = $__b__; return (((twig_get_attribute($this->env$this->source, (isset($context["a"]) || array_key_exists("a"$context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.'99$this->source); })()), "number", [], "any"falsefalsefalse99) < twig_get_attribute($this->env$this->source, (isset($context["b"]) || array_key_exists("b"$context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.'99$this->source); })()), "number", [], "any"falsefalsefalse99))) ? (1) : ( -1)); }));
  242.             foreach ($context['_seq'] as $context["_key"] => $context["singleMonth"]) {
  243.                 // line 100
  244.                 echo "\t\t\t\t\t\t\t\t\t";
  245.                 if ((twig_get_attribute($this->env$this->source$context["singleYear"], "year", [], "array"falsefalsefalse100) == (isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'100$this->source); })()))) {
  246.                     // line 101
  247.                     echo "\t\t\t\t\t\t\t\t\t\t<option ";
  248.                     if ((twig_get_attribute($this->env$this->source$context["singleMonth"], "number", [], "array"falsefalsefalse101) == (isset($context["month"]) || array_key_exists("month"$context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.'101$this->source); })()))) {
  249.                         echo "selected";
  250.                     }
  251.                     echo " value=\"";
  252.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["singleMonth"], "number", [], "array"falsefalsefalse101), "html"nulltrue);
  253.                     echo "\">
  254. \t\t\t\t\t\t\t\t\t\t\t ";
  255.                     // line 102
  256.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["singleMonth"], "name", [], "array"falsefalsefalse102), "html"nulltrue);
  257.                     echo "
  258. \t\t\t\t\t\t\t\t\t\t</option>
  259. \t\t\t\t\t\t\t\t\t";
  260.                 }
  261.                 // line 105
  262.                 echo "\t\t\t\t\t\t\t\t";
  263.             }
  264.             $_parent $context['_parent'];
  265.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['singleMonth'], $context['_parent'], $context['loop']);
  266.             $context array_intersect_key($context$_parent) + $_parent;
  267.             // line 106
  268.             echo "\t\t\t\t\t\t\t";
  269.         }
  270.         $_parent $context['_parent'];
  271.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['singleYear'], $context['_parent'], $context['loop']);
  272.         $context array_intersect_key($context$_parent) + $_parent;
  273.         // line 107
  274.         echo "\t\t\t\t\t\t\t
  275. \t\t\t\t\t\t</select>
  276. \t\t\t\t\t\t
  277. \t\t\t\t\t\t
  278. \t\t\t\t\t</div>
  279. \t\t\t\t\t
  280. \t\t\t\t\t
  281. \t\t\t\t</div>
  282. \t\t\t</form>
  283. \t\t</div>
  284. \t</div>
  285. \t<div class=\"row\" >
  286. \t\t\t<div class=\"col-12 col-md-5 p-4\" >
  287. \t\t\t<div class=\"row\" >
  288. \t\t<div class=\"col-4\">
  289. \t\t\t<div class=\"card p-3 mb-2 bg-purple-dark text-white\">
  290. \t\t\t\t<h6 class=\"text-white stats-title\"><i class=\"fa-solid fa-comment-dollar\"></i> ";
  291.         // line 130
  292.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Today"), "html"nulltrue);
  293.         echo "</h6>
  294. \t\t\t\t\t  
  295. \t\t\t\t<b>";
  296.         // line 132
  297.         echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["shopStatisticProvider"]) || array_key_exists("shopStatisticProvider"$context) ? $context["shopStatisticProvider"] : (function () { throw new RuntimeError('Variable "shopStatisticProvider" does not exist.'132$this->source); })()), "getRevenue", [=> (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'132$this->source); })()), => (isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'132$this->source); })()), => (isset($context["month"]) || array_key_exists("month"$context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.'132$this->source); })())], "method"falsefalsefalse132), "today", [], "array"falsefalsefalse132), 0","""), "html"nulltrue);
  298.         echo " ";
  299.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["settings"]) || array_key_exists("settings"$context) ? $context["settings"] : (function () { throw new RuntimeError('Variable "settings" does not exist.'132$this->source); })()), "get", [], "any"falsefalsefalse132), "currency", [], "any"falsefalsefalse132)), "html"nulltrue);
  300.         echo "</b>
  301. \t\t\t</div>
  302. \t\t</div>
  303. \t\t<div class=\"col-4\">
  304. \t\t\t<div class=\"card p-3 mb-2 bg-blue-dark text-white\">
  305. \t\t\t\t<h6 class=\"text-white stats-title\"><i class=\"fa-solid fa-comment-dollar\"></i> ";
  306.         // line 137
  307.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Yesterday"), "html"nulltrue);
  308.         echo "</h6>
  309. \t\t\t\t<b>";
  310.         // line 138
  311.         echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["shopStatisticProvider"]) || array_key_exists("shopStatisticProvider"$context) ? $context["shopStatisticProvider"] : (function () { throw new RuntimeError('Variable "shopStatisticProvider" does not exist.'138$this->source); })()), "getRevenue", [=> (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'138$this->source); })()), => (isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'138$this->source); })()), => (isset($context["month"]) || array_key_exists("month"$context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.'138$this->source); })())], "method"falsefalsefalse138), "yesterday", [], "array"falsefalsefalse138), 0","""), "html"nulltrue);
  312.         echo " ";
  313.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["settings"]) || array_key_exists("settings"$context) ? $context["settings"] : (function () { throw new RuntimeError('Variable "settings" does not exist.'138$this->source); })()), "get", [], "any"falsefalsefalse138), "currency", [], "any"falsefalsefalse138)), "html"nulltrue);
  314.         echo "</b>
  315. \t\t\t</div>
  316. \t\t</div>
  317. \t  
  318. \t   <div class=\"col-4\">
  319. \t\t\t<div class=\"card p-3 mb-2 bg-orange-dark text-white\">
  320. \t\t\t\t<h6 class=\"text-white stats-title\"><i class=\"fa-solid fa-comment-dollar\"></i> Mois ";
  321.         // line 144
  322.         echo twig_escape_filter($this->envtwig_date_format_filter($this->env"now""F"), "html"nulltrue);
  323.         echo "</h6>
  324. \t\t   <b>";
  325.         // line 145
  326.         echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["shopStatisticProvider"]) || array_key_exists("shopStatisticProvider"$context) ? $context["shopStatisticProvider"] : (function () { throw new RuntimeError('Variable "shopStatisticProvider" does not exist.'145$this->source); })()), "getRevenue", [=> (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'145$this->source); })()), => (isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'145$this->source); })()), => (isset($context["month"]) || array_key_exists("month"$context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.'145$this->source); })())], "method"falsefalsefalse145), "current_month", [], "array"falsefalsefalse145), 0","""), "html"nulltrue);
  327.         echo " ";
  328.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["settings"]) || array_key_exists("settings"$context) ? $context["settings"] : (function () { throw new RuntimeError('Variable "settings" does not exist.'145$this->source); })()), "get", [], "any"falsefalsefalse145), "currency", [], "any"falsefalsefalse145)), "html"nulltrue);
  329.         echo "</b>
  330. \t\t </div>
  331. \t\t</div>
  332. \t\t<!--<div class=\"col-4\">
  333. \t\t\t<div class=\"card p-3 mb-2 bg-orange-dark text-white\">
  334. \t\t\t\t<h6 class=\"text-white stats-title\"><i class=\"fa-solid fa-comment-dollar\"></i> ";
  335.         // line 151
  336.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Average"), "html"nulltrue);
  337.         echo "</h6>
  338. \t\t\t\t<b>";
  339.         // line 152
  340.         echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["shopStatisticProvider"]) || array_key_exists("shopStatisticProvider"$context) ? $context["shopStatisticProvider"] : (function () { throw new RuntimeError('Variable "shopStatisticProvider" does not exist.'152$this->source); })()), "getAverageRevenuePerDay", [=> "day"], "method"falsefalsefalse152), 0","""), "html"nulltrue);
  341.         echo " ";
  342.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["settings"]) || array_key_exists("settings"$context) ? $context["settings"] : (function () { throw new RuntimeError('Variable "settings" does not exist.'152$this->source); })()), "get", [], "any"falsefalsefalse152), "currency", [], "any"falsefalsefalse152)), "html"nulltrue);
  343.         echo "</b>
  344. \t\t\t</div>
  345. \t\t</div>-->
  346. \t\t
  347. \t\t<div class=\"col-12 mb-2\">
  348. \t\t\t<div class=\"card p-3\">
  349. \t\t
  350. \t\t\t\t\t";
  351.         // line 163
  352.         echo "\t\t\t\t\t 
  353. \t\t<div class=\"col-12 col-md-12 \" >
  354. \t\t\t<div class=\"card p-3\" >
  355. \t\t\t\t<h6>Chiffre d'affaire par type d'abonnement</h6>
  356. \t\t\t\t
  357. \t\t\t\t<table class=\"table\">
  358. \t\t\t\t\t<thead class=\"bg-purple-dark text-white\">
  359. \t\t\t\t\t\t<tr>
  360. \t\t\t\t\t\t<th scope=\"col\">";
  361.         // line 172
  362.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Product"), "html"nulltrue);
  363.         echo "</th>
  364. \t\t\t\t\t\t<th scope=\"col\">";
  365.         // line 173
  366.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Nombres 
  367.  des ventes"), "html"nulltrue);
  368.         echo "</th>
  369. \t\t\t\t\t\t<th scope=\"col\">";
  370.         // line 174
  371.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Revenue"), "html"nulltrue);
  372.         echo "</th>
  373. \t\t\t\t\t\t</tr>
  374. \t\t\t\t\t</thead>
  375. \t\t\t\t\t<tbody>
  376. \t\t\t\t\t
  377. \t\t\t\t\t ";
  378.         // line 179
  379.         $context['_parent'] = $context;
  380.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["shopStatisticProvider"]) || array_key_exists("shopStatisticProvider"$context) ? $context["shopStatisticProvider"] : (function () { throw new RuntimeError('Variable "shopStatisticProvider" does not exist.'179$this->source); })()), "revenueByProducts", [=> (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'179$this->source); })()), => (isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'179$this->source); })()), => (isset($context["month"]) || array_key_exists("month"$context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.'179$this->source); })())], "method"falsefalsefalse179));
  381.         foreach ($context['_seq'] as $context["_key"] => $context["singleProductRevenu"]) {
  382.             // line 180
  383.             echo "\t\t\t\t\t\t<tr>
  384. \t\t\t\t\t\t\t<td>";
  385.             // line 181
  386.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["singleProductRevenu"], "productName", [], "any"falsefalsefalse181), "html"nulltrue);
  387.             echo "</td>
  388. \t\t\t\t\t\t\t<td>";
  389.             // line 182
  390.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["singleProductRevenu"], "totalSold", [], "any"falsefalsefalse182), "html"nulltrue);
  391.             echo "</td>
  392. \t\t\t\t\t\t\t<td>
  393. \t\t\t\t\t\t\t<span  >
  394. \t\t\t\t\t\t\t<b>
  395. \t\t\t\t\t\t\t";
  396.             // line 186
  397.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["singleProductRevenu"], "revenue", [], "any"falsefalsefalse186), "html"nulltrue);
  398.             echo " ";
  399.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["settings"]) || array_key_exists("settings"$context) ? $context["settings"] : (function () { throw new RuntimeError('Variable "settings" does not exist.'186$this->source); })()), "get", [], "any"falsefalsefalse186), "currency", [], "any"falsefalsefalse186)), "html"nulltrue);
  400.             echo "
  401. \t\t\t\t\t\t\t</b>
  402. \t\t\t\t\t\t\t</span></td>
  403. \t\t\t\t\t\t</tr>
  404. \t\t\t\t\t";
  405.         }
  406.         $_parent $context['_parent'];
  407.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['singleProductRevenu'], $context['_parent'], $context['loop']);
  408.         $context array_intersect_key($context$_parent) + $_parent;
  409.         // line 190
  410.         echo 
  411. \t\t\t\t\t
  412. \t\t\t\t\t</tbody>
  413. \t\t\t\t</table>
  414. \t\t\t\t
  415. \t\t\t";
  416.         // line 197
  417.         echo "\t\t\t</div>
  418. \t\t
  419. \t\t</div>
  420. \t\t\t</div>
  421. \t\t</div>
  422. \t\t
  423. \t\t\t</div>
  424. \t\t\t
  425. \t\t</div>
  426. \t\t<div class=\"col-12 col-md-7 p-4\" >
  427. \t\t\t<div class=\"row quick-stats\">
  428. \t\t\t";
  429.         // line 213
  430.         $context['_parent'] = $context;
  431.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["shopStatisticProvider"]) || array_key_exists("shopStatisticProvider"$context) ? $context["shopStatisticProvider"] : (function () { throw new RuntimeError('Variable "shopStatisticProvider" does not exist.'213$this->source); })()), "quickStats", [=> (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'213$this->source); })()), => (isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'213$this->source); })()), => (isset($context["month"]) || array_key_exists("month"$context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.'213$this->source); })())], "method"falsefalsefalse213));
  432.         foreach ($context['_seq'] as $context["key"] => $context["singleStat"]) {
  433.             // line 214
  434.             echo "\t\t\t\t<div class=\"col-lg-4 col-6 mb-3\">
  435. \t\t\t\t\t<div class=\"card p-3 bg-purple-dark text-white\" >
  436. \t\t\t\t\t\t<div class=\"row\">
  437. \t\t\t\t\t\t\t<div class=\"col-lg-3 col-12\" >
  438. \t\t\t\t\t\t\t\t<div class=\"icon-container text-purple\">
  439. \t\t\t\t\t\t\t\t\t";
  440.             // line 219
  441.             echo twig_get_attribute($this->env$this->source$context["singleStat"], "icon", [], "array"falsefalsefalse219);
  442.             echo "
  443. \t\t\t\t\t\t\t\t</div>
  444. \t\t\t\t\t\t\t</div>
  445. \t\t\t\t\t\t\t<div class=\"col-9\" >
  446. \t\t\t\t\t\t\t\t<div>
  447. \t\t\t\t\t\t\t\t\t
  448. \t\t\t\t\t\t\t\t\t<h6 class=\"stats-title text-white\"><span>";
  449.             // line 226
  450.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["singleStat"], "all", [], "array"falsefalsefalse226), "html"nulltrue);
  451.             echo " ";
  452.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source$context["singleStat"], "unit", [], "array"falsefalsefalse226)), "html"nulltrue);
  453.             echo "</span> <br>";
  454.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["key"]), "html"nulltrue);
  455.             echo "</h6>
  456. \t\t\t\t\t\t\t\t</div>
  457. \t\t\t\t\t\t\t</div>
  458. \t\t\t\t\t\t\t<div class=\"col-12\" >
  459. \t\t\t\t\t\t\t\t<ul class=\"list-unstyled text-center mt-2\">
  460. \t\t\t\t\t\t\t\t\t<li><b>";
  461.             // line 231
  462.             echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["singleStat"], "new", [], "array"falsefalsefalse231), 0","""), "html"nulltrue);
  463.             echo " ";
  464.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source$context["singleStat"], "unit", [], "array"falsefalsefalse231)), "html"nulltrue);
  465.             echo "</b> ";
  466.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("last week"), "html"nulltrue);
  467.             echo "</li>
  468. \t\t\t\t\t\t\t\t\t<li><b>";
  469.             // line 232
  470.             echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["singleStat"], "old", [], "array"falsefalsefalse232), 0","""), "html"nulltrue);
  471.             echo " ";
  472.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source$context["singleStat"], "unit", [], "array"falsefalsefalse232)), "html"nulltrue);
  473.             echo "</b> ";
  474.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("last month"), "html"nulltrue);
  475.             echo "</li>
  476. \t\t\t\t\t\t\t\t</ul>
  477. \t\t\t\t\t\t\t</div>
  478. \t\t\t\t\t\t</div>
  479. \t\t\t\t\t</div>
  480. \t\t\t\t</div>
  481. \t\t\t";
  482.         }
  483.         $_parent $context['_parent'];
  484.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['singleStat'], $context['_parent'], $context['loop']);
  485.         $context array_intersect_key($context$_parent) + $_parent;
  486.         // line 239
  487.         echo "
  488. \t\t\t\t
  489. \t\t\t</div>
  490. \t\t</div>
  491. \t</div>
  492. <div class=\"row\" >
  493. \t\t
  494. \t\t<div class=\"col-12\" >
  495. \t\t\t
  496. \t\t\t<h5>Visite AdhΓ©rant </h5>
  497. \t\t</div>
  498. \t\t<div class=\"col-lg-9 col-md-9 col-sx-9\">
  499. \t\t\t
  500. \t\t\t\t
  501. \t\t\t \t";
  502.         // line 260
  503.         echo $this->extensions['Symfony\UX\Chartjs\Twig\ChartExtension']->renderChart(twig_get_attribute($this->env$this->source, (isset($context["shopStatisticProvider"]) || array_key_exists("shopStatisticProvider"$context) ? $context["shopStatisticProvider"] : (function () { throw new RuntimeError('Variable "shopStatisticProvider" does not exist.'260$this->source); })()), "chartVisteBymonths", [=> (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'260$this->source); })()), => (isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'260$this->source); })()), => (isset($context["month"]) || array_key_exists("month"$context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.'260$this->source); })())], "method"falsefalsefalse260));
  504.         echo "
  505. \t\t</div>
  506. \t 
  507. \t\t<div class=\"col-lg-3 col-md-3 col-sx-3\">
  508. \t\t\t<div class=\"card p-3 mb-2 bg-purple-dark text-white\">
  509. \t\t\t\t<h6 class=\"text-white stats-title\"><i class=\"fa-solid fa-people-group\"></i> Visites ";
  510.         // line 266
  511.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Yesterday"), "html"nulltrue);
  512.         echo "</h6>
  513. \t\t\t\t<b>Pointage Manuel  ";
  514.         // line 267
  515.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["shopStatisticProvider"]) || array_key_exists("shopStatisticProvider"$context) ? $context["shopStatisticProvider"] : (function () { throw new RuntimeError('Variable "shopStatisticProvider" does not exist.'267$this->source); })()), "getVisitYesterday", [=> (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'267$this->source); })()), => (isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'267$this->source); })()), => (isset($context["month"]) || array_key_exists("month"$context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.'267$this->source); })())], "method"falsefalsefalse267), 0, [], "array"falsefalsefalse267), "manuel", [], "array"falsefalsefalse267), "html"nulltrue);
  516.         echo "<div style=\"float:right\"><span style=\"font-size:16px;\">πŸ‘©πŸ» </span>";
  517.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["shopStatisticProvider"]) || array_key_exists("shopStatisticProvider"$context) ? $context["shopStatisticProvider"] : (function () { throw new RuntimeError('Variable "shopStatisticProvider" does not exist.'267$this->source); })()), "getVisitYesterday", [=> (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'267$this->source); })()), => (isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'267$this->source); })()), => (isset($context["month"]) || array_key_exists("month"$context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.'267$this->source); })())], "method"falsefalsefalse267), 0, [], "array"falsefalsefalse267), "female_manuel", [], "array"falsefalsefalse267), "html"nulltrue);
  518.         echo " | <span style=\"font-size:16px;\">πŸ‘¨πŸ»</span> ";
  519.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["shopStatisticProvider"]) || array_key_exists("shopStatisticProvider"$context) ? $context["shopStatisticProvider"] : (function () { throw new RuntimeError('Variable "shopStatisticProvider" does not exist.'267$this->source); })()), "getVisitYesterday", [=> (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'267$this->source); })()), => (isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'267$this->source); })()), => (isset($context["month"]) || array_key_exists("month"$context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.'267$this->source); })())], "method"falsefalsefalse267), 0, [], "array"falsefalsefalse267), "male_manuel", [], "array"falsefalsefalse267), "html"nulltrue);
  520.         echo "</div></b>
  521. \t\t\t\t<b>Pointage Carte   ";
  522.         // line 268
  523.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["shopStatisticProvider"]) || array_key_exists("shopStatisticProvider"$context) ? $context["shopStatisticProvider"] : (function () { throw new RuntimeError('Variable "shopStatisticProvider" does not exist.'268$this->source); })()), "getVisitYesterday", [=> (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'268$this->source); })()), => (isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'268$this->source); })()), => (isset($context["month"]) || array_key_exists("month"$context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.'268$this->source); })())], "method"falsefalsefalse268), 0, [], "array"falsefalsefalse268), "automatique", [], "array"falsefalsefalse268), "html"nulltrue);
  524.         echo "<div style=\"float:right\"><span style=\"font-size:16px;\">πŸ‘©πŸ» </span> ";
  525.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["shopStatisticProvider"]) || array_key_exists("shopStatisticProvider"$context) ? $context["shopStatisticProvider"] : (function () { throw new RuntimeError('Variable "shopStatisticProvider" does not exist.'268$this->source); })()), "getVisitYesterday", [=> (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'268$this->source); })()), => (isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'268$this->source); })()), => (isset($context["month"]) || array_key_exists("month"$context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.'268$this->source); })())], "method"falsefalsefalse268), 0, [], "array"falsefalsefalse268), "female_automatique", [], "array"falsefalsefalse268), "html"nulltrue);
  526.         echo " | <span style=\"font-size:16px;\">πŸ‘¨πŸ»</span> ";
  527.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["shopStatisticProvider"]) || array_key_exists("shopStatisticProvider"$context) ? $context["shopStatisticProvider"] : (function () { throw new RuntimeError('Variable "shopStatisticProvider" does not exist.'268$this->source); })()), "getVisitYesterday", [=> (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'268$this->source); })()), => (isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'268$this->source); })()), => (isset($context["month"]) || array_key_exists("month"$context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.'268$this->source); })())], "method"falsefalsefalse268), 0, [], "array"falsefalsefalse268), "male_automatique", [], "array"falsefalsefalse268), "html"nulltrue);
  528.         echo " </div></b>
  529. \t\t\t</div>
  530. \t\t\t<div class=\"card p-3 mb-2 bg-blue-dark text-white\">
  531. \t\t\t\t<h6 class=\"text-white stats-title\"><i class=\"fa-solid fa-people-group\"></i> Visites ";
  532.         // line 271
  533.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Today"), "html"nulltrue);
  534.         echo " </h6>
  535. \t\t\t 
  536. \t\t\t\t<b>Pointage Manuel  ";
  537.         // line 273
  538.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["shopStatisticProvider"]) || array_key_exists("shopStatisticProvider"$context) ? $context["shopStatisticProvider"] : (function () { throw new RuntimeError('Variable "shopStatisticProvider" does not exist.'273$this->source); })()), "getVisitToday", [=> (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'273$this->source); })()), => (isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'273$this->source); })()), => (isset($context["month"]) || array_key_exists("month"$context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.'273$this->source); })())], "method"falsefalsefalse273), 0, [], "array"falsefalsefalse273), "manuel", [], "array"falsefalsefalse273), "html"nulltrue);
  539.         echo "<div style=\"float:right\"><span style=\"font-size:16px;\">πŸ‘©πŸ» </span>";
  540.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["shopStatisticProvider"]) || array_key_exists("shopStatisticProvider"$context) ? $context["shopStatisticProvider"] : (function () { throw new RuntimeError('Variable "shopStatisticProvider" does not exist.'273$this->source); })()), "getVisitToday", [=> (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'273$this->source); })()), => (isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'273$this->source); })()), => (isset($context["month"]) || array_key_exists("month"$context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.'273$this->source); })())], "method"falsefalsefalse273), 0, [], "array"falsefalsefalse273), "female_manuel", [], "array"falsefalsefalse273), "html"nulltrue);
  541.         echo " | <span style=\"font-size:16px;\">πŸ‘¨πŸ»</span> ";
  542.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["shopStatisticProvider"]) || array_key_exists("shopStatisticProvider"$context) ? $context["shopStatisticProvider"] : (function () { throw new RuntimeError('Variable "shopStatisticProvider" does not exist.'273$this->source); })()), "getVisitToday", [=> (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'273$this->source); })()), => (isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'273$this->source); })()), => (isset($context["month"]) || array_key_exists("month"$context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.'273$this->source); })())], "method"falsefalsefalse273), 0, [], "array"falsefalsefalse273), "male_manuel", [], "array"falsefalsefalse273), "html"nulltrue);
  543.         echo "</div></b>
  544. \t\t\t\t<b>Pointage Carte   ";
  545.         // line 274
  546.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["shopStatisticProvider"]) || array_key_exists("shopStatisticProvider"$context) ? $context["shopStatisticProvider"] : (function () { throw new RuntimeError('Variable "shopStatisticProvider" does not exist.'274$this->source); })()), "getVisitToday", [=> (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'274$this->source); })()), => (isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'274$this->source); })()), => (isset($context["month"]) || array_key_exists("month"$context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.'274$this->source); })())], "method"falsefalsefalse274), 0, [], "array"falsefalsefalse274), "automatique", [], "array"falsefalsefalse274), "html"nulltrue);
  547.         echo "<div style=\"float:right\"><span style=\"font-size:16px;\">πŸ‘©πŸ» </span> ";
  548.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["shopStatisticProvider"]) || array_key_exists("shopStatisticProvider"$context) ? $context["shopStatisticProvider"] : (function () { throw new RuntimeError('Variable "shopStatisticProvider" does not exist.'274$this->source); })()), "getVisitToday", [=> (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'274$this->source); })()), => (isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'274$this->source); })()), => (isset($context["month"]) || array_key_exists("month"$context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.'274$this->source); })())], "method"falsefalsefalse274), 0, [], "array"falsefalsefalse274), "female_automatique", [], "array"falsefalsefalse274), "html"nulltrue);
  549.         echo " | <span style=\"font-size:16px;\">πŸ‘¨πŸ»</span> ";
  550.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["shopStatisticProvider"]) || array_key_exists("shopStatisticProvider"$context) ? $context["shopStatisticProvider"] : (function () { throw new RuntimeError('Variable "shopStatisticProvider" does not exist.'274$this->source); })()), "getVisitToday", [=> (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'274$this->source); })()), => (isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'274$this->source); })()), => (isset($context["month"]) || array_key_exists("month"$context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.'274$this->source); })())], "method"falsefalsefalse274), 0, [], "array"falsefalsefalse274), "male_automatique", [], "array"falsefalsefalse274), "html"nulltrue);
  551.         echo "</div></b>
  552. \t\t\t</div>
  553. \t\t</div>
  554. \t\t 
  555. \t\t 
  556. \t\t
  557. \t\t\t\t 
  558. \t</div>
  559. \t<div class=\"row mt-5\" >
  560. \t";
  561.         // line 288
  562.         echo "
  563. \t";
  564.         // line 298
  565.         echo "
  566.     ";
  567.         // line 334
  568.         echo "\t\t<div class=\"col-12 col-md-8\" >
  569. \t\t\t<div class=\"card p-3\" >
  570. \t\t\t\t<h6>Chiffre d'affaire par commercial</h6>
  571. \t\t\t\t<table class=\"table\">
  572. \t\t\t\t\t<thead class=\"bg-purple-dark text-white\">
  573. \t\t\t\t\t\t<tr>
  574. \t\t\t\t\t\t<th scope=\"col\">";
  575.         // line 341
  576.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Agent"), "html"nulltrue);
  577.         echo " </th>
  578. \t\t\t\t\t\t<th scope=\"col\">";
  579.         // line 342
  580.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Revenue"), "html"nulltrue);
  581.         echo "</th>
  582. \t\t\t\t\t\t</tr>
  583. \t\t\t\t\t</thead>
  584. \t\t\t\t\t<tbody>
  585. \t\t\t\t\t";
  586.         // line 346
  587.         $context['_parent'] = $context;
  588.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["shopStatisticProvider"]) || array_key_exists("shopStatisticProvider"$context) ? $context["shopStatisticProvider"] : (function () { throw new RuntimeError('Variable "shopStatisticProvider" does not exist.'346$this->source); })()), "revenueByAgents", [=> (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'346$this->source); })()), => (isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'346$this->source); })()), => (isset($context["month"]) || array_key_exists("month"$context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.'346$this->source); })())], "method"falsefalsefalse346));
  589.         foreach ($context['_seq'] as $context["_key"] => $context["singleAgentRevenu"]) {
  590.             // line 347
  591.             echo "\t\t\t\t\t\t<tr>
  592. \t\t\t\t\t\t\t<td>";
  593.             // line 348
  594.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["singleAgentRevenu"], "agentFirstName", [], "any"falsefalsefalse348), "html"nulltrue);
  595.             echo " ";
  596.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["singleAgentRevenu"], "agentLastName", [], "any"falsefalsefalse348), "html"nulltrue);
  597.             echo "</td>
  598. \t\t\t\t\t\t\t<td>
  599. \t\t\t\t\t\t\t\t<span  >
  600. \t\t\t\t\t\t\t<b>
  601. \t\t\t\t\t\t\t";
  602.             // line 352
  603.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["singleAgentRevenu"], "revenue", [], "any"falsefalsefalse352), "html"nulltrue);
  604.             echo " ";
  605.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["settings"]) || array_key_exists("settings"$context) ? $context["settings"] : (function () { throw new RuntimeError('Variable "settings" does not exist.'352$this->source); })()), "get", [], "any"falsefalsefalse352), "currency", [], "any"falsefalsefalse352)), "html"nulltrue);
  606.             echo "
  607. \t\t\t\t\t\t\t</b>
  608. \t\t\t\t\t\t\t</span>
  609. \t\t\t\t\t\t\t</td>
  610. \t\t\t\t\t\t</tr>
  611. \t\t\t\t\t";
  612.         }
  613.         $_parent $context['_parent'];
  614.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['singleAgentRevenu'], $context['_parent'], $context['loop']);
  615.         $context array_intersect_key($context$_parent) + $_parent;
  616.         // line 358
  617.         echo "\t\t\t\t\t</tbody>
  618. \t\t\t\t</table>
  619.                 ";
  620.         // line 361
  621.         $context["revenueCategoryUrl"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$this->extensions['EasyCorp\Bundle\EasyAdminBundle\Twig\EasyAdminTwigExtension']->getAdminUrlGenerator(), "setDashboard", [=> "App\\Controller\\Admin\\DashboardController"], "method"falsefalsefalse361), "setController", [=> "App\\Flexy\\FrontBundle\\Themes\\Lasalle\\Controller\\ShopAdmin\\Product\\CategoryProductRevenueCrudController"], "method"falsefalsefalse361), "setAction", [=> "index"], "method"falsefalsefalse361);
  622.         // line 362
  623.         echo "\t\t\t\t\t<!--<a class=\"btn-btn-info\" href=\"";
  624.         echo twig_escape_filter($this->env, (isset($context["revenueCategoryUrl"]) || array_key_exists("revenueCategoryUrl"$context) ? $context["revenueCategoryUrl"] : (function () { throw new RuntimeError('Variable "revenueCategoryUrl" does not exist.'362$this->source); })()), "html"nulltrue);
  625.         echo "\" data-turbo=\"false\"  >Voir plus</a>-->
  626. \t\t\t</div>
  627. \t\t
  628. \t\t</div>
  629. \t</div>
  630. \t
  631. \t
  632. <script>
  633. document.addEventListener(\"turbo:load\",function(){
  634. \t\t\$(\"#store-select,#year-select,#months-select\").change(function(){
  635. \t\t\t\$(\"#btn-filter-stats\").trigger(\"click\");
  636. \t\t});
  637.         \$(\"#year-select\").change(function(){
  638.             
  639.             \$(\"#months-select\").val(0).change();
  640. \t\t\t\$(\"#btn-filter-stats\").trigger(\"click\");
  641. \t\t});
  642. });
  643. </script>
  644. \t</turbo-frame>
  645. ";
  646.         
  647.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  648.         
  649.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  650.     }
  651.     public function getTemplateName()
  652.     {
  653.         return "@Flexy/FrontBundle/Themes/Lasalle/templates/admin/statistics/admin/_content.html.twig";
  654.     }
  655.     public function isTraitable()
  656.     {
  657.         return false;
  658.     }
  659.     public function getDebugInfo()
  660.     {
  661.         return array (  675 => 362,  673 => 361,  668 => 358,  654 => 352,  645 => 348,  642 => 347,  638 => 346,  631 => 342,  627 => 341,  618 => 334,  615 => 298,  611 => 288,  593 => 274,  585 => 273,  580 => 271,  570 => 268,  562 => 267,  558 => 266,  549 => 260,  526 => 239,  509 => 232,  501 => 231,  489 => 226,  479 => 219,  472 => 214,  468 => 213,  450 => 197,  443 => 190,  430 => 186,  423 => 182,  419 => 181,  416 => 180,  412 => 179,  404 => 174,  399 => 173,  395 => 172,  384 => 163,  369 => 152,  365 => 151,  354 => 145,  350 => 144,  339 => 138,  335 => 137,  325 => 132,  320 => 130,  295 => 107,  289 => 106,  283 => 105,  277 => 102,  268 => 101,  265 => 100,  260 => 99,  256 => 98,  252 => 97,  242 => 89,  233 => 86,  224 => 85,  220 => 84,  216 => 83,  209 => 78,  202 => 73,  193 => 70,  184 => 69,  180 => 68,  176 => 67,  173 => 66,  171 => 65,  160 => 57,  150 => 49,  147 => 48,  142 => 46,  139 => 45,  136 => 44,  130 => 42,  128 => 41,  124 => 40,  119 => 37,  116 => 36,  108 => 34,  106 => 33,  99 => 31,  90 => 24,  86 => 22,  84 => 21,  81 => 20,  79 => 19,  76 => 18,  71 => 15,  69 => 14,  65 => 12,  63 => 11,  60 => 10,  56 => 8,  54 => 7,  51 => 6,  49 => 5,  43 => 1,);
  662.     }
  663.     public function getSourceContext()
  664.     {
  665.         return new Source("<turbo-frame id=\"render-stats\" data-turbo-action=\"advance\" >
  666. \t
  667. \t
  668. \t{% if store is not defined %}
  669. \t\t{% set store = null %}
  670. \t{% endif %}
  671. \t{% if year is not defined or app.request.get('year') == \"0\" %}
  672. \t\t\t{% set year = null %}
  673. \t\t
  674. \t{% endif %}
  675. \t\t{% if month is not defined or app.request.get('month') == \"0\" %}
  676. \t\t{% set month = null %}
  677. \t{% endif %}
  678. \t
  679. \t
  680. \t
  681. \t<div class=\"row header\" >
  682. \t\t<div class=\"col-4\" >
  683. \t\t\t<h2 style=\"font-weight:bold;font-size:16px;\" class=\"title\"><i class=\"fa-solid fa-chart-pie\"></i> {{\"Dashboard\"|trans}} {{settings.get.projectName}}
  684. \t\t\t<br>
  685. \t\t\t{% if store != null %}
  686. \t\t\t\t<span class=\"badge badge-info p-1\" ><i class=\"fa-solid fa-shop\"></i> {{\"Store\"|trans}} : {{store}}</span>
  687. \t\t\t{% endif %}
  688. \t\t\t{% if year != null or month != null %}
  689. \t\t\t\t<span class=\"badge badge-info p-1\" > 
  690. \t\t\t\t<i class=\"fa-solid fa-filter-circle-dollar\"></i>
  691. \t\t\t\t{{\"Result for priod\"|trans}} :
  692. \t\t\t\t{% if year != null %}
  693. \t\t\t\t\t{{year}} 
  694. \t\t\t\t{% endif %}
  695. \t\t\t\t{% if month != null %}
  696. \t\t\t\t
  697. \t\t\t\t\t{{ (\"2000-\"~month)|date('F')|trans }}</span>
  698. \t\t\t\t{% endif %}
  699. \t\t\t{% endif %}
  700. \t\t\t
  701. \t\t\t</h2>
  702. \t\t\t
  703. \t\t</div>
  704. \t\t<div class=\"col-8\" >
  705. \t\t\t
  706. \t\t\t<form action=\"{{path('admin_stats')}}\"  method=\"POST\">
  707. \t\t\t
  708. \t\t\t\t<div class=\"row\">
  709. \t\t\t\t\t<div class=\"col-2\" >
  710. \t\t\t\t\t\t<button id=\"btn-filter-stats\" class=\"d-none btn btn-success d-block btn-large\" >Filtrer</button>
  711. \t\t\t\t\t</div>
  712. \t\t\t\t\t<div class=\"col-4\" >
  713. \t\t\t\t\t{% if stores|length > 1 %}
  714. \t\t\t\t\t\t<select id=\"store-select\" class=\"form-select\" name=\"store\" aria-label=\"Default select example\">
  715. \t\t\t\t\t\t\t<option value=\"0\" selected>{{\"All stores\"|trans}}</option>
  716. \t\t\t\t\t\t\t{% for singleStore in stores %}
  717. \t\t\t\t\t\t\t\t<option {% if singleStore == store %}selected{% endif %} value=\"{{singleStore.id}}\">
  718. \t\t\t\t\t\t\t\t\t{{singleStore.name}}
  719. \t\t\t\t\t\t\t\t</option>
  720. \t\t\t\t\t\t\t{% endfor %}
  721. \t\t\t\t\t\t</select>
  722. \t\t\t\t\t\t
  723. \t\t\t\t\t\t{% endif %}
  724. \t\t\t\t\t</div>
  725. \t\t\t\t\t
  726. \t\t\t\t\t<div class=\"col-3\" >
  727. \t\t\t\t\t\t<select id=\"year-select\" class=\"form-select\" name=\"year\" aria-label=\"Default select example\">
  728. \t\t\t\t\t\t\t<option value=\"0\">{{\"All years\"|trans}}</option>
  729. \t\t\t\t\t\t\t{% for singleYear in shopStatisticProvider.periodsOrdersOptions(store)|sort((a, b) => a.year < b.year ? 1 : -1) %}
  730. \t\t\t\t\t\t\t\t<option {% if singleYear[\"year\"] == year %}selected{% endif %} value=\"{{singleYear[\"year\"]}}\">
  731. \t\t\t\t\t\t\t\t\t{{singleYear[\"year\"]}}
  732. \t\t\t\t\t\t\t\t</option>
  733. \t\t\t\t\t\t\t{% endfor %}
  734. \t\t\t\t\t\t\t
  735. \t\t\t\t\t\t</select>
  736. \t\t\t\t\t</div>
  737. \t\t\t\t\t<div class=\"col-3\" >
  738. \t\t\t\t\t\t
  739. \t\t\t\t\t\t\t<select id=\"months-select\" class=\"form-select\" name=\"month\" aria-label=\"Default select example\">
  740. \t\t\t\t\t\t\t<option value=\"0\">{{\"All months\"|trans}}</option>
  741. \t\t\t\t\t\t\t{% for singleYear in shopStatisticProvider.periodsOrdersOptions(store) %}
  742. \t\t\t\t\t\t\t\t{% for singleMonth in singleYear[\"months\"]|sort((a, b) => a.number < b.number ? 1 : -1) %}
  743. \t\t\t\t\t\t\t\t\t{% if singleYear[\"year\"] == year %}
  744. \t\t\t\t\t\t\t\t\t\t<option {% if singleMonth[\"number\"] == month %}selected{% endif %} value=\"{{singleMonth[\"number\"]}}\">
  745. \t\t\t\t\t\t\t\t\t\t\t {{singleMonth[\"name\"]}}
  746. \t\t\t\t\t\t\t\t\t\t</option>
  747. \t\t\t\t\t\t\t\t\t{% endif %}
  748. \t\t\t\t\t\t\t\t{% endfor %}
  749. \t\t\t\t\t\t\t{% endfor %}
  750. \t\t\t\t\t\t\t
  751. \t\t\t\t\t\t</select>
  752. \t\t\t\t\t\t
  753. \t\t\t\t\t\t
  754. \t\t\t\t\t</div>
  755. \t\t\t\t\t
  756. \t\t\t\t\t
  757. \t\t\t\t</div>
  758. \t\t\t</form>
  759. \t\t</div>
  760. \t</div>
  761. \t<div class=\"row\" >
  762. \t\t\t<div class=\"col-12 col-md-5 p-4\" >
  763. \t\t\t<div class=\"row\" >
  764. \t\t<div class=\"col-4\">
  765. \t\t\t<div class=\"card p-3 mb-2 bg-purple-dark text-white\">
  766. \t\t\t\t<h6 class=\"text-white stats-title\"><i class=\"fa-solid fa-comment-dollar\"></i> {{\"Today\"|trans}}</h6>
  767. \t\t\t\t\t  
  768. \t\t\t\t<b>{{shopStatisticProvider.getRevenue(store,year,month)[\"today\"]|number_format(0,\",\",\"\")}} {{settings.get.currency|trans}}</b>
  769. \t\t\t</div>
  770. \t\t</div>
  771. \t\t<div class=\"col-4\">
  772. \t\t\t<div class=\"card p-3 mb-2 bg-blue-dark text-white\">
  773. \t\t\t\t<h6 class=\"text-white stats-title\"><i class=\"fa-solid fa-comment-dollar\"></i> {{\"Yesterday\"|trans}}</h6>
  774. \t\t\t\t<b>{{shopStatisticProvider.getRevenue(store,year,month)[\"yesterday\"]|number_format(0,\",\",\"\")}} {{settings.get.currency|trans}}</b>
  775. \t\t\t</div>
  776. \t\t</div>
  777. \t  
  778. \t   <div class=\"col-4\">
  779. \t\t\t<div class=\"card p-3 mb-2 bg-orange-dark text-white\">
  780. \t\t\t\t<h6 class=\"text-white stats-title\"><i class=\"fa-solid fa-comment-dollar\"></i> Mois {{ \"now\"|date(\"F\") }}</h6>
  781. \t\t   <b>{{shopStatisticProvider.getRevenue(store,year,month)[\"current_month\"]|number_format(0,\",\",\"\")}} {{settings.get.currency|trans}}</b>
  782. \t\t </div>
  783. \t\t</div>
  784. \t\t<!--<div class=\"col-4\">
  785. \t\t\t<div class=\"card p-3 mb-2 bg-orange-dark text-white\">
  786. \t\t\t\t<h6 class=\"text-white stats-title\"><i class=\"fa-solid fa-comment-dollar\"></i> {{\"Average\"|trans}}</h6>
  787. \t\t\t\t<b>{{shopStatisticProvider.getAverageRevenuePerDay(\"day\")|number_format(0,\",\",\"\")}} {{settings.get.currency|trans}}</b>
  788. \t\t\t</div>
  789. \t\t</div>-->
  790. \t\t
  791. \t\t<div class=\"col-12 mb-2\">
  792. \t\t\t<div class=\"card p-3\">
  793. \t\t
  794. \t\t\t\t\t{#{{ render_chart(shopStatisticProvider.chartRevenue(store,year,month)) }}#}
  795. \t\t\t\t\t 
  796. \t\t<div class=\"col-12 col-md-12 \" >
  797. \t\t\t<div class=\"card p-3\" >
  798. \t\t\t\t<h6>Chiffre d'affaire par type d'abonnement</h6>
  799. \t\t\t\t
  800. \t\t\t\t<table class=\"table\">
  801. \t\t\t\t\t<thead class=\"bg-purple-dark text-white\">
  802. \t\t\t\t\t\t<tr>
  803. \t\t\t\t\t\t<th scope=\"col\">{{\"Product\"|trans}}</th>
  804. \t\t\t\t\t\t<th scope=\"col\">{{\"Nombres \\n des ventes\"|trans}}</th>
  805. \t\t\t\t\t\t<th scope=\"col\">{{\"Revenue\"|trans}}</th>
  806. \t\t\t\t\t\t</tr>
  807. \t\t\t\t\t</thead>
  808. \t\t\t\t\t<tbody>
  809. \t\t\t\t\t
  810. \t\t\t\t\t {% for singleProductRevenu in shopStatisticProvider.revenueByProducts(store,year,month) %}
  811. \t\t\t\t\t\t<tr>
  812. \t\t\t\t\t\t\t<td>{{singleProductRevenu.productName}}</td>
  813. \t\t\t\t\t\t\t<td>{{singleProductRevenu.totalSold}}</td>
  814. \t\t\t\t\t\t\t<td>
  815. \t\t\t\t\t\t\t<span  >
  816. \t\t\t\t\t\t\t<b>
  817. \t\t\t\t\t\t\t{{singleProductRevenu.revenue}} {{settings.get.currency|trans}}
  818. \t\t\t\t\t\t\t</b>
  819. \t\t\t\t\t\t\t</span></td>
  820. \t\t\t\t\t\t</tr>
  821. \t\t\t\t\t{% endfor %} 
  822. \t\t\t\t\t
  823. \t\t\t\t\t</tbody>
  824. \t\t\t\t</table>
  825. \t\t\t\t
  826. \t\t\t{#\t{% set revenueProductUrl = ea_url().setDashboard(\"App\\\\Controller\\\\Admin\\\\DashboardController\").setController(\"App\\\\Flexy\\\\FrontBundle\\\\Themes\\\\Lasalle\\\\Controller\\\\ShopAdmin\\\\Product\\\\ProductRevenueCrudController\").setAction(\"index\") %}
  827. \t\t\t\t\t<a class=\"btn-btn-info\" href=\"{{revenueProductUrl}}\" data-turbo=\"false\"  >Voir plus</a>#}
  828. \t\t\t</div>
  829. \t\t
  830. \t\t</div>
  831. \t\t\t</div>
  832. \t\t</div>
  833. \t\t
  834. \t\t\t</div>
  835. \t\t\t
  836. \t\t</div>
  837. \t\t<div class=\"col-12 col-md-7 p-4\" >
  838. \t\t\t<div class=\"row quick-stats\">
  839. \t\t\t{% for key, singleStat in shopStatisticProvider.quickStats(store,year,month) %}
  840. \t\t\t\t<div class=\"col-lg-4 col-6 mb-3\">
  841. \t\t\t\t\t<div class=\"card p-3 bg-purple-dark text-white\" >
  842. \t\t\t\t\t\t<div class=\"row\">
  843. \t\t\t\t\t\t\t<div class=\"col-lg-3 col-12\" >
  844. \t\t\t\t\t\t\t\t<div class=\"icon-container text-purple\">
  845. \t\t\t\t\t\t\t\t\t{{singleStat[\"icon\"]|raw}}
  846. \t\t\t\t\t\t\t\t</div>
  847. \t\t\t\t\t\t\t</div>
  848. \t\t\t\t\t\t\t<div class=\"col-9\" >
  849. \t\t\t\t\t\t\t\t<div>
  850. \t\t\t\t\t\t\t\t\t
  851. \t\t\t\t\t\t\t\t\t<h6 class=\"stats-title text-white\"><span>{{singleStat[\"all\"]}} {{singleStat[\"unit\"]|trans}}</span> <br>{{key|trans}}</h6>
  852. \t\t\t\t\t\t\t\t</div>
  853. \t\t\t\t\t\t\t</div>
  854. \t\t\t\t\t\t\t<div class=\"col-12\" >
  855. \t\t\t\t\t\t\t\t<ul class=\"list-unstyled text-center mt-2\">
  856. \t\t\t\t\t\t\t\t\t<li><b>{{singleStat[\"new\"]|number_format(0,\",\",\"\")}} {{singleStat[\"unit\"]|trans}}</b> {{\"last week\"|trans}}</li>
  857. \t\t\t\t\t\t\t\t\t<li><b>{{singleStat[\"old\"]|number_format(0,\",\",\"\")}} {{singleStat[\"unit\"]|trans}}</b> {{\"last month\"|trans}}</li>
  858. \t\t\t\t\t\t\t\t</ul>
  859. \t\t\t\t\t\t\t</div>
  860. \t\t\t\t\t\t</div>
  861. \t\t\t\t\t</div>
  862. \t\t\t\t</div>
  863. \t\t\t{% endfor %}
  864. \t\t\t\t
  865. \t\t\t</div>
  866. \t\t</div>
  867. \t</div>
  868. <div class=\"row\" >
  869. \t\t
  870. \t\t<div class=\"col-12\" >
  871. \t\t\t
  872. \t\t\t<h5>Visite AdhΓ©rant </h5>
  873. \t\t</div>
  874. \t\t<div class=\"col-lg-9 col-md-9 col-sx-9\">
  875. \t\t\t
  876. \t\t\t\t
  877. \t\t\t \t{{ render_chart(shopStatisticProvider.chartVisteBymonths(store,year,month)) }}
  878. \t\t</div>
  879. \t 
  880. \t\t<div class=\"col-lg-3 col-md-3 col-sx-3\">
  881. \t\t\t<div class=\"card p-3 mb-2 bg-purple-dark text-white\">
  882. \t\t\t\t<h6 class=\"text-white stats-title\"><i class=\"fa-solid fa-people-group\"></i> Visites {{\"Yesterday\"|trans}}</h6>
  883. \t\t\t\t<b>Pointage Manuel  {{shopStatisticProvider.getVisitYesterday(store,year,month)[0][\"manuel\"] }}<div style=\"float:right\"><span style=\"font-size:16px;\">πŸ‘©πŸ» </span>{{shopStatisticProvider.getVisitYesterday(store,year,month)[0][\"female_manuel\"]}} | <span style=\"font-size:16px;\">πŸ‘¨πŸ»</span> {{shopStatisticProvider.getVisitYesterday(store,year,month)[0][\"male_manuel\"]}}</div></b>
  884. \t\t\t\t<b>Pointage Carte   {{shopStatisticProvider.getVisitYesterday(store,year,month)[0][\"automatique\"] }}<div style=\"float:right\"><span style=\"font-size:16px;\">πŸ‘©πŸ» </span> {{shopStatisticProvider.getVisitYesterday(store,year,month)[0][\"female_automatique\"]}} | <span style=\"font-size:16px;\">πŸ‘¨πŸ»</span> {{shopStatisticProvider.getVisitYesterday(store,year,month)[0][\"male_automatique\"]}} </div></b>
  885. \t\t\t</div>
  886. \t\t\t<div class=\"card p-3 mb-2 bg-blue-dark text-white\">
  887. \t\t\t\t<h6 class=\"text-white stats-title\"><i class=\"fa-solid fa-people-group\"></i> Visites {{\"Today\"|trans}} </h6>
  888. \t\t\t 
  889. \t\t\t\t<b>Pointage Manuel  {{shopStatisticProvider.getVisitToday(store,year,month)[0][\"manuel\"] }}<div style=\"float:right\"><span style=\"font-size:16px;\">πŸ‘©πŸ» </span>{{shopStatisticProvider.getVisitToday(store,year,month)[0][\"female_manuel\"]}} | <span style=\"font-size:16px;\">πŸ‘¨πŸ»</span> {{shopStatisticProvider.getVisitToday(store,year,month)[0][\"male_manuel\"]}}</div></b>
  890. \t\t\t\t<b>Pointage Carte   {{shopStatisticProvider.getVisitToday(store,year,month)[0][\"automatique\"] }}<div style=\"float:right\"><span style=\"font-size:16px;\">πŸ‘©πŸ» </span> {{shopStatisticProvider.getVisitToday(store,year,month)[0][\"female_automatique\"]}} | <span style=\"font-size:16px;\">πŸ‘¨πŸ»</span> {{shopStatisticProvider.getVisitToday(store,year,month)[0][\"male_automatique\"]}}</div></b>
  891. \t\t\t</div>
  892. \t\t</div>
  893. \t\t 
  894. \t\t 
  895. \t\t
  896. \t\t\t\t 
  897. \t</div>
  898. \t<div class=\"row mt-5\" >
  899. \t{# <div class=\"col-12\" >
  900. \t\t\t<h4>Stats chiffre d'affaire</h4>
  901. \t\t</div> #}
  902. \t{#\t<div class=\"col-12 col-md-4\" >
  903. \t\t\t<div class=\"card p-3\" >
  904. \t\t\t
  905. \t\t\t\t
  906. \t\t\t\t{{ render_chart(shopStatisticProvider.chartRevenueByParentCategories(store,year,month)) }}
  907. \t\t\t</div>
  908. \t\t</div> #}
  909.     {#
  910. \t\t<div class=\"col-12 col-md-4 d-none\" >
  911. \t\t\t<div class=\"card p-3\" >
  912. \t\t\t\t<h6>Chiffre d'affaire par type d'abonnement</h6>
  913. \t\t\t\t
  914. \t\t\t\t<table class=\"table\">
  915. \t\t\t\t\t<thead class=\"bg-purple-dark text-white\">
  916. \t\t\t\t\t\t<tr>
  917. \t\t\t\t\t\t<th scope=\"col\">{{\"Product\"|trans}}</th>
  918. \t\t\t\t\t\t<th scope=\"col\">{{\"Revenue\"|trans}}</th>
  919. \t\t\t\t\t\t</tr>
  920. \t\t\t\t\t</thead>
  921. \t\t\t\t\t<tbody>
  922. \t\t\t\t\t
  923. \t\t\t\t\t {% for singleProductRevenu in shopStatisticProvider.revenueByProducts(store,year,month) %}
  924. \t\t\t\t\t\t<tr>
  925. \t\t\t\t\t\t\t<td>{{singleProductRevenu[0]}}</td>
  926. \t\t\t\t\t\t\t<td><span  >
  927. \t\t\t\t\t\t\t<b>
  928. \t\t\t\t\t\t\t{{singleProductRevenu.revenue}} {{settings.get.currency|trans}}
  929. \t\t\t\t\t\t\t</b>
  930. \t\t\t\t\t\t\t</span></td>
  931. \t\t\t\t\t\t</tr>
  932. \t\t\t\t\t{% endfor %} 
  933. \t\t\t\t\t
  934. \t\t\t\t\t</tbody>
  935. \t\t\t\t</table>
  936. \t\t\t\t
  937. \t\t\t\t{% set revenueProductUrl = ea_url().setDashboard(\"App\\\\Controller\\\\Admin\\\\DashboardController\").setController(\"App\\\\Flexy\\\\FrontBundle\\\\Themes\\\\Lasalle\\\\Controller\\\\ShopAdmin\\\\Product\\\\ProductRevenueCrudController\").setAction(\"index\") %}
  938. \t\t\t\t\t<a class=\"btn-btn-info\" href=\"{{revenueProductUrl}}\" data-turbo=\"false\"  >Voir plus</a>
  939. \t\t\t</div>
  940. \t\t
  941. \t\t</div>
  942. \t\t#}
  943. \t\t<div class=\"col-12 col-md-8\" >
  944. \t\t\t<div class=\"card p-3\" >
  945. \t\t\t\t<h6>Chiffre d'affaire par commercial</h6>
  946. \t\t\t\t<table class=\"table\">
  947. \t\t\t\t\t<thead class=\"bg-purple-dark text-white\">
  948. \t\t\t\t\t\t<tr>
  949. \t\t\t\t\t\t<th scope=\"col\">{{\"Agent\"|trans}} </th>
  950. \t\t\t\t\t\t<th scope=\"col\">{{\"Revenue\"|trans}}</th>
  951. \t\t\t\t\t\t</tr>
  952. \t\t\t\t\t</thead>
  953. \t\t\t\t\t<tbody>
  954. \t\t\t\t\t{% for singleAgentRevenu in shopStatisticProvider.revenueByAgents(store,year,month) %}
  955. \t\t\t\t\t\t<tr>
  956. \t\t\t\t\t\t\t<td>{{singleAgentRevenu.agentFirstName}} {{singleAgentRevenu.agentLastName}}</td>
  957. \t\t\t\t\t\t\t<td>
  958. \t\t\t\t\t\t\t\t<span  >
  959. \t\t\t\t\t\t\t<b>
  960. \t\t\t\t\t\t\t{{singleAgentRevenu.revenue}} {{settings.get.currency|trans}}
  961. \t\t\t\t\t\t\t</b>
  962. \t\t\t\t\t\t\t</span>
  963. \t\t\t\t\t\t\t</td>
  964. \t\t\t\t\t\t</tr>
  965. \t\t\t\t\t{% endfor %}
  966. \t\t\t\t\t</tbody>
  967. \t\t\t\t</table>
  968.                 {% set revenueCategoryUrl = ea_url().setDashboard(\"App\\\\Controller\\\\Admin\\\\DashboardController\").setController(\"App\\\\Flexy\\\\FrontBundle\\\\Themes\\\\Lasalle\\\\Controller\\\\ShopAdmin\\\\Product\\\\CategoryProductRevenueCrudController\").setAction(\"index\") %}
  969. \t\t\t\t\t<!--<a class=\"btn-btn-info\" href=\"{{revenueCategoryUrl}}\" data-turbo=\"false\"  >Voir plus</a>-->
  970. \t\t\t</div>
  971. \t\t
  972. \t\t</div>
  973. \t</div>
  974. \t
  975. \t
  976. <script>
  977. document.addEventListener(\"turbo:load\",function(){
  978. \t\t\$(\"#store-select,#year-select,#months-select\").change(function(){
  979. \t\t\t\$(\"#btn-filter-stats\").trigger(\"click\");
  980. \t\t});
  981.         \$(\"#year-select\").change(function(){
  982.             
  983.             \$(\"#months-select\").val(0).change();
  984. \t\t\t\$(\"#btn-filter-stats\").trigger(\"click\");
  985. \t\t});
  986. });
  987. </script>
  988. \t</turbo-frame>
  989. ""@Flexy/FrontBundle/Themes/Lasalle/templates/admin/statistics/admin/_content.html.twig""/home/lasalleerp/public_html/src/Flexy/FrontBundle/Themes/Lasalle/templates/admin/statistics/admin/_content.html.twig");
  990.     }
  991. }