<?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;
/* computing/show.html.twig */
class __TwigTemplate_1346f75ddf2a3dbaa3d14ebe1b62f6fb2079cd471868a2e04647658aeb658411 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "computing/show.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "computing/show.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "computing/show.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo "Calculs";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 6
echo "<div class=\"row\">
<div class=\"col-12\">
<div class=\"card\">
<div class=\"card-body\">
<h2>Detail du calcul</h2>
<table class=\"table\">
<tbody>
<tr>
<th>Titre</th>
<td>";
// line 16
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["computing"]) || array_key_exists("computing", $context) ? $context["computing"] : (function () { throw new RuntimeError('Variable "computing" does not exist.', 16, $this->source); })()), "Title", [], "any", false, false, false, 16), "html", null, true);
echo "</td>
</tr>
<tr>
<th>Addresse d'origine</th>
<td>";
// line 20
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["computing"]) || array_key_exists("computing", $context) ? $context["computing"] : (function () { throw new RuntimeError('Variable "computing" does not exist.', 20, $this->source); })()), "Addresse", [], "any", false, false, false, 20), "html", null, true);
echo "</td>
</tr>
<tr>
<th>Lon</th>
<td>";
// line 24
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["computing"]) || array_key_exists("computing", $context) ? $context["computing"] : (function () { throw new RuntimeError('Variable "computing" does not exist.', 24, $this->source); })()), "lon", [], "any", false, false, false, 24), "html", null, true);
echo "</td>
</tr>
<tr>
<th>Lat</th>
<td>";
// line 28
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["computing"]) || array_key_exists("computing", $context) ? $context["computing"] : (function () { throw new RuntimeError('Variable "computing" does not exist.', 28, $this->source); })()), "lat", [], "any", false, false, false, 28), "html", null, true);
echo "</td>
</tr>
<tr>
<th>Date choisie</th>
<td>";
// line 32
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["computing"]) || array_key_exists("computing", $context) ? $context["computing"] : (function () { throw new RuntimeError('Variable "computing" does not exist.', 32, $this->source); })()), "departureDateTime", [], "any", false, false, false, 32))) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["computing"]) || array_key_exists("computing", $context) ? $context["computing"] : (function () { throw new RuntimeError('Variable "computing" does not exist.', 32, $this->source); })()), "departureDateTime", [], "any", false, false, false, 32), "format", [0 => "d M à H:i"], "method", false, false, false, 32), "html", null, true);
}
echo "</td>
</tr>
<tr>
<th>Status</th>
<td>";
// line 36
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["computing"]) || array_key_exists("computing", $context) ? $context["computing"] : (function () { throw new RuntimeError('Variable "computing" does not exist.', 36, $this->source); })()), "getStatusTextInfo", [], "any", false, false, false, 36), "html", null, true);
echo "</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class=\"card\">
<div class=\"card-body\">
<br/>
<h2>Général</h2>
<br/>
<div class=\"col-lg-6\">
<div class=\"card\">
<div class=\"card-body\">
<h4 class=\"card-title mb-4\">Comparatif des temps</h4>
<div id=\"column_chart\" class=\"apex-charts\" dir=\"ltr\"></div>
</div>
</div>
<!--end card-->
</div>
<div class=\"col-lg-6\">
<div class=\"card\">
<div class=\"card-body\">
<h4 class=\"card-title mb-4\">Fichiers</h4>
<a href=\"";
// line 66
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_computing_export_excell", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["computing"]) || array_key_exists("computing", $context) ? $context["computing"] : (function () { throw new RuntimeError('Variable "computing" does not exist.', 66, $this->source); })()), "id", [], "any", false, false, false, 66)]), "html", null, true);
echo "\" class=\"btn btn-primary\">Export Excell</a>
</div>
</div>
<!--end card-->
</div>
<script>
\$( document ).ready(function() {
var options = {
series: [{
name: 'Marche',
data: [";
// line 79
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["moyennes"]) || array_key_exists("moyennes", $context) ? $context["moyennes"] : (function () { throw new RuntimeError('Variable "moyennes" does not exist.', 79, $this->source); })()), "aller", [], "any", false, false, false, 79), "walking", [], "any", false, false, false, 79), "html", null, true);
echo "]
},
{
name: 'Vélo',
data: [";
// line 83
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["moyennes"]) || array_key_exists("moyennes", $context) ? $context["moyennes"] : (function () { throw new RuntimeError('Variable "moyennes" does not exist.', 83, $this->source); })()), "aller", [], "any", false, false, false, 83), "bicycling", [], "any", false, false, false, 83), "html", null, true);
echo " ]
}, {
name: 'Transport',
data: [";
// line 86
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["moyennes"]) || array_key_exists("moyennes", $context) ? $context["moyennes"] : (function () { throw new RuntimeError('Variable "moyennes" does not exist.', 86, $this->source); })()), "aller", [], "any", false, false, false, 86), "transit", [], "any", false, false, false, 86), "html", null, true);
echo "]
}, {
name: 'Voiture',
data: [";
// line 89
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["moyennes"]) || array_key_exists("moyennes", $context) ? $context["moyennes"] : (function () { throw new RuntimeError('Variable "moyennes" does not exist.', 89, $this->source); })()), "aller", [], "any", false, false, false, 89), "driving", [], "any", false, false, false, 89), "html", null, true);
echo "]
},
],
chart: {
type: 'bar',
height: 350
},
plotOptions: {
bar: {
horizontal: false,
columnWidth: '15%',
endingShape: 'rounded'
},
},
dataLabels: {
enabled: false
},
stroke: {
show: true,
width: 2,
colors: ['transparent']
},
xaxis: {
categories: ['Aller'],
},
yaxis: {
title: {
text: 'Temps en min'
}
},
fill: {
opacity: 1
},
tooltip: {
y: {
formatter: function (val) {
return val + \" min\"
}
}
}
};
var chart = new ApexCharts(document.querySelector(\"#column_chart\"), options);
chart.render();
});
</script>
</div>
</div>
<div class=\"card\">
<div class=\"card-body\">
<h2>Détail par adresses</h2>
<br/>
<table id=\"datatable-buttons\"
class=\"table table-striped table-bordered dt-responsive nowrap\"
style=\"border-collapse: collapse; border-spacing: 0; width: 100%; font-size:11px\">
<thead>
<tr>
<th>Adresse</th>
<th colspan=\"2\">Aller Marche</th>
<th colspan=\"2\">Aller Vélo</th>
<th colspan=\"2\">Aller Transport</th>
<th colspan=\"2\">Aller Voiture</th>
";
// line 156
echo " </tr>
</thead>
<tbody>
";
// line 160
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["timings"]) || array_key_exists("timings", $context) ? $context["timings"] : (function () { throw new RuntimeError('Variable "timings" does not exist.', 160, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["timing"]) {
// line 161
echo "
<tr>
<th>";
// line 163
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["timing"], "address_name", [], "any", false, false, false, 163), "html", null, true);
echo "</th>
<th>";
// line 164
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, $context["timing"], "aller", [], "any", false, false, false, 164), "timing", [], "any", false, false, false, 164), "walking", [], "any", false, false, false, 164), "html", null, true);
echo "</th>
<th>";
// line 165
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, $context["timing"], "aller", [], "any", false, false, false, 165), "distance", [], "any", false, false, false, 165), "walking", [], "any", false, false, false, 165), "html", null, true);
echo " </th>
<th>";
// line 167
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, $context["timing"], "aller", [], "any", false, false, false, 167), "timing", [], "any", false, false, false, 167), "bicycling", [], "any", false, false, false, 167), "html", null, true);
echo "</th>
<th>";
// line 168
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, $context["timing"], "aller", [], "any", false, false, false, 168), "distance", [], "any", false, false, false, 168), "bicycling", [], "any", false, false, false, 168), "html", null, true);
echo "</th>
<th>";
// line 170
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, $context["timing"], "aller", [], "any", false, false, false, 170), "timing", [], "any", false, false, false, 170), "transit", [], "any", false, false, false, 170), "html", null, true);
echo "</th>
<th>";
// line 171
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, $context["timing"], "aller", [], "any", false, false, false, 171), "distance", [], "any", false, false, false, 171), "transit", [], "any", false, false, false, 171), "html", null, true);
echo "</th>
<th>";
// line 173
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, $context["timing"], "aller", [], "any", false, false, false, 173), "timing", [], "any", false, false, false, 173), "driving", [], "any", false, false, false, 173), "html", null, true);
echo "</th>
<th>";
// line 174
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, $context["timing"], "aller", [], "any", false, false, false, 174), "distance", [], "any", false, false, false, 174), "driving", [], "any", false, false, false, 174), "html", null, true);
echo "</th>
";
// line 188
echo " </tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['timing'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 191
echo "
</tbody>
</table>
<br/>
<a href=\"";
// line 196
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_computing_index");
echo "\" class=\"btn btn-primary\">Retour à la liste</a>
</div>
</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "computing/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 340 => 196, 333 => 191, 325 => 188, 320 => 174, 316 => 173, 311 => 171, 307 => 170, 302 => 168, 298 => 167, 293 => 165, 289 => 164, 285 => 163, 281 => 161, 277 => 160, 271 => 156, 205 => 89, 199 => 86, 193 => 83, 186 => 79, 170 => 66, 137 => 36, 128 => 32, 121 => 28, 114 => 24, 107 => 20, 100 => 16, 88 => 6, 78 => 5, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}Calculs{% endblock %}
{% block body %}
<div class=\"row\">
<div class=\"col-12\">
<div class=\"card\">
<div class=\"card-body\">
<h2>Detail du calcul</h2>
<table class=\"table\">
<tbody>
<tr>
<th>Titre</th>
<td>{{ computing.Title }}</td>
</tr>
<tr>
<th>Addresse d'origine</th>
<td>{{ computing.Addresse }}</td>
</tr>
<tr>
<th>Lon</th>
<td>{{ computing.lon }}</td>
</tr>
<tr>
<th>Lat</th>
<td>{{ computing.lat }}</td>
</tr>
<tr>
<th>Date choisie</th>
<td>{% if computing.departureDateTime is not null %}{{ computing.departureDateTime.format('d M à H:i') }}{% endif %}</td>
</tr>
<tr>
<th>Status</th>
<td>{{ computing.getStatusTextInfo }}</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class=\"card\">
<div class=\"card-body\">
<br/>
<h2>Général</h2>
<br/>
<div class=\"col-lg-6\">
<div class=\"card\">
<div class=\"card-body\">
<h4 class=\"card-title mb-4\">Comparatif des temps</h4>
<div id=\"column_chart\" class=\"apex-charts\" dir=\"ltr\"></div>
</div>
</div>
<!--end card-->
</div>
<div class=\"col-lg-6\">
<div class=\"card\">
<div class=\"card-body\">
<h4 class=\"card-title mb-4\">Fichiers</h4>
<a href=\"{{ path('app_computing_export_excell' , {'id': computing.id}) }}\" class=\"btn btn-primary\">Export Excell</a>
</div>
</div>
<!--end card-->
</div>
<script>
\$( document ).ready(function() {
var options = {
series: [{
name: 'Marche',
data: [{{ moyennes.aller.walking }}]
},
{
name: 'Vélo',
data: [{{ moyennes.aller.bicycling }} ]
}, {
name: 'Transport',
data: [{{ moyennes.aller.transit }}]
}, {
name: 'Voiture',
data: [{{ moyennes.aller.driving }}]
},
],
chart: {
type: 'bar',
height: 350
},
plotOptions: {
bar: {
horizontal: false,
columnWidth: '15%',
endingShape: 'rounded'
},
},
dataLabels: {
enabled: false
},
stroke: {
show: true,
width: 2,
colors: ['transparent']
},
xaxis: {
categories: ['Aller'],
},
yaxis: {
title: {
text: 'Temps en min'
}
},
fill: {
opacity: 1
},
tooltip: {
y: {
formatter: function (val) {
return val + \" min\"
}
}
}
};
var chart = new ApexCharts(document.querySelector(\"#column_chart\"), options);
chart.render();
});
</script>
</div>
</div>
<div class=\"card\">
<div class=\"card-body\">
<h2>Détail par adresses</h2>
<br/>
<table id=\"datatable-buttons\"
class=\"table table-striped table-bordered dt-responsive nowrap\"
style=\"border-collapse: collapse; border-spacing: 0; width: 100%; font-size:11px\">
<thead>
<tr>
<th>Adresse</th>
<th colspan=\"2\">Aller Marche</th>
<th colspan=\"2\">Aller Vélo</th>
<th colspan=\"2\">Aller Transport</th>
<th colspan=\"2\">Aller Voiture</th>
{#<th colspan=\"2\">Retour Marche</th>
<th colspan=\"2\">Retour Vélo</th>
<th colspan=\"2\">Retour Transport</th>
<th colspan=\"2\">Retour Voiture</th>#}
</tr>
</thead>
<tbody>
{% for timing in timings %}
<tr>
<th>{{ timing.address_name }}</th>
<th>{{ timing.aller.timing.walking }}</th>
<th>{{ timing.aller.distance.walking }} </th>
<th>{{ timing.aller.timing.bicycling }}</th>
<th>{{ timing.aller.distance.bicycling }}</th>
<th>{{ timing.aller.timing.transit }}</th>
<th>{{ timing.aller.distance.transit }}</th>
<th>{{ timing.aller.timing.driving }}</th>
<th>{{ timing.aller.distance.driving }}</th>
{#
<th>{{ timing.retour.timing.walking }}</th>
<th>{{ timing.retour.distance.walking }} </th>
<th>{{ timing.retour.timing.bicycling }}</th>
<th>{{ timing.retour.distance.bicycling }}</th>
<th>{{ timing.retour.timing.transit }}</th>
<th>{{ timing.retour.distance.transit }}</th>
<th>{{ timing.retour.timing.driving }}</th>
<th>{{ timing.retour.distance.driving }}</th>#}
</tr>
{% endfor %}
</tbody>
</table>
<br/>
<a href=\"{{ path('app_computing_index') }}\" class=\"btn btn-primary\">Retour à la liste</a>
</div>
</div>
</div>
</div>
{% endblock %}
", "computing/show.html.twig", "/home/preproduction/ekotools_new/sf-ekotools-demenagement/templates/computing/show.html.twig");
}
}