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