<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* debug/position.html.twig */
class __TwigTemplate_9551777613bf3259c9808248f091fabe extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$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", "debug/position.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "debug/position.html.twig"));
$this->parent = $this->load("base.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 4
yield " <div class=\"page\">
<div class=\"container\">
<div class=\"row animated fadeIn delay-0-2s\">
<div class=\"col-12 mb-3 mb-lg-5\">
<div class=\"\">
\t<h2>Last position</h2>
</div>
<hr></hr>
</div>
</div>
</div>
<div class=\"container\">
<div class=\"row\">
";
// line 18
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)) {
// line 19
yield " \t\t";
$context["i"] = 3;
// line 20
yield " ";
$context["number"] = 1;
// line 21
yield " \t\t";
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["positionGps"]) {
// line 22
yield " <div class=\"col-12 col-lg-4 mb-3 mb-lg-5\">
<div class=\"card animated fadeIn delay-0-";
// line 23
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", null, true);
yield "s\" style=\"width: 100%;\">
<div class=\"card-img-top animated fadeIn delay-0-8s\" style='text-align:center;'><iframe
width='100%'
height='300'
frameborder='0' style='border:0'
src='https://www.google.com/maps/embed/v1/place?key=AIzaSyAmbx9RsGi01srCnH_-2TVdH26TpjwvFDs
&q=";
// line 29
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["positionGps"], "latitude", [], "any", false, false, false, 29), "html", null, true);
yield ",";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["positionGps"], "longitude", [], "any", false, false, false, 29), "html", null, true);
yield "'
allowfullscreen>
</iframe>
</div>
<div class=\"card-body\">
<h5 class=\"card-title\"><b>Position ";
// line 34
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", null, true);
yield "</b></h5>
<div class=\"card-text line mb-1\"><b>Date application : </b>";
// line 35
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["positionGps"], "datePrinted", [], "any", false, false, false, 35), "d-m-Y"), "html", null, true);
yield " <b>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["positionGps"], "datePrinted", [], "any", false, false, false, 35), "H:i:s"), "html", null, true);
yield "</b></div>
<div class=\"card-text line mb-1\"><b>Date server : </b>";
// line 36
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["positionGps"], "dateCreatedByServer", [], "any", false, false, false, 36), "d-m-Y"), "html", null, true);
yield " <b>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["positionGps"], "dateCreatedByServer", [], "any", false, false, false, 36), "H:i:s"), "html", null, true);
yield "</b></div>
<div class=\"card-text line mb-1\"><b>Latitude : </b>";
// line 37
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["positionGps"], "latitude", [], "any", false, false, false, 37), "html", null, true);
yield "</div>
<div class=\"card-text line mb-1\"><b>Longitude : </b>";
// line 38
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["positionGps"], "longitude", [], "any", false, false, false, 38), "html", null, true);
yield "</div>
<div class=\"card-text line mb-1\"><b>Sync force : </b>
";
// line 40
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["positionGps"], "withFail", [], "any", false, false, false, 40)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 41
yield " Yes
";
} else {
// line 43
yield " No
";
}
// line 45
yield " </div>
<div class=\"card-text line mb-1\"><b>Dump : </b> ";
// line 46
yield $this->extensions['Symfony\Bridge\Twig\Extension\DumpExtension']->dump($this->env, $context, $context["positionGps"]);
yield "</div>
<a href=\"/debug/information/positions/";
// line 47
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["positionGps"], "datePrinted", [], "any", false, false, false, 47), "Y-m-d"), "html", null, true);
yield "\" class=\"btn btn-primary mt-3\">All positions</a>
</div>
</div>
</div>
";
// line 51
$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);
// line 52
yield " ";
$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);
// line 53
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['positionGps'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
yield "
";
} else {
// line 56
yield " <div class=\"text-center animated fadeIn delay-0-4s\" style=\"font-size: 30px;\">No data...</div>
";
}
// line 58
yield " </div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 63
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascripts(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 64
yield " ";
yield from $this->yieldParentBlock("javascripts", $context, $blocks);
yield "
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "debug/position.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'base.html.twig' %}
{% block body %}
<div class=\"page\">
<div class=\"container\">
<div class=\"row animated fadeIn delay-0-2s\">
<div class=\"col-12 mb-3 mb-lg-5\">
<div class=\"\">
\t<h2>Last position</h2>
</div>
<hr></hr>
</div>
</div>
</div>
<div class=\"container\">
<div class=\"row\">
{% if positionGpsList %}
\t\t{% set i = 3 %}
{% set number = 1 %}
\t\t{% for positionGps in positionGpsList %}
<div class=\"col-12 col-lg-4 mb-3 mb-lg-5\">
<div class=\"card animated fadeIn delay-0-{{ i }}s\" style=\"width: 100%;\">
<div class=\"card-img-top animated fadeIn delay-0-8s\" style='text-align:center;'><iframe
width='100%'
height='300'
frameborder='0' style='border:0'
src='https://www.google.com/maps/embed/v1/place?key=AIzaSyAmbx9RsGi01srCnH_-2TVdH26TpjwvFDs
&q={{ positionGps.latitude }},{{ positionGps.longitude }}'
allowfullscreen>
</iframe>
</div>
<div class=\"card-body\">
<h5 class=\"card-title\"><b>Position {{ number }}</b></h5>
<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>
<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>
<div class=\"card-text line mb-1\"><b>Latitude : </b>{{ positionGps.latitude }}</div>
<div class=\"card-text line mb-1\"><b>Longitude : </b>{{ positionGps.longitude }}</div>
<div class=\"card-text line mb-1\"><b>Sync force : </b>
{% if positionGps.withFail %}
Yes
{% else %}
No
{% endif %}
</div>
<div class=\"card-text line mb-1\"><b>Dump : </b> {{ dump(positionGps) }}</div>
<a href=\"/debug/information/positions/{{ positionGps.datePrinted|date(\"Y-m-d\") }}\" class=\"btn btn-primary mt-3\">All positions</a>
</div>
</div>
</div>
{% set i = i + 1 %}
{% set number = number + 1 %}
{% endfor %}
{% else %}
<div class=\"text-center animated fadeIn delay-0-4s\" style=\"font-size: 30px;\">No data...</div>
{% endif %}
</div>
</div>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
</script>
{% endblock %}", "debug/position.html.twig", "/var/www/vhosts/webpro-developpement.fr/follow.webpro-developpement.fr/public/templates/debug/position.html.twig");
}
}