var/cache/dev/twig/7d/7df105f3c3da86a12253dadb90a57e6b.php line 44

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/position.html.twig */
  16. class __TwigTemplate_9551777613bf3259c9808248f091fabe 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/position.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/position.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\">
  65.             <div class=\"row animated fadeIn delay-0-2s\">
  66.                 <div class=\"col-12 mb-3 mb-lg-5\">
  67.                     <div class=\"\">
  68.                     \t<h2>Last position</h2>
  69.                     </div>
  70.                     <hr></hr>
  71.                 </div>
  72.             </div>
  73.         </div>
  74.         <div class=\"container\">
  75.             <div class=\"row\">
  76.                 ";
  77.         // line 18
  78.         if ((($tmp = (isset($context["positionGpsList"]) || array_key_exists("positionGpsList"$context) ? $context["positionGpsList"] : (function () { throw new RuntimeError('Variable "positionGpsList" does not exist.'18$this->source); })())) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  79.             // line 19
  80.             yield "            \t\t";
  81.             $context["i"] = 3;
  82.             // line 20
  83.             yield "                    ";
  84.             $context["number"] = 1;
  85.             // line 21
  86.             yield "            \t\t";
  87.             $context['_parent'] = $context;
  88.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["positionGpsList"]) || array_key_exists("positionGpsList"$context) ? $context["positionGpsList"] : (function () { throw new RuntimeError('Variable "positionGpsList" does not exist.'21$this->source); })()));
  89.             foreach ($context['_seq'] as $context["_key"] => $context["positionGps"]) {
  90.                 // line 22
  91.                 yield "                        <div class=\"col-12 col-lg-4 mb-3 mb-lg-5\">
  92.                             <div class=\"card animated fadeIn delay-0-";
  93.                 // line 23
  94.                 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.'23$this->source); })()), "html"nulltrue);
  95.                 yield "s\" style=\"width: 100%;\">
  96.                                 <div class=\"card-img-top animated fadeIn delay-0-8s\" style='text-align:center;'><iframe
  97.                                         width='100%'
  98.                                         height='300'
  99.                                         frameborder='0' style='border:0'
  100.                                         src='https://www.google.com/maps/embed/v1/place?key=AIzaSyAmbx9RsGi01srCnH_-2TVdH26TpjwvFDs
  101.                                             &q=";
  102.                 // line 29
  103.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["positionGps"], "latitude", [], "any"falsefalsefalse29), "html"nulltrue);
  104.                 yield ",";
  105.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["positionGps"], "longitude", [], "any"falsefalsefalse29), "html"nulltrue);
  106.                 yield "' 
  107.                                         allowfullscreen>
  108.                                       </iframe>
  109.                                 </div>
  110.                                 <div class=\"card-body\">
  111.                                     <h5 class=\"card-title\"><b>Position ";
  112.                 // line 34
  113.                 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.'34$this->source); })()), "html"nulltrue);
  114.                 yield "</b></h5>
  115.                                     <div class=\"card-text line mb-1\"><b>Date application : </b>";
  116.                 // line 35
  117.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["positionGps"], "datePrinted", [], "any"falsefalsefalse35), "d-m-Y"), "html"nulltrue);
  118.                 yield " <b>";
  119.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["positionGps"], "datePrinted", [], "any"falsefalsefalse35), "H:i:s"), "html"nulltrue);
  120.                 yield "</b></div>
  121.                                     <div class=\"card-text line mb-1\"><b>Date server : </b>";
  122.                 // line 36
  123.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["positionGps"], "dateCreatedByServer", [], "any"falsefalsefalse36), "d-m-Y"), "html"nulltrue);
  124.                 yield " <b>";
  125.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["positionGps"], "dateCreatedByServer", [], "any"falsefalsefalse36), "H:i:s"), "html"nulltrue);
  126.                 yield "</b></div>
  127.                                     <div class=\"card-text line mb-1\"><b>Latitude : </b>";
  128.                 // line 37
  129.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["positionGps"], "latitude", [], "any"falsefalsefalse37), "html"nulltrue);
  130.                 yield "</div>
  131.                                     <div class=\"card-text line mb-1\"><b>Longitude : </b>";
  132.                 // line 38
  133.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["positionGps"], "longitude", [], "any"falsefalsefalse38), "html"nulltrue);
  134.                 yield "</div>
  135.                                     <div class=\"card-text line mb-1\"><b>Sync force : </b>
  136.                                         ";
  137.                 // line 40
  138.                 if ((($tmp CoreExtension::getAttribute($this->env$this->source$context["positionGps"], "withFail", [], "any"falsefalsefalse40)) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  139.                     // line 41
  140.                     yield "                                            Yes
  141.                                         ";
  142.                 } else {
  143.                     // line 43
  144.                     yield "                                            No
  145.                                         ";
  146.                 }
  147.                 // line 45
  148.                 yield "                                    </div>
  149.                                     <div class=\"card-text line mb-1\"><b>Dump : </b> ";
  150.                 // line 46
  151.                 yield $this->extensions['Symfony\Bridge\Twig\Extension\DumpExtension']->dump($this->env$context$context["positionGps"]);
  152.                 yield "</div>
  153.                                     <a href=\"/debug/information/positions/";
  154.                 // line 47
  155.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["positionGps"], "datePrinted", [], "any"falsefalsefalse47), "Y-m-d"), "html"nulltrue);
  156.                 yield "\" class=\"btn btn-primary mt-3\">All positions</a>
  157.                                 </div>
  158.                             </div>
  159.                         </div>
  160.                         ";
  161.                 // line 51
  162.                 $context["i"] = ((isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'51$this->source); })()) + 1);
  163.                 // line 52
  164.                 yield "                        ";
  165.                 $context["number"] = ((isset($context["number"]) || array_key_exists("number"$context) ? $context["number"] : (function () { throw new RuntimeError('Variable "number" does not exist.'52$this->source); })()) + 1);
  166.                 // line 53
  167.                 yield "                    ";
  168.             }
  169.             $_parent $context['_parent'];
  170.             unset($context['_seq'], $context['_key'], $context['positionGps'], $context['_parent']);
  171.             $context array_intersect_key($context$_parent) + $_parent;
  172.             yield 
  173.                 ";
  174.         } else {
  175.             // line 56
  176.             yield "                    <div class=\"text-center animated fadeIn delay-0-4s\" style=\"font-size: 30px;\">No data...</div>
  177.                 ";
  178.         }
  179.         // line 58
  180.         yield "            </div>
  181.         </div>
  182.     </div>
  183. ";
  184.         
  185.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  186.         
  187.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  188.         yield from [];
  189.     }
  190.     // line 63
  191.     /**
  192.      * @return iterable<null|scalar|\Stringable>
  193.      */
  194.     public function block_javascripts(array $context, array $blocks = []): iterable
  195.     {
  196.         $macros $this->macros;
  197.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  198.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  199.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  200.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  201.         // line 64
  202.         yield "    ";
  203.         yield from $this->yieldParentBlock("javascripts"$context$blocks);
  204.         yield "
  205.     </script>
  206. ";
  207.         
  208.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  209.         
  210.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  211.         yield from [];
  212.     }
  213.     /**
  214.      * @codeCoverageIgnore
  215.      */
  216.     public function getTemplateName(): string
  217.     {
  218.         return "debug/position.html.twig";
  219.     }
  220.     /**
  221.      * @codeCoverageIgnore
  222.      */
  223.     public function isTraitable(): bool
  224.     {
  225.         return false;
  226.     }
  227.     /**
  228.      * @codeCoverageIgnore
  229.      */
  230.     public function getDebugInfo(): array
  231.     {
  232.         return array (  223 => 64,  210 => 63,  196 => 58,  192 => 56,  182 => 53,  179 => 52,  177 => 51,  170 => 47,  166 => 46,  163 => 45,  159 => 43,  155 => 41,  153 => 40,  148 => 38,  144 => 37,  138 => 36,  132 => 35,  128 => 34,  118 => 29,  109 => 23,  106 => 22,  101 => 21,  98 => 20,  95 => 19,  93 => 18,  77 => 4,  64 => 3,  41 => 1,);
  233.     }
  234.     public function getSourceContext(): Source
  235.     {
  236.         return new Source("{% extends 'base.html.twig' %}
  237. {% block body %}
  238.     <div class=\"page\">
  239.         <div class=\"container\">
  240.             <div class=\"row animated fadeIn delay-0-2s\">
  241.                 <div class=\"col-12 mb-3 mb-lg-5\">
  242.                     <div class=\"\">
  243.                     \t<h2>Last position</h2>
  244.                     </div>
  245.                     <hr></hr>
  246.                 </div>
  247.             </div>
  248.         </div>
  249.         <div class=\"container\">
  250.             <div class=\"row\">
  251.                 {% if positionGpsList %}
  252.             \t\t{% set i = 3 %}
  253.                     {% set number = 1 %}
  254.             \t\t{% for positionGps in positionGpsList %}
  255.                         <div class=\"col-12 col-lg-4 mb-3 mb-lg-5\">
  256.                             <div class=\"card animated fadeIn delay-0-{{ i }}s\" style=\"width: 100%;\">
  257.                                 <div class=\"card-img-top animated fadeIn delay-0-8s\" style='text-align:center;'><iframe
  258.                                         width='100%'
  259.                                         height='300'
  260.                                         frameborder='0' style='border:0'
  261.                                         src='https://www.google.com/maps/embed/v1/place?key=AIzaSyAmbx9RsGi01srCnH_-2TVdH26TpjwvFDs
  262.                                             &q={{ positionGps.latitude }},{{ positionGps.longitude }}' 
  263.                                         allowfullscreen>
  264.                                       </iframe>
  265.                                 </div>
  266.                                 <div class=\"card-body\">
  267.                                     <h5 class=\"card-title\"><b>Position {{ number }}</b></h5>
  268.                                     <div class=\"card-text line mb-1\"><b>Date application : </b>{{ positionGps.datePrinted|date(\"d-m-Y\") }} <b>{{ positionGps.datePrinted|date(\"H:i:s\") }}</b></div>
  269.                                     <div class=\"card-text line mb-1\"><b>Date server : </b>{{ positionGps.dateCreatedByServer|date(\"d-m-Y\") }} <b>{{ positionGps.dateCreatedByServer|date(\"H:i:s\") }}</b></div>
  270.                                     <div class=\"card-text line mb-1\"><b>Latitude : </b>{{ positionGps.latitude }}</div>
  271.                                     <div class=\"card-text line mb-1\"><b>Longitude : </b>{{ positionGps.longitude }}</div>
  272.                                     <div class=\"card-text line mb-1\"><b>Sync force : </b>
  273.                                         {% if positionGps.withFail %}
  274.                                             Yes
  275.                                         {% else %}
  276.                                             No
  277.                                         {% endif %}
  278.                                     </div>
  279.                                     <div class=\"card-text line mb-1\"><b>Dump : </b> {{ dump(positionGps) }}</div>
  280.                                     <a href=\"/debug/information/positions/{{ positionGps.datePrinted|date(\"Y-m-d\") }}\" class=\"btn btn-primary mt-3\">All positions</a>
  281.                                 </div>
  282.                             </div>
  283.                         </div>
  284.                         {% set i = i + 1 %}
  285.                         {% set number = number + 1 %}
  286.                     {% endfor %} 
  287.                 {% else %}
  288.                     <div class=\"text-center animated fadeIn delay-0-4s\" style=\"font-size: 30px;\">No data...</div>
  289.                 {% endif %}
  290.             </div>
  291.         </div>
  292.     </div>
  293. {% endblock %}
  294. {% block javascripts %}
  295.     {{ parent() }}
  296.     </script>
  297. {% endblock %}""debug/position.html.twig""/var/www/vhosts/webpro-developpement.fr/follow.webpro-developpement.fr/public/templates/debug/position.html.twig");
  298.     }
  299. }