var/cache/dev/twig/02/02e8c2b8df5dc7e87a29a7b232762705.php line 54

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* debug/live.html.twig */
  16. class __TwigTemplate_f56a7c0169153d0174861da7d3dcfc7d extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'body' => [$this'block_body'],
  29.             'javascripts' => [$this'block_javascripts'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33.     {
  34.         // line 1
  35.         return "base.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = []): iterable
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""debug/live.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""debug/live.html.twig"));
  44.         $this->parent $this->load("base.html.twig"1);
  45.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 3
  52.     /**
  53.      * @return iterable<null|scalar|\Stringable>
  54.      */
  55.     public function block_body(array $context, array $blocks = []): iterable
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  62.         // line 4
  63.         yield "    <div class=\"page\">
  64.         <div class=\"container header-page\">
  65.             <div class=\"row animated fadeIn delay-0-2s mb-3 mb-lg-5 align-items-center header-button\">
  66.                 <div class=\"col-6\">
  67.                     <div class=\"\">
  68.                     \t<h2><svg class=\"icon-network\" style=\"width: 27px; position: relative; top: -5px;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"35\" height=\"27\" fill=\"currentColor\" class=\"bi bi-wifi\" viewBox=\"0 0 16 16\">
  69. \t\t\t\t\t\t  <path d=\"M15.384 6.115a.485.485 0 0 0-.047-.736A12.444 12.444 0 0 0 8 3C5.259 3 2.723 3.882.663 5.379a.485.485 0 0 0-.048.736.518.518 0 0 0 .668.05A11.448 11.448 0 0 1 8 4c2.507 0 4.827.802 6.716 2.164.205.148.49.13.668-.049z\"/>
  70. \t\t\t\t\t\t  <path d=\"M13.229 8.271a.482.482 0 0 0-.063-.745A9.455 9.455 0 0 0 8 6c-1.905 0-3.68.56-5.166 1.526a.48.48 0 0 0-.063.745.525.525 0 0 0 .652.065A8.46 8.46 0 0 1 8 7a8.46 8.46 0 0 1 4.576 1.336c.206.132.48.108.653-.065zm-2.183 2.183c.226-.226.185-.605-.1-.75A6.473 6.473 0 0 0 8 9c-1.06 0-2.062.254-2.946.704-.285.145-.326.524-.1.75l.015.015c.16.16.407.19.611.09A5.478 5.478 0 0 1 8 10c.868 0 1.69.201 2.42.56.203.1.45.07.61-.091l.016-.015zM9.06 12.44c.196-.196.198-.52-.04-.66A1.99 1.99 0 0 0 8 11.5a1.99 1.99 0 0 0-1.02.28c-.238.14-.236.464-.04.66l.706.706a.5.5 0 0 0 .707 0l.707-.707z\"/>
  71. \t\t\t\t\t\t</svg> Live</h2>
  72.                     </div>
  73.                     
  74.                 </div>
  75.                 <div class=\"col-6 text-right\">
  76.                 \t<div class=\"link-right\">
  77.                 \t\t<button class=\"btn btn-secondary link-i-see d-none\">Recept</button>
  78.                 \t</div>
  79.             \t</div>
  80.             \t<div class=\"col-12\">
  81.             \t\t<hr></hr>
  82.             \t</div>
  83.             </div>
  84.         </div>
  85.         <div class=\"container\">
  86.         \t<div class=\"row\">
  87.         \t\t<div class=\"col-12 col-md-6 col-lg-4 mb-3 mb-lg-0 col-xl-3 animated fadeIn delay-0-2s\">
  88.         \t\t\t<div class=\"card text-center\" id=\"current-position\">
  89. \t\t\t\t\t  \t<div class=\"card-header\">
  90. \t\t\t\t\t    \tCurrent position
  91. \t\t\t\t\t  \t</div>
  92. \t\t\t\t\t  \t";
  93.         // line 34
  94.         if ((($tmp = (isset($context["currentPosition"]) || array_key_exists("currentPosition"$context) ? $context["currentPosition"] : (function () { throw new RuntimeError('Variable "currentPosition" does not exist.'34$this->source); })())) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  95.             // line 35
  96.             yield "\t\t\t\t\t\t  \t<div class=\"card-body\">
  97. \t\t\t\t\t\t    \t<h5 class=\"card-title\"><span class=\"value\">";
  98.             // line 36
  99.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source, (isset($context["currentPosition"]) || array_key_exists("currentPosition"$context) ? $context["currentPosition"] : (function () { throw new RuntimeError('Variable "currentPosition" does not exist.'36$this->source); })()), "datePrinted", [], "any"falsefalsefalse36), "d-m-Y H:i:s"), "html"nulltrue);
  100.             yield "</span></h5>
  101. \t\t\t\t\t\t    \t<ul class=\"list-group list-group-flush\">
  102. \t\t\t\t\t\t\t\t    <li class=\"list-group-item latitude\">Latitude : <div class=\"value\">";
  103.             // line 38
  104.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["currentPosition"]) || array_key_exists("currentPosition"$context) ? $context["currentPosition"] : (function () { throw new RuntimeError('Variable "currentPosition" does not exist.'38$this->source); })()), "latitude", [], "any"falsefalsefalse38), "html"nulltrue);
  105.             yield "</div></li>
  106. \t\t\t\t\t\t\t\t    <li class=\"list-group-item longitude\">Longitude : <div class=\"value\">";
  107.             // line 39
  108.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["currentPosition"]) || array_key_exists("currentPosition"$context) ? $context["currentPosition"] : (function () { throw new RuntimeError('Variable "currentPosition" does not exist.'39$this->source); })()), "longitude", [], "any"falsefalsefalse39), "html"nulltrue);
  109.             yield "</div></li>
  110. \t\t\t\t\t\t\t\t    <li class=\"list-group-item\"><a href=\"/debug/information/position\" class=\"btn btn-primary mt-3\">Get last positions</a></li>
  111. \t\t\t\t\t\t\t  \t</ul>
  112. \t\t\t\t\t\t\t  \t
  113. \t\t\t\t\t\t  \t</div>
  114. \t\t\t\t\t\t  \t<div class=\"card-footer text-muted\">
  115. \t\t\t\t\t\t    \t<span class=\"value\">";
  116.             // line 45
  117.             yield (isset($context["currentAgo"]) || array_key_exists("currentAgo"$context) ? $context["currentAgo"] : (function () { throw new RuntimeError('Variable "currentAgo" does not exist.'45$this->source); })());
  118.             yield "</span> ago
  119. \t\t\t\t\t\t  \t</div>
  120. \t\t\t\t\t  \t";
  121.         } else {
  122.             // line 48
  123.             yield "\t\t\t\t\t  \t\t<div class=\"text-center\">No data</div>
  124. \t\t\t\t\t  \t";
  125.         }
  126.         // line 50
  127.         yield "\t\t\t\t\t</div>
  128.         \t\t</div>
  129.         \t\t<div class=\"col-12 col-md-6 col-lg-4 mb-3 mb-lg-0 col-xl-3 animated fadeIn delay-0-2s\">
  130.         \t\t\t<div class=\"card text-center\" id=\"current-hobit\">
  131. \t\t\t\t\t  \t<div class=\"card-header\">
  132. \t\t\t\t\t    \tLast hobit
  133. \t\t\t\t\t  \t</div>
  134. \t\t\t\t\t  \t";
  135.         // line 59
  136.         if ((($tmp = (isset($context["lastHobit"]) || array_key_exists("lastHobit"$context) ? $context["lastHobit"] : (function () { throw new RuntimeError('Variable "lastHobit" does not exist.'59$this->source); })())) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  137.             // line 60
  138.             yield "\t\t\t\t\t\t  \t<div class=\"card-body\">
  139. \t\t\t\t\t\t    \t<h5 class=\"card-title\"><span class=\"value\">";
  140.             // line 61
  141.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source, (isset($context["lastHobit"]) || array_key_exists("lastHobit"$context) ? $context["lastHobit"] : (function () { throw new RuntimeError('Variable "lastHobit" does not exist.'61$this->source); })()), "startDateTime", [], "any"falsefalsefalse61), "d-m-Y H:i:s"), "html"nulltrue);
  142.             yield "</span></h5>
  143. \t\t\t\t\t\t    \t<ul class=\"list-group list-group-flush\">
  144. \t\t\t\t\t\t\t\t    <li class=\"list-group-item latitude\">Latitude : <div class=\"value\">";
  145.             // line 63
  146.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["lastHobit"]) || array_key_exists("lastHobit"$context) ? $context["lastHobit"] : (function () { throw new RuntimeError('Variable "lastHobit" does not exist.'63$this->source); })()), "data", [], "any"falsefalsefalse63), "latitude", [], "any"falsefalsefalse63), "html"nulltrue);
  147.             yield "</div></li>
  148. \t\t\t\t\t\t\t\t    <li class=\"list-group-item longitude\">Longitude : <div class=\"value\">";
  149.             // line 64
  150.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["lastHobit"]) || array_key_exists("lastHobit"$context) ? $context["lastHobit"] : (function () { throw new RuntimeError('Variable "lastHobit" does not exist.'64$this->source); })()), "data", [], "any"falsefalsefalse64), "longitude", [], "any"falsefalsefalse64), "html"nulltrue);
  151.             yield "</div></li>
  152. \t\t\t\t\t\t\t\t    <li class=\"list-group-item end\">End (or now) : <div class=\"value\">";
  153.             // line 65
  154.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source, (isset($context["lastHobit"]) || array_key_exists("lastHobit"$context) ? $context["lastHobit"] : (function () { throw new RuntimeError('Variable "lastHobit" does not exist.'65$this->source); })()), "endDateTime", [], "any"falsefalsefalse65), "d-m-Y H:i:s"), "html"nulltrue);
  155.             yield "</div></li>
  156. \t\t\t\t\t\t\t  \t</ul>
  157. \t\t\t\t\t\t\t  \t
  158. \t\t\t\t\t\t  \t</div>
  159. \t\t\t\t\t\t  \t<div class=\"card-footer text-muted\">
  160. \t\t\t\t\t\t    \t<span class=\"value\">";
  161.             // line 70
  162.             yield (isset($context["currentHobitAgo"]) || array_key_exists("currentHobitAgo"$context) ? $context["currentHobitAgo"] : (function () { throw new RuntimeError('Variable "currentHobitAgo" does not exist.'70$this->source); })());
  163.             yield "</span> ago
  164. \t\t\t\t\t\t  \t</div>
  165. \t\t\t\t\t  \t";
  166.         } else {
  167.             // line 73
  168.             yield "\t\t\t\t\t  \t\t<div class=\"text-center\">No data</div>
  169. \t\t\t\t\t  \t";
  170.         }
  171.         // line 75
  172.         yield "\t\t\t\t\t</div>
  173.         \t\t</div>
  174.         \t\t<div class=\"col-12 col-md-6 col-lg-4 mb-3 mb-lg-0 col-xl-3 \">
  175.         \t\t";
  176.         // line 79
  177.         if (((isset($context["newHobitAgo"]) || array_key_exists("newHobitAgo"$context) ? $context["newHobitAgo"] : (function () { throw new RuntimeError('Variable "newHobitAgo" does not exist.'79$this->source); })()) == false)) {
  178.             // line 80
  179.             yield "        \t\t\t<div class=\"card text-center d-none animated fadeIn delay-0-2s\" id=\"new-hobit\">
  180.     \t\t\t";
  181.         } else {
  182.             // line 82
  183.             yield "    \t\t\t\t<div class=\"card text-center animated fadeIn delay-0-2s\" id=\"new-hobit\">
  184. \t\t\t\t";
  185.         }
  186.         // line 84
  187.         yield "\t\t\t\t\t  \t<div class=\"card-header\">
  188. \t\t\t\t\t    \tScan hobit
  189. \t\t\t\t\t  \t</div>
  190. \t\t\t\t\t  \t<div class=\"card-body\">
  191. \t\t\t\t\t    \t<h5 class=\"card-title\">
  192. \t\t\t\t    \t\t<span class=\"value\">
  193. \t\t\t\t    \t\t\t";
  194.         // line 90
  195.         if ((($tmp = (isset($context["lastHobit"]) || array_key_exists("lastHobit"$context) ? $context["lastHobit"] : (function () { throw new RuntimeError('Variable "lastHobit" does not exist.'90$this->source); })())) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  196.             // line 91
  197.             yield "\t\t\t\t\t    \t\t\tSince ";
  198.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source, (isset($context["lastHobit"]) || array_key_exists("lastHobit"$context) ? $context["lastHobit"] : (function () { throw new RuntimeError('Variable "lastHobit" does not exist.'91$this->source); })()), "endDateTime", [], "any"falsefalsefalse91), "d-m-Y H:i:s"), "html"nulltrue);
  199.             yield "
  200. \t\t\t\t    \t\t\t";
  201.         }
  202.         // line 93
  203.         yield "\t\t\t\t    \t\t</span></h5>
  204. \t\t\t\t\t    \t<div class=\"loader mt-lg-4\">
  205. \t\t\t\t\t    \t\t<div class=\"spinner-grow text-primary\" role=\"status\">
  206. \t\t\t\t\t\t\t\t  <span class=\"visually-hidden\">Loading...</span>
  207. \t\t\t\t\t\t\t\t</div>
  208. \t\t\t\t\t    \t</div>
  209. \t\t\t\t\t  \t</div>
  210. \t\t\t\t\t  \t<div class=\"card-footer text-muted\">
  211. \t\t\t\t\t    \t<span class=\"value\">";
  212.         // line 101
  213.         yield (isset($context["newHobitAgo"]) || array_key_exists("newHobitAgo"$context) ? $context["newHobitAgo"] : (function () { throw new RuntimeError('Variable "newHobitAgo" does not exist.'101$this->source); })());
  214.         yield "</span> ago
  215. \t\t\t\t\t  \t</div>
  216. \t\t\t\t\t</div>
  217.         \t\t</div>
  218.     \t\t</div>
  219.             <div class=\"row mt-5\">
  220.             \t<div class=\"col-12\">
  221.             \t\t<h3 class=\"mb-3 animated fadeIn delay-0-2s\">Last positions</h3>
  222.         \t\t</div>
  223.             </div>
  224.             <div class=\"row\">
  225.             \t";
  226.         // line 114
  227.         if ((($tmp = (isset($context["positionGpsList"]) || array_key_exists("positionGpsList"$context) ? $context["positionGpsList"] : (function () { throw new RuntimeError('Variable "positionGpsList" does not exist.'114$this->source); })())) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  228.             // line 115
  229.             yield "\t        \t\t";
  230.             $context["i"] = 1;
  231.             // line 116
  232.             yield "\t                ";
  233.             $context["number"] = 1;
  234.             // line 117
  235.             yield "\t        \t\t";
  236.             $context['_parent'] = $context;
  237.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["positionGpsList"]) || array_key_exists("positionGpsList"$context) ? $context["positionGpsList"] : (function () { throw new RuntimeError('Variable "positionGpsList" does not exist.'117$this->source); })()));
  238.             foreach ($context['_seq'] as $context["_key"] => $context["positionGps"]) {
  239.                 // line 118
  240.                 yield "\t                    <div class=\"col-12 col-md-6 col-lg-4 mb-3 mb-lg-5\">
  241. \t                        <div class=\"card animated fadeIn delay-0-";
  242.                 // line 119
  243.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'119$this->source); })()), "html"nulltrue);
  244.                 yield "s\" style=\"width: 100%;\">
  245. \t                            <div class=\"card-body\">
  246. \t                                <h5 class=\"card-title\"><b>Position <span class=\"value\">";
  247.                 // line 121
  248.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["number"]) || array_key_exists("number"$context) ? $context["number"] : (function () { throw new RuntimeError('Variable "number" does not exist.'121$this->source); })()), "html"nulltrue);
  249.                 yield "</span></b></h5>
  250. \t                                <div class=\"card-text line mb-1\"><b>Date application : </b>";
  251.                 // line 122
  252.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["positionGps"], "datePrinted", [], "any"falsefalsefalse122), "d-m-Y H:i:s"), "html"nulltrue);
  253.                 yield "</div>
  254. \t                                <div class=\"card-text line mb-1\"><b>Date server : </b>";
  255.                 // line 123
  256.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["positionGps"], "dateCreatedByServer", [], "any"falsefalsefalse123), "d-m-Y H:i:s"), "html"nulltrue);
  257.                 yield "</div>
  258. \t                                <div class=\"card-text line mb-1\"><b>Latitude : </b>";
  259.                 // line 124
  260.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["positionGps"], "latitude", [], "any"falsefalsefalse124), "html"nulltrue);
  261.                 yield "</div>
  262. \t                                <div class=\"card-text line mb-1\"><b>Longitude : </b>";
  263.                 // line 125
  264.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["positionGps"], "longitude", [], "any"falsefalsefalse125), "html"nulltrue);
  265.                 yield "</div>
  266. \t                                <a href=\"/debug/information/positions/";
  267.                 // line 126
  268.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["positionGps"], "datePrinted", [], "any"falsefalsefalse126), "Y-m-d"), "html"nulltrue);
  269.                 yield "\" class=\"btn btn-primary mt-3\">All positions</a>
  270. \t                            </div>
  271. \t                        </div>
  272. \t                    </div>
  273. \t                    ";
  274.                 // line 130
  275.                 $context["i"] = ((isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'130$this->source); })()) + 1);
  276.                 // line 131
  277.                 yield "\t                    ";
  278.                 $context["number"] = ((isset($context["number"]) || array_key_exists("number"$context) ? $context["number"] : (function () { throw new RuntimeError('Variable "number" does not exist.'131$this->source); })()) + 1);
  279.                 // line 132
  280.                 yield "                    ";
  281.             }
  282.             $_parent $context['_parent'];
  283.             unset($context['_seq'], $context['_key'], $context['positionGps'], $context['_parent']);
  284.             $context array_intersect_key($context$_parent) + $_parent;
  285.             yield 
  286.                 ";
  287.         } else {
  288.             // line 134
  289.             yield "\t                <div class=\"text-center animated fadeIn delay-0-4s\" style=\"font-size: 30px;\">No data...</div>
  290.                 ";
  291.         }
  292.         // line 136
  293.         yield "                
  294.             </div>
  295.         </div>
  296.     </div>
  297. ";
  298.         
  299.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  300.         
  301.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  302.         yield from [];
  303.     }
  304.     // line 142
  305.     /**
  306.      * @return iterable<null|scalar|\Stringable>
  307.      */
  308.     public function block_javascripts(array $context, array $blocks = []): iterable
  309.     {
  310.         $macros $this->macros;
  311.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  312.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  313.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  314.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  315.         // line 143
  316.         yield "    ";
  317.         yield from $this->yieldParentBlock("javascripts"$context$blocks);
  318.         yield "
  319.     <script>
  320.   
  321.     \twindow.onload=function() {
  322. \t\t   var boucle = 1;
  323. \t    \tsetInterval(function(){
  324. \t\t\t\t\$.get( 
  325. \t\t\t\t    '";
  326.         // line 151
  327.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("information_live_refresh_debug");
  328.         yield "',  
  329. \t\t\t    \t{
  330. \t\t\t    \t}, 
  331. \t\t\t\t    function(data){
  332. \t\t\t\t    \tif(data['data']['dataHere']){
  333. \t\t\t\t\t    \tif(data['data']['currentPostition']['start'] != \$(\"body #current-position .card-title .value\").html()){
  334. \t\t\t\t\t    \t\t\$(\".icon-network\").removeClass(\"active\");
  335. \t\t\t\t\t    \t\t\$(\".icon-network\").addClass(\"active\");
  336. \t\t\t\t\t    \t\t\$(\".link-i-see\").removeClass(\"d-none\");
  337. \t\t\t\t\t    \t\tconst soundEffect = new Audio();
  338. \t\t\t\t\t\t\t\t// onClick of first interaction on page before I need the sounds
  339. \t\t\t\t\t\t\t\tsoundEffect.play();
  340. \t\t\t\t\t\t\t\t// later on when you actually want to play a sound at any point without user interaction
  341. \t\t\t\t\t\t\t\tsoundEffect.src = '/alert.mp3';
  342. \t\t\t\t\t\t\t\tsoundEffect.play();
  343. \t\t\t\t\t    \t}
  344. \t\t\t\t\t    \t//Current position
  345. \t\t\t\t\t        \$(\"body #current-position .card-title .value\").html(data['data']['currentPostition']['start']);
  346. \t\t\t\t\t        \$(\"body #current-position .latitude .value\").html(data['data']['currentPostition']['latitude']);
  347. \t\t\t\t\t        \$(\"body #current-position .longitude .value\").html(data['data']['currentPostition']['longitude']);
  348. \t\t\t\t\t        \$(\"body #current-position .card-footer .value\").html(data['data']['currentAgo']);
  349. \t\t\t\t\t        //Current hobit
  350. \t\t\t\t\t        \$(\"body #current-hobit .card-title .value\").html(data['data']['lastHobit']['start']);
  351. \t\t\t\t\t        \$(\"body #current-hobit .latitude .value\").html(data['data']['lastHobit']['latitude']);
  352. \t\t\t\t\t        \$(\"body #current-hobit .longitude .value\").html(data['data']['lastHobit']['longitude']);
  353. \t\t\t\t\t        \$(\"body #current-hobit .end .value\").html(data['data']['lastHobit']['end']);
  354. \t\t\t\t\t        \$(\"body #current-hobit .card-footer .value\").html(data['data']['currentHobitAgo']);
  355. \t\t\t\t\t        //Current hobit
  356. \t\t\t\t\t        if(data['data']['newHobitAgo'] != false){
  357. \t\t\t\t\t        \t\$(\"body #new-hobit .card-title .value\").html(data['data']['currentPostition']['start']);
  358. \t\t\t\t\t        \t\$(\"body #new-hobit .card-footer .value\").html(data['data']['newHobitAgo']);
  359. \t\t\t\t\t        \t\$(\"body #new-hobit\").removeClass(\"d-none\");
  360. \t\t\t\t\t    \t}
  361. \t\t\t\t\t    \telse{
  362. \t\t\t\t\t    \t\t\$(\"body #new-hobit\").addClass(\"d-none\");
  363. \t\t\t\t\t    \t}
  364. \t\t\t\t    \t}
  365. \t\t\t\t    } 
  366. \t\t\t\t); 
  367. \t\t\t}, 1000);
  368. \t\t\t};
  369. \t\t\$(\"body\").on(\"click\", \".link-i-see\", function(){
  370. \t\t\t\$(this).addClass(\"d-none\");
  371. \t\t\t\$(\".icon-network\").removeClass(\"active\");
  372. \t\t});
  373.     </script>
  374. ";
  375.         
  376.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  377.         
  378.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  379.         yield from [];
  380.     }
  381.     /**
  382.      * @codeCoverageIgnore
  383.      */
  384.     public function getTemplateName(): string
  385.     {
  386.         return "debug/live.html.twig";
  387.     }
  388.     /**
  389.      * @codeCoverageIgnore
  390.      */
  391.     public function isTraitable(): bool
  392.     {
  393.         return false;
  394.     }
  395.     /**
  396.      * @codeCoverageIgnore
  397.      */
  398.     public function getDebugInfo(): array
  399.     {
  400.         return array (  353 => 151,  341 => 143,  328 => 142,  313 => 136,  309 => 134,  300 => 132,  297 => 131,  295 => 130,  288 => 126,  284 => 125,  280 => 124,  276 => 123,  272 => 122,  268 => 121,  263 => 119,  260 => 118,  255 => 117,  252 => 116,  249 => 115,  247 => 114,  231 => 101,  221 => 93,  215 => 91,  213 => 90,  205 => 84,  201 => 82,  197 => 80,  195 => 79,  189 => 75,  185 => 73,  179 => 70,  171 => 65,  167 => 64,  163 => 63,  158 => 61,  155 => 60,  153 => 59,  142 => 50,  138 => 48,  132 => 45,  123 => 39,  119 => 38,  114 => 36,  111 => 35,  109 => 34,  77 => 4,  64 => 3,  41 => 1,);
  401.     }
  402.     public function getSourceContext(): Source
  403.     {
  404.         return new Source("{% extends 'base.html.twig' %}
  405. {% block body %}
  406.     <div class=\"page\">
  407.         <div class=\"container header-page\">
  408.             <div class=\"row animated fadeIn delay-0-2s mb-3 mb-lg-5 align-items-center header-button\">
  409.                 <div class=\"col-6\">
  410.                     <div class=\"\">
  411.                     \t<h2><svg class=\"icon-network\" style=\"width: 27px; position: relative; top: -5px;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"35\" height=\"27\" fill=\"currentColor\" class=\"bi bi-wifi\" viewBox=\"0 0 16 16\">
  412. \t\t\t\t\t\t  <path d=\"M15.384 6.115a.485.485 0 0 0-.047-.736A12.444 12.444 0 0 0 8 3C5.259 3 2.723 3.882.663 5.379a.485.485 0 0 0-.048.736.518.518 0 0 0 .668.05A11.448 11.448 0 0 1 8 4c2.507 0 4.827.802 6.716 2.164.205.148.49.13.668-.049z\"/>
  413. \t\t\t\t\t\t  <path d=\"M13.229 8.271a.482.482 0 0 0-.063-.745A9.455 9.455 0 0 0 8 6c-1.905 0-3.68.56-5.166 1.526a.48.48 0 0 0-.063.745.525.525 0 0 0 .652.065A8.46 8.46 0 0 1 8 7a8.46 8.46 0 0 1 4.576 1.336c.206.132.48.108.653-.065zm-2.183 2.183c.226-.226.185-.605-.1-.75A6.473 6.473 0 0 0 8 9c-1.06 0-2.062.254-2.946.704-.285.145-.326.524-.1.75l.015.015c.16.16.407.19.611.09A5.478 5.478 0 0 1 8 10c.868 0 1.69.201 2.42.56.203.1.45.07.61-.091l.016-.015zM9.06 12.44c.196-.196.198-.52-.04-.66A1.99 1.99 0 0 0 8 11.5a1.99 1.99 0 0 0-1.02.28c-.238.14-.236.464-.04.66l.706.706a.5.5 0 0 0 .707 0l.707-.707z\"/>
  414. \t\t\t\t\t\t</svg> Live</h2>
  415.                     </div>
  416.                     
  417.                 </div>
  418.                 <div class=\"col-6 text-right\">
  419.                 \t<div class=\"link-right\">
  420.                 \t\t<button class=\"btn btn-secondary link-i-see d-none\">Recept</button>
  421.                 \t</div>
  422.             \t</div>
  423.             \t<div class=\"col-12\">
  424.             \t\t<hr></hr>
  425.             \t</div>
  426.             </div>
  427.         </div>
  428.         <div class=\"container\">
  429.         \t<div class=\"row\">
  430.         \t\t<div class=\"col-12 col-md-6 col-lg-4 mb-3 mb-lg-0 col-xl-3 animated fadeIn delay-0-2s\">
  431.         \t\t\t<div class=\"card text-center\" id=\"current-position\">
  432. \t\t\t\t\t  \t<div class=\"card-header\">
  433. \t\t\t\t\t    \tCurrent position
  434. \t\t\t\t\t  \t</div>
  435. \t\t\t\t\t  \t{% if currentPosition %}
  436. \t\t\t\t\t\t  \t<div class=\"card-body\">
  437. \t\t\t\t\t\t    \t<h5 class=\"card-title\"><span class=\"value\">{{ currentPosition.datePrinted|date(\"d-m-Y H:i:s\") }}</span></h5>
  438. \t\t\t\t\t\t    \t<ul class=\"list-group list-group-flush\">
  439. \t\t\t\t\t\t\t\t    <li class=\"list-group-item latitude\">Latitude : <div class=\"value\">{{ currentPosition.latitude }}</div></li>
  440. \t\t\t\t\t\t\t\t    <li class=\"list-group-item longitude\">Longitude : <div class=\"value\">{{ currentPosition.longitude }}</div></li>
  441. \t\t\t\t\t\t\t\t    <li class=\"list-group-item\"><a href=\"/debug/information/position\" class=\"btn btn-primary mt-3\">Get last positions</a></li>
  442. \t\t\t\t\t\t\t  \t</ul>
  443. \t\t\t\t\t\t\t  \t
  444. \t\t\t\t\t\t  \t</div>
  445. \t\t\t\t\t\t  \t<div class=\"card-footer text-muted\">
  446. \t\t\t\t\t\t    \t<span class=\"value\">{{ currentAgo|raw }}</span> ago
  447. \t\t\t\t\t\t  \t</div>
  448. \t\t\t\t\t  \t{% else %}
  449. \t\t\t\t\t  \t\t<div class=\"text-center\">No data</div>
  450. \t\t\t\t\t  \t{% endif %}
  451. \t\t\t\t\t</div>
  452.         \t\t</div>
  453.         \t\t<div class=\"col-12 col-md-6 col-lg-4 mb-3 mb-lg-0 col-xl-3 animated fadeIn delay-0-2s\">
  454.         \t\t\t<div class=\"card text-center\" id=\"current-hobit\">
  455. \t\t\t\t\t  \t<div class=\"card-header\">
  456. \t\t\t\t\t    \tLast hobit
  457. \t\t\t\t\t  \t</div>
  458. \t\t\t\t\t  \t{% if lastHobit %}
  459. \t\t\t\t\t\t  \t<div class=\"card-body\">
  460. \t\t\t\t\t\t    \t<h5 class=\"card-title\"><span class=\"value\">{{ lastHobit.startDateTime|date(\"d-m-Y H:i:s\") }}</span></h5>
  461. \t\t\t\t\t\t    \t<ul class=\"list-group list-group-flush\">
  462. \t\t\t\t\t\t\t\t    <li class=\"list-group-item latitude\">Latitude : <div class=\"value\">{{ lastHobit.data.latitude }}</div></li>
  463. \t\t\t\t\t\t\t\t    <li class=\"list-group-item longitude\">Longitude : <div class=\"value\">{{ lastHobit.data.longitude }}</div></li>
  464. \t\t\t\t\t\t\t\t    <li class=\"list-group-item end\">End (or now) : <div class=\"value\">{{ lastHobit.endDateTime|date(\"d-m-Y H:i:s\") }}</div></li>
  465. \t\t\t\t\t\t\t  \t</ul>
  466. \t\t\t\t\t\t\t  \t
  467. \t\t\t\t\t\t  \t</div>
  468. \t\t\t\t\t\t  \t<div class=\"card-footer text-muted\">
  469. \t\t\t\t\t\t    \t<span class=\"value\">{{ currentHobitAgo|raw }}</span> ago
  470. \t\t\t\t\t\t  \t</div>
  471. \t\t\t\t\t  \t{% else %}
  472. \t\t\t\t\t  \t\t<div class=\"text-center\">No data</div>
  473. \t\t\t\t\t  \t{% endif %}
  474. \t\t\t\t\t</div>
  475.         \t\t</div>
  476.         \t\t<div class=\"col-12 col-md-6 col-lg-4 mb-3 mb-lg-0 col-xl-3 \">
  477.         \t\t{% if newHobitAgo == false %}
  478.         \t\t\t<div class=\"card text-center d-none animated fadeIn delay-0-2s\" id=\"new-hobit\">
  479.     \t\t\t{% else %}
  480.     \t\t\t\t<div class=\"card text-center animated fadeIn delay-0-2s\" id=\"new-hobit\">
  481. \t\t\t\t{% endif %}
  482. \t\t\t\t\t  \t<div class=\"card-header\">
  483. \t\t\t\t\t    \tScan hobit
  484. \t\t\t\t\t  \t</div>
  485. \t\t\t\t\t  \t<div class=\"card-body\">
  486. \t\t\t\t\t    \t<h5 class=\"card-title\">
  487. \t\t\t\t    \t\t<span class=\"value\">
  488. \t\t\t\t    \t\t\t{% if lastHobit %}
  489. \t\t\t\t\t    \t\t\tSince {{ lastHobit.endDateTime|date(\"d-m-Y H:i:s\") }}
  490. \t\t\t\t    \t\t\t{% endif %}
  491. \t\t\t\t    \t\t</span></h5>
  492. \t\t\t\t\t    \t<div class=\"loader mt-lg-4\">
  493. \t\t\t\t\t    \t\t<div class=\"spinner-grow text-primary\" role=\"status\">
  494. \t\t\t\t\t\t\t\t  <span class=\"visually-hidden\">Loading...</span>
  495. \t\t\t\t\t\t\t\t</div>
  496. \t\t\t\t\t    \t</div>
  497. \t\t\t\t\t  \t</div>
  498. \t\t\t\t\t  \t<div class=\"card-footer text-muted\">
  499. \t\t\t\t\t    \t<span class=\"value\">{{ newHobitAgo|raw }}</span> ago
  500. \t\t\t\t\t  \t</div>
  501. \t\t\t\t\t</div>
  502.         \t\t</div>
  503.     \t\t</div>
  504.             <div class=\"row mt-5\">
  505.             \t<div class=\"col-12\">
  506.             \t\t<h3 class=\"mb-3 animated fadeIn delay-0-2s\">Last positions</h3>
  507.         \t\t</div>
  508.             </div>
  509.             <div class=\"row\">
  510.             \t{% if positionGpsList %}
  511. \t        \t\t{% set i = 1 %}
  512. \t                {% set number = 1 %}
  513. \t        \t\t{% for positionGps in positionGpsList %}
  514. \t                    <div class=\"col-12 col-md-6 col-lg-4 mb-3 mb-lg-5\">
  515. \t                        <div class=\"card animated fadeIn delay-0-{{ i }}s\" style=\"width: 100%;\">
  516. \t                            <div class=\"card-body\">
  517. \t                                <h5 class=\"card-title\"><b>Position <span class=\"value\">{{ number }}</span></b></h5>
  518. \t                                <div class=\"card-text line mb-1\"><b>Date application : </b>{{ positionGps.datePrinted|date(\"d-m-Y H:i:s\") }}</div>
  519. \t                                <div class=\"card-text line mb-1\"><b>Date server : </b>{{ positionGps.dateCreatedByServer|date(\"d-m-Y H:i:s\") }}</div>
  520. \t                                <div class=\"card-text line mb-1\"><b>Latitude : </b>{{ positionGps.latitude }}</div>
  521. \t                                <div class=\"card-text line mb-1\"><b>Longitude : </b>{{ positionGps.longitude }}</div>
  522. \t                                <a href=\"/debug/information/positions/{{ positionGps.datePrinted|date(\"Y-m-d\") }}\" class=\"btn btn-primary mt-3\">All positions</a>
  523. \t                            </div>
  524. \t                        </div>
  525. \t                    </div>
  526. \t                    {% set i = i + 1 %}
  527. \t                    {% set number = number + 1 %}
  528.                     {% endfor %} 
  529.                 {% else %}
  530. \t                <div class=\"text-center animated fadeIn delay-0-4s\" style=\"font-size: 30px;\">No data...</div>
  531.                 {% endif %}
  532.                 
  533.             </div>
  534.         </div>
  535.     </div>
  536. {% endblock %}
  537. {% block javascripts %}
  538.     {{ parent() }}
  539.     <script>
  540.   
  541.     \twindow.onload=function() {
  542. \t\t   var boucle = 1;
  543. \t    \tsetInterval(function(){
  544. \t\t\t\t\$.get( 
  545. \t\t\t\t    '{{ path(\"information_live_refresh_debug\") }}',  
  546. \t\t\t    \t{
  547. \t\t\t    \t}, 
  548. \t\t\t\t    function(data){
  549. \t\t\t\t    \tif(data['data']['dataHere']){
  550. \t\t\t\t\t    \tif(data['data']['currentPostition']['start'] != \$(\"body #current-position .card-title .value\").html()){
  551. \t\t\t\t\t    \t\t\$(\".icon-network\").removeClass(\"active\");
  552. \t\t\t\t\t    \t\t\$(\".icon-network\").addClass(\"active\");
  553. \t\t\t\t\t    \t\t\$(\".link-i-see\").removeClass(\"d-none\");
  554. \t\t\t\t\t    \t\tconst soundEffect = new Audio();
  555. \t\t\t\t\t\t\t\t// onClick of first interaction on page before I need the sounds
  556. \t\t\t\t\t\t\t\tsoundEffect.play();
  557. \t\t\t\t\t\t\t\t// later on when you actually want to play a sound at any point without user interaction
  558. \t\t\t\t\t\t\t\tsoundEffect.src = '/alert.mp3';
  559. \t\t\t\t\t\t\t\tsoundEffect.play();
  560. \t\t\t\t\t    \t}
  561. \t\t\t\t\t    \t//Current position
  562. \t\t\t\t\t        \$(\"body #current-position .card-title .value\").html(data['data']['currentPostition']['start']);
  563. \t\t\t\t\t        \$(\"body #current-position .latitude .value\").html(data['data']['currentPostition']['latitude']);
  564. \t\t\t\t\t        \$(\"body #current-position .longitude .value\").html(data['data']['currentPostition']['longitude']);
  565. \t\t\t\t\t        \$(\"body #current-position .card-footer .value\").html(data['data']['currentAgo']);
  566. \t\t\t\t\t        //Current hobit
  567. \t\t\t\t\t        \$(\"body #current-hobit .card-title .value\").html(data['data']['lastHobit']['start']);
  568. \t\t\t\t\t        \$(\"body #current-hobit .latitude .value\").html(data['data']['lastHobit']['latitude']);
  569. \t\t\t\t\t        \$(\"body #current-hobit .longitude .value\").html(data['data']['lastHobit']['longitude']);
  570. \t\t\t\t\t        \$(\"body #current-hobit .end .value\").html(data['data']['lastHobit']['end']);
  571. \t\t\t\t\t        \$(\"body #current-hobit .card-footer .value\").html(data['data']['currentHobitAgo']);
  572. \t\t\t\t\t        //Current hobit
  573. \t\t\t\t\t        if(data['data']['newHobitAgo'] != false){
  574. \t\t\t\t\t        \t\$(\"body #new-hobit .card-title .value\").html(data['data']['currentPostition']['start']);
  575. \t\t\t\t\t        \t\$(\"body #new-hobit .card-footer .value\").html(data['data']['newHobitAgo']);
  576. \t\t\t\t\t        \t\$(\"body #new-hobit\").removeClass(\"d-none\");
  577. \t\t\t\t\t    \t}
  578. \t\t\t\t\t    \telse{
  579. \t\t\t\t\t    \t\t\$(\"body #new-hobit\").addClass(\"d-none\");
  580. \t\t\t\t\t    \t}
  581. \t\t\t\t    \t}
  582. \t\t\t\t    } 
  583. \t\t\t\t); 
  584. \t\t\t}, 1000);
  585. \t\t\t};
  586. \t\t\$(\"body\").on(\"click\", \".link-i-see\", function(){
  587. \t\t\t\$(this).addClass(\"d-none\");
  588. \t\t\t\$(\".icon-network\").removeClass(\"active\");
  589. \t\t});
  590.     </script>
  591. {% endblock %}""debug/live.html.twig""/var/www/vhosts/webpro-developpement.fr/follow.webpro-developpement.fr/public/templates/debug/live.html.twig");
  592.     }
  593. }