var/cache/dev/twig/3b/3b3e92a590dc65b528fc8d422cb8519a.php line 33
<?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;
/* @Flexy/FrontBundle/Themes/Lasalle/templates/admin/statistics/admin/_content.html.twig */
class __TwigTemplate_0fadb68123e8280a09264eebf9874008 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Flexy/FrontBundle/Themes/Lasalle/templates/admin/statistics/admin/_content.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Flexy/FrontBundle/Themes/Lasalle/templates/admin/statistics/admin/_content.html.twig"));
// line 1
echo "<turbo-frame id=\"render-stats\" data-turbo-action=\"advance\" >
\t
\t
\t";
// line 5
if ( !array_key_exists("store", $context)) {
// line 6
echo "
\t\t";
// line 7
$context["store"] = null;
// line 8
echo "
\t";
}
// line 10
echo "
\t";
// line 11
if (( !array_key_exists("year", $context) || (twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 11), "get", [0 => "year"], "method", false, false, false, 11) == "0"))) {
// line 12
echo "
\t\t\t";
// line 14
$context["year"] = null;
// line 15
echo "\t\t
\t";
}
// line 18
echo "
\t\t";
// line 19
if (( !array_key_exists("month", $context) || (twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 19), "get", [0 => "month"], "method", false, false, false, 19) == "0"))) {
// line 20
echo "
\t\t";
// line 21
$context["month"] = null;
// line 22
echo "
\t";
}
// line 24
echo "
\t
\t
\t
\t<div class=\"row header\" >
\t\t<div class=\"col-4\" >
\t\t\t<h2 style=\"font-weight:bold;font-size:16px;\" class=\"title\"><i class=\"fa-solid fa-chart-pie\"></i> ";
// line 31
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Dashboard"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 31), "projectName", [], "any", false, false, false, 31), "html", null, true);
echo "
\t\t\t<br>
\t\t\t";
// line 33
if (((isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 33, $this->source); })()) != null)) {
// line 34
echo "\t\t\t\t<span class=\"badge badge-info p-1\" ><i class=\"fa-solid fa-shop\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Store"), "html", null, true);
echo " : ";
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", null, true);
echo "</span>
\t\t\t";
}
// line 36
echo "\t\t\t";
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))) {
// line 37
echo "
\t\t\t\t<span class=\"badge badge-info p-1\" >
\t\t\t\t<i class=\"fa-solid fa-filter-circle-dollar\"></i>
\t\t\t\t";
// line 40
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Result for priod"), "html", null, true);
echo " :
\t\t\t\t";
// line 41
if (((isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 41, $this->source); })()) != null)) {
// line 42
echo "\t\t\t\t\t";
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", null, true);
echo "
\t\t\t\t";
}
// line 44
echo "\t\t\t\t";
if (((isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 44, $this->source); })()) != null)) {
// line 45
echo "\t\t\t\t
\t\t\t\t\t";
// line 46
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", null, true);
echo "</span>
\t\t\t\t";
}
// line 48
echo "\t\t\t";
}
// line 49
echo "\t\t\t
\t\t\t</h2>
\t\t\t
\t\t</div>
\t\t<div class=\"col-8\" >
\t\t\t
\t\t\t<form action=\"";
// line 57
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_stats");
echo "\" method=\"POST\">
\t\t\t
\t\t\t\t<div class=\"row\">
\t\t\t\t\t<div class=\"col-2\" >
\t\t\t\t\t\t<button id=\"btn-filter-stats\" class=\"d-none btn btn-success d-block btn-large\" >Filtrer</button>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"col-4\" >
\t\t\t\t\t";
// line 65
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)) {
// line 66
echo "\t\t\t\t\t\t<select id=\"store-select\" class=\"form-select\" name=\"store\" aria-label=\"Default select example\">
\t\t\t\t\t\t\t<option value=\"0\" selected>";
// line 67
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("All stores"), "html", null, true);
echo "</option>
\t\t\t\t\t\t\t";
// line 68
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["singleStore"]) {
// line 69
echo "\t\t\t\t\t\t\t\t<option ";
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); })()))) {
echo "selected";
}
echo " value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["singleStore"], "id", [], "any", false, false, false, 69), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t";
// line 70
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["singleStore"], "name", [], "any", false, false, false, 70), "html", null, true);
echo "
\t\t\t\t\t\t\t\t</option>
\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['singleStore'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 73
echo "\t\t\t\t\t\t</select>
\t\t\t\t\t\t
\t\t\t\t\t\t";
}
// line 78
echo "\t\t\t\t\t</div>
\t\t\t\t\t
\t\t\t\t\t<div class=\"col-3\" >
\t\t\t\t\t\t<select id=\"year-select\" class=\"form-select\" name=\"year\" aria-label=\"Default select example\">
\t\t\t\t\t\t\t<option value=\"0\">";
// line 83
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("All years"), "html", null, true);
echo "</option>
\t\t\t\t\t\t\t";
// line 84
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->env, 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.', 84, $this->source); })()), "periodsOrdersOptions", [0 => (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 84, $this->source); })())], "method", false, false, false, 84), 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", false, false, false, 84) < 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", false, false, false, 84))) ? (1) : ( -1)); }));
foreach ($context['_seq'] as $context["_key"] => $context["singleYear"]) {
// line 85
echo "\t\t\t\t\t\t\t\t<option ";
if ((twig_get_attribute($this->env, $this->source, $context["singleYear"], "year", [], "array", false, false, false, 85) == (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 85, $this->source); })()))) {
echo "selected";
}
echo " value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["singleYear"], "year", [], "array", false, false, false, 85), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t";
// line 86
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["singleYear"], "year", [], "array", false, false, false, 86), "html", null, true);
echo "
\t\t\t\t\t\t\t\t</option>
\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['singleYear'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 89
echo "\t\t\t\t\t\t\t
\t\t\t\t\t\t</select>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"col-3\" >
\t\t\t\t\t\t
\t\t\t\t\t\t\t<select id=\"months-select\" class=\"form-select\" name=\"month\" aria-label=\"Default select example\">
\t\t\t\t\t\t\t<option value=\"0\">";
// line 97
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("All months"), "html", null, true);
echo "</option>
\t\t\t\t\t\t\t";
// line 98
$context['_parent'] = $context;
$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", [0 => (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 98, $this->source); })())], "method", false, false, false, 98));
foreach ($context['_seq'] as $context["_key"] => $context["singleYear"]) {
// line 99
echo "\t\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->env, twig_get_attribute($this->env, $this->source, $context["singleYear"], "months", [], "array", false, false, false, 99), 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", false, false, false, 99) < 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", false, false, false, 99))) ? (1) : ( -1)); }));
foreach ($context['_seq'] as $context["_key"] => $context["singleMonth"]) {
// line 100
echo "\t\t\t\t\t\t\t\t\t";
if ((twig_get_attribute($this->env, $this->source, $context["singleYear"], "year", [], "array", false, false, false, 100) == (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 100, $this->source); })()))) {
// line 101
echo "\t\t\t\t\t\t\t\t\t\t<option ";
if ((twig_get_attribute($this->env, $this->source, $context["singleMonth"], "number", [], "array", false, false, false, 101) == (isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 101, $this->source); })()))) {
echo "selected";
}
echo " value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["singleMonth"], "number", [], "array", false, false, false, 101), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t\t ";
// line 102
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["singleMonth"], "name", [], "array", false, false, false, 102), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t</option>
\t\t\t\t\t\t\t\t\t";
}
// line 105
echo "\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['singleMonth'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 106
echo "\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['singleYear'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 107
echo "\t\t\t\t\t\t\t
\t\t\t\t\t\t</select>
\t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t</div>
\t\t\t\t\t
\t\t\t\t\t
\t\t\t\t</div>
\t\t\t</form>
\t\t</div>
\t</div>
\t<div class=\"row\" >
\t\t\t<div class=\"col-12 col-md-5 p-4\" >
\t\t\t<div class=\"row\" >
\t\t<div class=\"col-4\">
\t\t\t<div class=\"card p-3 mb-2 bg-purple-dark text-white\">
\t\t\t\t<h6 class=\"text-white stats-title\"><i class=\"fa-solid fa-comment-dollar\"></i> ";
// line 130
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Today"), "html", null, true);
echo "</h6>
\t\t\t\t\t
\t\t\t\t<b>";
// line 132
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 132, $this->source); })()), "getRevenue", [0 => (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 132, $this->source); })()), 1 => (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 132, $this->source); })()), 2 => (isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 132, $this->source); })())], "method", false, false, false, 132), "today", [], "array", false, false, false, 132), 0, ",", ""), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 132), "currency", [], "any", false, false, false, 132)), "html", null, true);
echo "</b>
\t\t\t</div>
\t\t</div>
\t\t<div class=\"col-4\">
\t\t\t<div class=\"card p-3 mb-2 bg-blue-dark text-white\">
\t\t\t\t<h6 class=\"text-white stats-title\"><i class=\"fa-solid fa-comment-dollar\"></i> ";
// line 137
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Yesterday"), "html", null, true);
echo "</h6>
\t\t\t\t<b>";
// line 138
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 138, $this->source); })()), "getRevenue", [0 => (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 138, $this->source); })()), 1 => (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 138, $this->source); })()), 2 => (isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 138, $this->source); })())], "method", false, false, false, 138), "yesterday", [], "array", false, false, false, 138), 0, ",", ""), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 138), "currency", [], "any", false, false, false, 138)), "html", null, true);
echo "</b>
\t\t\t</div>
\t\t</div>
\t
\t <div class=\"col-4\">
\t\t\t<div class=\"card p-3 mb-2 bg-orange-dark text-white\">
\t\t\t\t<h6 class=\"text-white stats-title\"><i class=\"fa-solid fa-comment-dollar\"></i> Mois ";
// line 144
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", "F"), "html", null, true);
echo "</h6>
\t\t <b>";
// line 145
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 145, $this->source); })()), "getRevenue", [0 => (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 145, $this->source); })()), 1 => (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 145, $this->source); })()), 2 => (isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 145, $this->source); })())], "method", false, false, false, 145), "current_month", [], "array", false, false, false, 145), 0, ",", ""), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 145), "currency", [], "any", false, false, false, 145)), "html", null, true);
echo "</b>
\t\t </div>
\t\t</div>
\t\t<!--<div class=\"col-4\">
\t\t\t<div class=\"card p-3 mb-2 bg-orange-dark text-white\">
\t\t\t\t<h6 class=\"text-white stats-title\"><i class=\"fa-solid fa-comment-dollar\"></i> ";
// line 151
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Average"), "html", null, true);
echo "</h6>
\t\t\t\t<b>";
// line 152
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, 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.', 152, $this->source); })()), "getAverageRevenuePerDay", [0 => "day"], "method", false, false, false, 152), 0, ",", ""), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 152), "currency", [], "any", false, false, false, 152)), "html", null, true);
echo "</b>
\t\t\t</div>
\t\t</div>-->
\t\t
\t\t<div class=\"col-12 mb-2\">
\t\t\t<div class=\"card p-3\">
\t\t
\t\t\t\t\t";
// line 163
echo "\t\t\t\t\t
\t\t<div class=\"col-12 col-md-12 \" >
\t\t\t<div class=\"card p-3\" >
\t\t\t\t<h6>Chiffre d'affaire par type d'abonnement</h6>
\t\t\t\t
\t\t\t\t<table class=\"table\">
\t\t\t\t\t<thead class=\"bg-purple-dark text-white\">
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t<th scope=\"col\">";
// line 172
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Product"), "html", null, true);
echo "</th>
\t\t\t\t\t\t<th scope=\"col\">";
// line 173
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Nombres
des ventes"), "html", null, true);
echo "</th>
\t\t\t\t\t\t<th scope=\"col\">";
// line 174
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Revenue"), "html", null, true);
echo "</th>
\t\t\t\t\t\t</tr>
\t\t\t\t\t</thead>
\t\t\t\t\t<tbody>
\t\t\t\t\t
\t\t\t\t\t ";
// line 179
$context['_parent'] = $context;
$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", [0 => (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 179, $this->source); })()), 1 => (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 179, $this->source); })()), 2 => (isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 179, $this->source); })())], "method", false, false, false, 179));
foreach ($context['_seq'] as $context["_key"] => $context["singleProductRevenu"]) {
// line 180
echo "\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td>";
// line 181
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["singleProductRevenu"], "productName", [], "any", false, false, false, 181), "html", null, true);
echo "</td>
\t\t\t\t\t\t\t<td>";
// line 182
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["singleProductRevenu"], "totalSold", [], "any", false, false, false, 182), "html", null, true);
echo "</td>
\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<span >
\t\t\t\t\t\t\t<b>
\t\t\t\t\t\t\t";
// line 186
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["singleProductRevenu"], "revenue", [], "any", false, false, false, 186), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 186), "currency", [], "any", false, false, false, 186)), "html", null, true);
echo "
\t\t\t\t\t\t\t</b>
\t\t\t\t\t\t\t</span></td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['singleProductRevenu'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 190
echo "
\t\t\t\t\t
\t\t\t\t\t</tbody>
\t\t\t\t</table>
\t\t\t\t
\t\t\t";
// line 197
echo "\t\t\t</div>
\t\t
\t\t</div>
\t\t\t</div>
\t\t</div>
\t\t
\t\t\t</div>
\t\t\t
\t\t</div>
\t\t<div class=\"col-12 col-md-7 p-4\" >
\t\t\t<div class=\"row quick-stats\">
\t\t\t";
// line 213
$context['_parent'] = $context;
$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", [0 => (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 213, $this->source); })()), 1 => (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 213, $this->source); })()), 2 => (isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 213, $this->source); })())], "method", false, false, false, 213));
foreach ($context['_seq'] as $context["key"] => $context["singleStat"]) {
// line 214
echo "\t\t\t\t<div class=\"col-lg-4 col-6 mb-3\">
\t\t\t\t\t<div class=\"card p-3 bg-purple-dark text-white\" >
\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t<div class=\"col-lg-3 col-12\" >
\t\t\t\t\t\t\t\t<div class=\"icon-container text-purple\">
\t\t\t\t\t\t\t\t\t";
// line 219
echo twig_get_attribute($this->env, $this->source, $context["singleStat"], "icon", [], "array", false, false, false, 219);
echo "
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-9\" >
\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t<h6 class=\"stats-title text-white\"><span>";
// line 226
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["singleStat"], "all", [], "array", false, false, false, 226), "html", null, true);
echo " ";
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", false, false, false, 226)), "html", null, true);
echo "</span> <br>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["key"]), "html", null, true);
echo "</h6>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-12\" >
\t\t\t\t\t\t\t\t<ul class=\"list-unstyled text-center mt-2\">
\t\t\t\t\t\t\t\t\t<li><b>";
// line 231
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["singleStat"], "new", [], "array", false, false, false, 231), 0, ",", ""), "html", null, true);
echo " ";
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", false, false, false, 231)), "html", null, true);
echo "</b> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("last week"), "html", null, true);
echo "</li>
\t\t\t\t\t\t\t\t\t<li><b>";
// line 232
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["singleStat"], "old", [], "array", false, false, false, 232), 0, ",", ""), "html", null, true);
echo " ";
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", false, false, false, 232)), "html", null, true);
echo "</b> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("last month"), "html", null, true);
echo "</li>
\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['singleStat'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 239
echo "
\t\t\t\t
\t\t\t</div>
\t\t</div>
\t</div>
<div class=\"row\" >
\t\t
\t\t<div class=\"col-12\" >
\t\t\t
\t\t\t<h5>Visite AdhΓ©rant </h5>
\t\t</div>
\t\t<div class=\"col-lg-9 col-md-9 col-sx-9\">
\t\t\t
\t\t\t\t
\t\t\t \t";
// line 260
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", [0 => (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 260, $this->source); })()), 1 => (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 260, $this->source); })()), 2 => (isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 260, $this->source); })())], "method", false, false, false, 260));
echo "
\t\t</div>
\t
\t\t<div class=\"col-lg-3 col-md-3 col-sx-3\">
\t\t\t<div class=\"card p-3 mb-2 bg-purple-dark text-white\">
\t\t\t\t<h6 class=\"text-white stats-title\"><i class=\"fa-solid fa-people-group\"></i> Visites ";
// line 266
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Yesterday"), "html", null, true);
echo "</h6>
\t\t\t\t<b>Pointage Manuel ";
// line 267
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 267, $this->source); })()), "getVisitYesterday", [0 => (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 267, $this->source); })()), 1 => (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 267, $this->source); })()), 2 => (isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 267, $this->source); })())], "method", false, false, false, 267), 0, [], "array", false, false, false, 267), "manuel", [], "array", false, false, false, 267), "html", null, true);
echo "<div style=\"float:right\"><span style=\"font-size:16px;\">π©π» </span>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 267, $this->source); })()), "getVisitYesterday", [0 => (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 267, $this->source); })()), 1 => (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 267, $this->source); })()), 2 => (isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 267, $this->source); })())], "method", false, false, false, 267), 0, [], "array", false, false, false, 267), "female_manuel", [], "array", false, false, false, 267), "html", null, true);
echo " | <span style=\"font-size:16px;\">π¨π»</span> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 267, $this->source); })()), "getVisitYesterday", [0 => (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 267, $this->source); })()), 1 => (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 267, $this->source); })()), 2 => (isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 267, $this->source); })())], "method", false, false, false, 267), 0, [], "array", false, false, false, 267), "male_manuel", [], "array", false, false, false, 267), "html", null, true);
echo "</div></b>
\t\t\t\t<b>Pointage Carte ";
// line 268
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 268, $this->source); })()), "getVisitYesterday", [0 => (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 268, $this->source); })()), 1 => (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 268, $this->source); })()), 2 => (isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 268, $this->source); })())], "method", false, false, false, 268), 0, [], "array", false, false, false, 268), "automatique", [], "array", false, false, false, 268), "html", null, true);
echo "<div style=\"float:right\"><span style=\"font-size:16px;\">π©π» </span> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 268, $this->source); })()), "getVisitYesterday", [0 => (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 268, $this->source); })()), 1 => (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 268, $this->source); })()), 2 => (isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 268, $this->source); })())], "method", false, false, false, 268), 0, [], "array", false, false, false, 268), "female_automatique", [], "array", false, false, false, 268), "html", null, true);
echo " | <span style=\"font-size:16px;\">π¨π»</span> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 268, $this->source); })()), "getVisitYesterday", [0 => (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 268, $this->source); })()), 1 => (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 268, $this->source); })()), 2 => (isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 268, $this->source); })())], "method", false, false, false, 268), 0, [], "array", false, false, false, 268), "male_automatique", [], "array", false, false, false, 268), "html", null, true);
echo " </div></b>
\t\t\t</div>
\t\t\t<div class=\"card p-3 mb-2 bg-blue-dark text-white\">
\t\t\t\t<h6 class=\"text-white stats-title\"><i class=\"fa-solid fa-people-group\"></i> Visites ";
// line 271
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Today"), "html", null, true);
echo " </h6>
\t\t\t
\t\t\t\t<b>Pointage Manuel ";
// line 273
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 273, $this->source); })()), "getVisitToday", [0 => (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 273, $this->source); })()), 1 => (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 273, $this->source); })()), 2 => (isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 273, $this->source); })())], "method", false, false, false, 273), 0, [], "array", false, false, false, 273), "manuel", [], "array", false, false, false, 273), "html", null, true);
echo "<div style=\"float:right\"><span style=\"font-size:16px;\">π©π» </span>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 273, $this->source); })()), "getVisitToday", [0 => (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 273, $this->source); })()), 1 => (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 273, $this->source); })()), 2 => (isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 273, $this->source); })())], "method", false, false, false, 273), 0, [], "array", false, false, false, 273), "female_manuel", [], "array", false, false, false, 273), "html", null, true);
echo " | <span style=\"font-size:16px;\">π¨π»</span> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 273, $this->source); })()), "getVisitToday", [0 => (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 273, $this->source); })()), 1 => (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 273, $this->source); })()), 2 => (isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 273, $this->source); })())], "method", false, false, false, 273), 0, [], "array", false, false, false, 273), "male_manuel", [], "array", false, false, false, 273), "html", null, true);
echo "</div></b>
\t\t\t\t<b>Pointage Carte ";
// line 274
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 274, $this->source); })()), "getVisitToday", [0 => (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 274, $this->source); })()), 1 => (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 274, $this->source); })()), 2 => (isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 274, $this->source); })())], "method", false, false, false, 274), 0, [], "array", false, false, false, 274), "automatique", [], "array", false, false, false, 274), "html", null, true);
echo "<div style=\"float:right\"><span style=\"font-size:16px;\">π©π» </span> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 274, $this->source); })()), "getVisitToday", [0 => (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 274, $this->source); })()), 1 => (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 274, $this->source); })()), 2 => (isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 274, $this->source); })())], "method", false, false, false, 274), 0, [], "array", false, false, false, 274), "female_automatique", [], "array", false, false, false, 274), "html", null, true);
echo " | <span style=\"font-size:16px;\">π¨π»</span> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 274, $this->source); })()), "getVisitToday", [0 => (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 274, $this->source); })()), 1 => (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 274, $this->source); })()), 2 => (isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 274, $this->source); })())], "method", false, false, false, 274), 0, [], "array", false, false, false, 274), "male_automatique", [], "array", false, false, false, 274), "html", null, true);
echo "</div></b>
\t\t\t</div>
\t\t</div>
\t\t
\t\t
\t\t
\t\t\t\t
\t</div>
\t<div class=\"row mt-5\" >
\t";
// line 288
echo "
\t";
// line 298
echo "
";
// line 334
echo "\t\t<div class=\"col-12 col-md-8\" >
\t\t\t<div class=\"card p-3\" >
\t\t\t\t<h6>Chiffre d'affaire par commercial</h6>
\t\t\t\t<table class=\"table\">
\t\t\t\t\t<thead class=\"bg-purple-dark text-white\">
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t<th scope=\"col\">";
// line 341
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Agent"), "html", null, true);
echo " </th>
\t\t\t\t\t\t<th scope=\"col\">";
// line 342
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Revenue"), "html", null, true);
echo "</th>
\t\t\t\t\t\t</tr>
\t\t\t\t\t</thead>
\t\t\t\t\t<tbody>
\t\t\t\t\t";
// line 346
$context['_parent'] = $context;
$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", [0 => (isset($context["store"]) || array_key_exists("store", $context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.', 346, $this->source); })()), 1 => (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 346, $this->source); })()), 2 => (isset($context["month"]) || array_key_exists("month", $context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.', 346, $this->source); })())], "method", false, false, false, 346));
foreach ($context['_seq'] as $context["_key"] => $context["singleAgentRevenu"]) {
// line 347
echo "\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td>";
// line 348
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["singleAgentRevenu"], "agentFirstName", [], "any", false, false, false, 348), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["singleAgentRevenu"], "agentLastName", [], "any", false, false, false, 348), "html", null, true);
echo "</td>
\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t<span >
\t\t\t\t\t\t\t<b>
\t\t\t\t\t\t\t";
// line 352
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["singleAgentRevenu"], "revenue", [], "any", false, false, false, 352), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 352), "currency", [], "any", false, false, false, 352)), "html", null, true);
echo "
\t\t\t\t\t\t\t</b>
\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['singleAgentRevenu'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 358
echo "\t\t\t\t\t</tbody>
\t\t\t\t</table>
";
// line 361
$context["revenueCategoryUrl"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $this->extensions['EasyCorp\Bundle\EasyAdminBundle\Twig\EasyAdminTwigExtension']->getAdminUrlGenerator(), "setDashboard", [0 => "App\\Controller\\Admin\\DashboardController"], "method", false, false, false, 361), "setController", [0 => "App\\Flexy\\FrontBundle\\Themes\\Lasalle\\Controller\\ShopAdmin\\Product\\CategoryProductRevenueCrudController"], "method", false, false, false, 361), "setAction", [0 => "index"], "method", false, false, false, 361);
// line 362
echo "\t\t\t\t\t<!--<a class=\"btn-btn-info\" href=\"";
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", null, true);
echo "\" data-turbo=\"false\" >Voir plus</a>-->
\t\t\t</div>
\t\t
\t\t</div>
\t</div>
\t
\t
<script>
document.addEventListener(\"turbo:load\",function(){
\t\t\$(\"#store-select,#year-select,#months-select\").change(function(){
\t\t\t\$(\"#btn-filter-stats\").trigger(\"click\");
\t\t});
\$(\"#year-select\").change(function(){
\$(\"#months-select\").val(0).change();
\t\t\t\$(\"#btn-filter-stats\").trigger(\"click\");
\t\t});
});
</script>
\t</turbo-frame>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@Flexy/FrontBundle/Themes/Lasalle/templates/admin/statistics/admin/_content.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("<turbo-frame id=\"render-stats\" data-turbo-action=\"advance\" >
\t
\t
\t{% if store is not defined %}
\t\t{% set store = null %}
\t{% endif %}
\t{% if year is not defined or app.request.get('year') == \"0\" %}
\t\t\t{% set year = null %}
\t\t
\t{% endif %}
\t\t{% if month is not defined or app.request.get('month') == \"0\" %}
\t\t{% set month = null %}
\t{% endif %}
\t
\t
\t
\t<div class=\"row header\" >
\t\t<div class=\"col-4\" >
\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}}
\t\t\t<br>
\t\t\t{% if store != null %}
\t\t\t\t<span class=\"badge badge-info p-1\" ><i class=\"fa-solid fa-shop\"></i> {{\"Store\"|trans}} : {{store}}</span>
\t\t\t{% endif %}
\t\t\t{% if year != null or month != null %}
\t\t\t\t<span class=\"badge badge-info p-1\" >
\t\t\t\t<i class=\"fa-solid fa-filter-circle-dollar\"></i>
\t\t\t\t{{\"Result for priod\"|trans}} :
\t\t\t\t{% if year != null %}
\t\t\t\t\t{{year}}
\t\t\t\t{% endif %}
\t\t\t\t{% if month != null %}
\t\t\t\t
\t\t\t\t\t{{ (\"2000-\"~month)|date('F')|trans }}</span>
\t\t\t\t{% endif %}
\t\t\t{% endif %}
\t\t\t
\t\t\t</h2>
\t\t\t
\t\t</div>
\t\t<div class=\"col-8\" >
\t\t\t
\t\t\t<form action=\"{{path('admin_stats')}}\" method=\"POST\">
\t\t\t
\t\t\t\t<div class=\"row\">
\t\t\t\t\t<div class=\"col-2\" >
\t\t\t\t\t\t<button id=\"btn-filter-stats\" class=\"d-none btn btn-success d-block btn-large\" >Filtrer</button>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"col-4\" >
\t\t\t\t\t{% if stores|length > 1 %}
\t\t\t\t\t\t<select id=\"store-select\" class=\"form-select\" name=\"store\" aria-label=\"Default select example\">
\t\t\t\t\t\t\t<option value=\"0\" selected>{{\"All stores\"|trans}}</option>
\t\t\t\t\t\t\t{% for singleStore in stores %}
\t\t\t\t\t\t\t\t<option {% if singleStore == store %}selected{% endif %} value=\"{{singleStore.id}}\">
\t\t\t\t\t\t\t\t\t{{singleStore.name}}
\t\t\t\t\t\t\t\t</option>
\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t</select>
\t\t\t\t\t\t
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t\t
\t\t\t\t\t<div class=\"col-3\" >
\t\t\t\t\t\t<select id=\"year-select\" class=\"form-select\" name=\"year\" aria-label=\"Default select example\">
\t\t\t\t\t\t\t<option value=\"0\">{{\"All years\"|trans}}</option>
\t\t\t\t\t\t\t{% for singleYear in shopStatisticProvider.periodsOrdersOptions(store)|sort((a, b) => a.year < b.year ? 1 : -1) %}
\t\t\t\t\t\t\t\t<option {% if singleYear[\"year\"] == year %}selected{% endif %} value=\"{{singleYear[\"year\"]}}\">
\t\t\t\t\t\t\t\t\t{{singleYear[\"year\"]}}
\t\t\t\t\t\t\t\t</option>
\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t
\t\t\t\t\t\t</select>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"col-3\" >
\t\t\t\t\t\t
\t\t\t\t\t\t\t<select id=\"months-select\" class=\"form-select\" name=\"month\" aria-label=\"Default select example\">
\t\t\t\t\t\t\t<option value=\"0\">{{\"All months\"|trans}}</option>
\t\t\t\t\t\t\t{% for singleYear in shopStatisticProvider.periodsOrdersOptions(store) %}
\t\t\t\t\t\t\t\t{% for singleMonth in singleYear[\"months\"]|sort((a, b) => a.number < b.number ? 1 : -1) %}
\t\t\t\t\t\t\t\t\t{% if singleYear[\"year\"] == year %}
\t\t\t\t\t\t\t\t\t\t<option {% if singleMonth[\"number\"] == month %}selected{% endif %} value=\"{{singleMonth[\"number\"]}}\">
\t\t\t\t\t\t\t\t\t\t\t {{singleMonth[\"name\"]}}
\t\t\t\t\t\t\t\t\t\t</option>
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t
\t\t\t\t\t\t</select>
\t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t</div>
\t\t\t\t\t
\t\t\t\t\t
\t\t\t\t</div>
\t\t\t</form>
\t\t</div>
\t</div>
\t<div class=\"row\" >
\t\t\t<div class=\"col-12 col-md-5 p-4\" >
\t\t\t<div class=\"row\" >
\t\t<div class=\"col-4\">
\t\t\t<div class=\"card p-3 mb-2 bg-purple-dark text-white\">
\t\t\t\t<h6 class=\"text-white stats-title\"><i class=\"fa-solid fa-comment-dollar\"></i> {{\"Today\"|trans}}</h6>
\t\t\t\t\t
\t\t\t\t<b>{{shopStatisticProvider.getRevenue(store,year,month)[\"today\"]|number_format(0,\",\",\"\")}} {{settings.get.currency|trans}}</b>
\t\t\t</div>
\t\t</div>
\t\t<div class=\"col-4\">
\t\t\t<div class=\"card p-3 mb-2 bg-blue-dark text-white\">
\t\t\t\t<h6 class=\"text-white stats-title\"><i class=\"fa-solid fa-comment-dollar\"></i> {{\"Yesterday\"|trans}}</h6>
\t\t\t\t<b>{{shopStatisticProvider.getRevenue(store,year,month)[\"yesterday\"]|number_format(0,\",\",\"\")}} {{settings.get.currency|trans}}</b>
\t\t\t</div>
\t\t</div>
\t
\t <div class=\"col-4\">
\t\t\t<div class=\"card p-3 mb-2 bg-orange-dark text-white\">
\t\t\t\t<h6 class=\"text-white stats-title\"><i class=\"fa-solid fa-comment-dollar\"></i> Mois {{ \"now\"|date(\"F\") }}</h6>
\t\t <b>{{shopStatisticProvider.getRevenue(store,year,month)[\"current_month\"]|number_format(0,\",\",\"\")}} {{settings.get.currency|trans}}</b>
\t\t </div>
\t\t</div>
\t\t<!--<div class=\"col-4\">
\t\t\t<div class=\"card p-3 mb-2 bg-orange-dark text-white\">
\t\t\t\t<h6 class=\"text-white stats-title\"><i class=\"fa-solid fa-comment-dollar\"></i> {{\"Average\"|trans}}</h6>
\t\t\t\t<b>{{shopStatisticProvider.getAverageRevenuePerDay(\"day\")|number_format(0,\",\",\"\")}} {{settings.get.currency|trans}}</b>
\t\t\t</div>
\t\t</div>-->
\t\t
\t\t<div class=\"col-12 mb-2\">
\t\t\t<div class=\"card p-3\">
\t\t
\t\t\t\t\t{#{{ render_chart(shopStatisticProvider.chartRevenue(store,year,month)) }}#}
\t\t\t\t\t
\t\t<div class=\"col-12 col-md-12 \" >
\t\t\t<div class=\"card p-3\" >
\t\t\t\t<h6>Chiffre d'affaire par type d'abonnement</h6>
\t\t\t\t
\t\t\t\t<table class=\"table\">
\t\t\t\t\t<thead class=\"bg-purple-dark text-white\">
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t<th scope=\"col\">{{\"Product\"|trans}}</th>
\t\t\t\t\t\t<th scope=\"col\">{{\"Nombres \\n des ventes\"|trans}}</th>
\t\t\t\t\t\t<th scope=\"col\">{{\"Revenue\"|trans}}</th>
\t\t\t\t\t\t</tr>
\t\t\t\t\t</thead>
\t\t\t\t\t<tbody>
\t\t\t\t\t
\t\t\t\t\t {% for singleProductRevenu in shopStatisticProvider.revenueByProducts(store,year,month) %}
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td>{{singleProductRevenu.productName}}</td>
\t\t\t\t\t\t\t<td>{{singleProductRevenu.totalSold}}</td>
\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<span >
\t\t\t\t\t\t\t<b>
\t\t\t\t\t\t\t{{singleProductRevenu.revenue}} {{settings.get.currency|trans}}
\t\t\t\t\t\t\t</b>
\t\t\t\t\t\t\t</span></td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t{% endfor %}
\t\t\t\t\t
\t\t\t\t\t</tbody>
\t\t\t\t</table>
\t\t\t\t
\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\") %}
\t\t\t\t\t<a class=\"btn-btn-info\" href=\"{{revenueProductUrl}}\" data-turbo=\"false\" >Voir plus</a>#}
\t\t\t</div>
\t\t
\t\t</div>
\t\t\t</div>
\t\t</div>
\t\t
\t\t\t</div>
\t\t\t
\t\t</div>
\t\t<div class=\"col-12 col-md-7 p-4\" >
\t\t\t<div class=\"row quick-stats\">
\t\t\t{% for key, singleStat in shopStatisticProvider.quickStats(store,year,month) %}
\t\t\t\t<div class=\"col-lg-4 col-6 mb-3\">
\t\t\t\t\t<div class=\"card p-3 bg-purple-dark text-white\" >
\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t<div class=\"col-lg-3 col-12\" >
\t\t\t\t\t\t\t\t<div class=\"icon-container text-purple\">
\t\t\t\t\t\t\t\t\t{{singleStat[\"icon\"]|raw}}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-9\" >
\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t
\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>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-12\" >
\t\t\t\t\t\t\t\t<ul class=\"list-unstyled text-center mt-2\">
\t\t\t\t\t\t\t\t\t<li><b>{{singleStat[\"new\"]|number_format(0,\",\",\"\")}} {{singleStat[\"unit\"]|trans}}</b> {{\"last week\"|trans}}</li>
\t\t\t\t\t\t\t\t\t<li><b>{{singleStat[\"old\"]|number_format(0,\",\",\"\")}} {{singleStat[\"unit\"]|trans}}</b> {{\"last month\"|trans}}</li>
\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t{% endfor %}
\t\t\t\t
\t\t\t</div>
\t\t</div>
\t</div>
<div class=\"row\" >
\t\t
\t\t<div class=\"col-12\" >
\t\t\t
\t\t\t<h5>Visite AdhΓ©rant </h5>
\t\t</div>
\t\t<div class=\"col-lg-9 col-md-9 col-sx-9\">
\t\t\t
\t\t\t\t
\t\t\t \t{{ render_chart(shopStatisticProvider.chartVisteBymonths(store,year,month)) }}
\t\t</div>
\t
\t\t<div class=\"col-lg-3 col-md-3 col-sx-3\">
\t\t\t<div class=\"card p-3 mb-2 bg-purple-dark text-white\">
\t\t\t\t<h6 class=\"text-white stats-title\"><i class=\"fa-solid fa-people-group\"></i> Visites {{\"Yesterday\"|trans}}</h6>
\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>
\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>
\t\t\t</div>
\t\t\t<div class=\"card p-3 mb-2 bg-blue-dark text-white\">
\t\t\t\t<h6 class=\"text-white stats-title\"><i class=\"fa-solid fa-people-group\"></i> Visites {{\"Today\"|trans}} </h6>
\t\t\t
\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>
\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>
\t\t\t</div>
\t\t</div>
\t\t
\t\t
\t\t
\t\t\t\t
\t</div>
\t<div class=\"row mt-5\" >
\t{# <div class=\"col-12\" >
\t\t\t<h4>Stats chiffre d'affaire</h4>
\t\t</div> #}
\t{#\t<div class=\"col-12 col-md-4\" >
\t\t\t<div class=\"card p-3\" >
\t\t\t
\t\t\t\t
\t\t\t\t{{ render_chart(shopStatisticProvider.chartRevenueByParentCategories(store,year,month)) }}
\t\t\t</div>
\t\t</div> #}
{#
\t\t<div class=\"col-12 col-md-4 d-none\" >
\t\t\t<div class=\"card p-3\" >
\t\t\t\t<h6>Chiffre d'affaire par type d'abonnement</h6>
\t\t\t\t
\t\t\t\t<table class=\"table\">
\t\t\t\t\t<thead class=\"bg-purple-dark text-white\">
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t<th scope=\"col\">{{\"Product\"|trans}}</th>
\t\t\t\t\t\t<th scope=\"col\">{{\"Revenue\"|trans}}</th>
\t\t\t\t\t\t</tr>
\t\t\t\t\t</thead>
\t\t\t\t\t<tbody>
\t\t\t\t\t
\t\t\t\t\t {% for singleProductRevenu in shopStatisticProvider.revenueByProducts(store,year,month) %}
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td>{{singleProductRevenu[0]}}</td>
\t\t\t\t\t\t\t<td><span >
\t\t\t\t\t\t\t<b>
\t\t\t\t\t\t\t{{singleProductRevenu.revenue}} {{settings.get.currency|trans}}
\t\t\t\t\t\t\t</b>
\t\t\t\t\t\t\t</span></td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t{% endfor %}
\t\t\t\t\t
\t\t\t\t\t</tbody>
\t\t\t\t</table>
\t\t\t\t
\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\") %}
\t\t\t\t\t<a class=\"btn-btn-info\" href=\"{{revenueProductUrl}}\" data-turbo=\"false\" >Voir plus</a>
\t\t\t</div>
\t\t
\t\t</div>
\t\t#}
\t\t<div class=\"col-12 col-md-8\" >
\t\t\t<div class=\"card p-3\" >
\t\t\t\t<h6>Chiffre d'affaire par commercial</h6>
\t\t\t\t<table class=\"table\">
\t\t\t\t\t<thead class=\"bg-purple-dark text-white\">
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t<th scope=\"col\">{{\"Agent\"|trans}} </th>
\t\t\t\t\t\t<th scope=\"col\">{{\"Revenue\"|trans}}</th>
\t\t\t\t\t\t</tr>
\t\t\t\t\t</thead>
\t\t\t\t\t<tbody>
\t\t\t\t\t{% for singleAgentRevenu in shopStatisticProvider.revenueByAgents(store,year,month) %}
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td>{{singleAgentRevenu.agentFirstName}} {{singleAgentRevenu.agentLastName}}</td>
\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t<span >
\t\t\t\t\t\t\t<b>
\t\t\t\t\t\t\t{{singleAgentRevenu.revenue}} {{settings.get.currency|trans}}
\t\t\t\t\t\t\t</b>
\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t{% endfor %}
\t\t\t\t\t</tbody>
\t\t\t\t</table>
{% set revenueCategoryUrl = ea_url().setDashboard(\"App\\\\Controller\\\\Admin\\\\DashboardController\").setController(\"App\\\\Flexy\\\\FrontBundle\\\\Themes\\\\Lasalle\\\\Controller\\\\ShopAdmin\\\\Product\\\\CategoryProductRevenueCrudController\").setAction(\"index\") %}
\t\t\t\t\t<!--<a class=\"btn-btn-info\" href=\"{{revenueCategoryUrl}}\" data-turbo=\"false\" >Voir plus</a>-->
\t\t\t</div>
\t\t
\t\t</div>
\t</div>
\t
\t
<script>
document.addEventListener(\"turbo:load\",function(){
\t\t\$(\"#store-select,#year-select,#months-select\").change(function(){
\t\t\t\$(\"#btn-filter-stats\").trigger(\"click\");
\t\t});
\$(\"#year-select\").change(function(){
\$(\"#months-select\").val(0).change();
\t\t\t\$(\"#btn-filter-stats\").trigger(\"click\");
\t\t});
});
</script>
\t</turbo-frame>
", "@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");
}
}