var/cache/dev/twig/35/35813544ef15bbe0776f86344da46882bac6be35426044794a6efd22b5ae12d3.php line 50

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* pages/searchresult.html.twig */
  14. class __TwigTemplate_a0dd7918b4b5ff1a5b910362a011b2a35655ad960c70d423153b83966f79a927 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'stylesheets' => [$this'block_stylesheets'],
  24.             'body' => [$this'block_body'],
  25.             'javascripts_end' => [$this'block_javascripts_end'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""pages/searchresult.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""pages/searchresult.html.twig"));
  40.         $this->parent $this->loadTemplate("base.html.twig""pages/searchresult.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 3
  48.     public function block_stylesheets($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  55.         // line 4
  56.         echo "    ";
  57.         $this->displayParentBlock("stylesheets"$context$blocks);
  58.         echo "
  59.     <link rel=\"stylesheet\" type=\"text/css\" href=\"";
  60.         // line 6
  61.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("vendors/DataTables/DataTables-1.10.18/css/dataTables.bootstrap4.css"), "html"nulltrue);
  62.         echo "\"/>
  63.     <style>
  64.         .table td {
  65.             padding: .1rem;
  66.         }
  67.         .dtr-title{
  68.             display: none !important;
  69.             min-width: 0px !important;
  70.             font-weight: bold;
  71.         }
  72.         .child{
  73.             border-top: none !important;
  74.         }
  75.        table.dataTable thead .sorting:before, table.dataTable thead .sorting_asc:before, table.dataTable thead .sorting_desc:before, table.dataTable thead .sorting_asc_disabled:before, table.dataTable thead .sorting_desc_disabled:before {
  76.             right: 1em;
  77.             content: none;
  78.         }
  79.         table.dataTable thead .sorting:after, table.dataTable thead .sorting_asc:after, table.dataTable thead .sorting_desc:after, table.dataTable thead .sorting_asc_disabled:after, table.dataTable thead .sorting_desc_disabled:after {
  80.             right: 0.5em;
  81.             content: none;
  82.         }
  83.         .child-container{
  84.             padding: 0 !important;
  85.         }
  86.         table.row-detail {
  87.             border-collapse: collapse;
  88.             width: 100%;
  89.         }
  90.         table.row-detail td {
  91.             padding: 5px 10px !important;
  92.             border-right: 1px solid #ddd;
  93.         }
  94.         table.dataTable.dtr-inline.collapsed>tbody>tr>td:first-child, table.dataTable.dtr-inline.collapsed>tbody>tr>th:first-child {
  95.             position: relative;
  96.             padding-left: 30px;
  97.             cursor: pointer;
  98.         }
  99.         table.dataTable.dtr-inline.collapsed>tbody>tr>td:first-child, table.dataTable.dtr-inline.collapsed>tbody>tr>th:first-child {
  100.             position: relative;
  101.             padding-left: 30px;
  102.             cursor: pointer;
  103.         }
  104.         #dtHorses_filter input {
  105.             padding: .5rem .75rem;
  106.             font-size: 1rem;
  107.             line-height: 1.25;
  108.             color: #495057;
  109.             background-color: #fff;
  110.             background-image: none;
  111.             background-clip: padding-box;
  112.             border: 1px solid rgba(0, 0, 0, 0.15);
  113.             border-radius: .25rem;
  114.             transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s
  115.         }
  116.     </style>
  117. ";
  118.         
  119.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  120.         
  121.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  122.     }
  123.     // line 71
  124.     public function block_body($context, array $blocks = [])
  125.     {
  126.         $macros $this->macros;
  127.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  128.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  129.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  130.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  131.         // line 72
  132.         echo "
  133.     <section class=\"fashion-area section-gap pt-10\" id=\"fashion\" style=\"padding-top: 40px;\">
  134.         <div class=\"container\">
  135.             <div class=\"row\">
  136.                 <div class=\"col-md-12 col-md-offset-0\">
  137.                     <div class=\"x_panel\">
  138.                         <div class=\"x_title\">
  139.                             ";
  140.         // line 79
  141.         if ((=== twig_compare((isset($context["horse"]) || array_key_exists("horse"$context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.'79$this->source); })()), "all"))) {
  142.             // line 80
  143.             echo "                                <h3>Hestefakta</h3>
  144.                                 <br>
  145.                             ";
  146.         }
  147.         // line 83
  148.         echo "
  149.                             <div class=\"clearfix\"></div>
  150.                         </div>
  151.                         <div class=\"x_content\">
  152.                             ";
  153.         // line 89
  154.         if ((=== twig_compare((isset($context["horse"]) || array_key_exists("horse"$context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.'89$this->source); })()), "all"))) {
  155.             // line 90
  156.             echo "                            <div class=\"row\">
  157.                                 <div class=\"col-12 col-lg-6 col-md-6 col-sm-12\">
  158.                                     <form method=\"post\" action=\"";
  159.             // line 92
  160.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_search", ["kind" => "horse"]);
  161.             echo "\">
  162.                                         <div class=\"col-lg-12 col-sm-auto input-group mb-3 pl-0\" >
  163.                                             <input type=\"text\" class=\"form-control\" aria-label=\"Search for horse\" aria-describedby=\"basic-addon2\" value=\"";
  164.             // line 94
  165.             echo twig_escape_filter($this->env, (isset($context["searchfor"]) || array_key_exists("searchfor"$context) ? $context["searchfor"] : (function () { throw new RuntimeError('Variable "searchfor" does not exist.'94$this->source); })()), "html"nulltrue);
  166.             echo "\" placeholder=\"Søk etter hest/kusk/trener\"  name=\"horse_name\" style=\"padding: .3rem;font-size: .9rem;\">
  167.                                              <div class=\"input-group-append\">
  168.                                                 <button class=\"btn btn-outline-danger\" type=\"submit\"><i class=\"fa fa-search\"></i></button>
  169.                                             </div>
  170.                                         </div>
  171.                                     </form>
  172.                                 </div>
  173.                             </div>
  174.                             ";
  175.             // line 104
  176.             if (twig_get_attribute($this->env$this->source, ($context["result"] ?? null), "horses", [], "array"truetruefalse104)) {
  177.                 // line 105
  178.                 echo "                            ";
  179.                 if ((=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["result"]) || array_key_exists("result"$context) ? $context["result"] : (function () { throw new RuntimeError('Variable "result" does not exist.'105$this->source); })()), "horses", [], "array"falsefalsefalse105)), 0))) {
  180.                     // line 106
  181.                     echo "                                <b>Hest</b><br>
  182.                                 ";
  183.                     // line 107
  184.                     $context['_parent'] = $context;
  185.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["result"]) || array_key_exists("result"$context) ? $context["result"] : (function () { throw new RuntimeError('Variable "result" does not exist.'107$this->source); })()), "horses", [], "array"falsefalsefalse107));
  186.                     foreach ($context['_seq'] as $context["_key"] => $context["r"]) {
  187.                         // line 108
  188.                         echo "                                    <a href=\"";
  189.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_horses", ["horse" => twig_get_attribute($this->env$this->source$context["r"], "id", [], "any"falsefalsefalse108)]), "html"nulltrue);
  190.                         echo "\">";
  191.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["r"], "hor_name", [], "any"falsefalsefalse108), "html"nulltrue);
  192.                         echo "</a><br>
  193.                                 ";
  194.                     }
  195.                     $_parent $context['_parent'];
  196.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['r'], $context['_parent'], $context['loop']);
  197.                     $context array_intersect_key($context$_parent) + $_parent;
  198.                     // line 110
  199.                     echo "                                <br>
  200.                             ";
  201.                 }
  202.                 // line 112
  203.                 echo "
  204.                             ";
  205.                 // line 113
  206.                 if ((=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["result"]) || array_key_exists("result"$context) ? $context["result"] : (function () { throw new RuntimeError('Variable "result" does not exist.'113$this->source); })()), "trainers", [], "array"falsefalsefalse113)), 0))) {
  207.                     // line 114
  208.                     echo "                                <b>Trener</b><br>
  209.                                 ";
  210.                     // line 115
  211.                     $context['_parent'] = $context;
  212.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["result"]) || array_key_exists("result"$context) ? $context["result"] : (function () { throw new RuntimeError('Variable "result" does not exist.'115$this->source); })()), "trainers", [], "array"falsefalsefalse115));
  213.                     foreach ($context['_seq'] as $context["_key"] => $context["r"]) {
  214.                         // line 116
  215.                         echo "                                    <a href=\"";
  216.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_trainer", ["trainer" => twig_get_attribute($this->env$this->source$context["r"], "id", [], "any"falsefalsefalse116)]), "html"nulltrue);
  217.                         echo "\">";
  218.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["r"], "tra_lastname", [], "any"falsefalsefalse116), "html"nulltrue);
  219.                         echo ", ";
  220.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["r"], "tra_firstname", [], "any"falsefalsefalse116), "html"nulltrue);
  221.                         echo "</a><br>
  222.                                 ";
  223.                     }
  224.                     $_parent $context['_parent'];
  225.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['r'], $context['_parent'], $context['loop']);
  226.                     $context array_intersect_key($context$_parent) + $_parent;
  227.                     // line 118
  228.                     echo "                                <br>
  229.                             ";
  230.                 }
  231.                 // line 120
  232.                 echo "
  233.                             ";
  234.                 // line 121
  235.                 if ((=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["result"]) || array_key_exists("result"$context) ? $context["result"] : (function () { throw new RuntimeError('Variable "result" does not exist.'121$this->source); })()), "drivers", [], "array"falsefalsefalse121)), 0))) {
  236.                     // line 122
  237.                     echo "                                <b>Kusk</b><br>
  238.                                 ";
  239.                     // line 123
  240.                     $context['_parent'] = $context;
  241.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["result"]) || array_key_exists("result"$context) ? $context["result"] : (function () { throw new RuntimeError('Variable "result" does not exist.'123$this->source); })()), "drivers", [], "array"falsefalsefalse123));
  242.                     foreach ($context['_seq'] as $context["_key"] => $context["r"]) {
  243.                         // line 124
  244.                         echo "                                    <a href=\"";
  245.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_driver", ["driver" => twig_get_attribute($this->env$this->source$context["r"], "id", [], "any"falsefalsefalse124)]), "html"nulltrue);
  246.                         echo "\">";
  247.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["r"], "dri_lastname", [], "any"falsefalsefalse124), "html"nulltrue);
  248.                         echo ", ";
  249.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["r"], "dri_firstname", [], "any"falsefalsefalse124), "html"nulltrue);
  250.                         echo "</a><br>
  251.                                 ";
  252.                     }
  253.                     $_parent $context['_parent'];
  254.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['r'], $context['_parent'], $context['loop']);
  255.                     $context array_intersect_key($context$_parent) + $_parent;
  256.                     // line 126
  257.                     echo "                                <br>
  258.                             ";
  259.                 }
  260.                 // line 128
  261.                 echo "                            ";
  262.             }
  263.             // line 129
  264.             echo "
  265.                         </div>
  266.                         ";
  267.         } else {
  268.             // line 132
  269.             echo "                            ";
  270.             $context['_parent'] = $context;
  271.             $context['_seq'] = twig_ensure_traversable((isset($context["horse"]) || array_key_exists("horse"$context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.'132$this->source); })()));
  272.             foreach ($context['_seq'] as $context["_key"] => $context["a"]) {
  273.                 // line 133
  274.                 echo "                        <div class=\"x_title\">
  275.                             <div style=\"width: 100%;\">
  276.                                 <div style=\"width: 78%;display: inline-block;margin: 0px;padding: 0px;\"><h3>";
  277.                 // line 135
  278.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["a"], "hor_name", [], "any"falsefalsefalse135), "html"nulltrue);
  279.                 echo "</h3></div>
  280.                                 <div style=\"text-align: right;width: 20%; display: inline-block;margin: 0px;padding: 0px;\"><h4><span style=\"text-align: right\"><a href=\"";
  281.                 // line 136
  282.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_horses", ["horse" => "all"]);
  283.                 echo "\"><i class=\"fas fa-search\"></i></a></span></h4></div>
  284.                             </div>
  285.                             <div class=\"clearfix\"></div>
  286.                             </div>
  287.                             <div class=\"x_content\">
  288.                                 <div class=\"col-lg-12\">
  289.                                     <div class=\"row\">
  290.                                         <div class=\"col-12 mt-3 pl-0\">
  291.                                             ";
  292.                 // line 144
  293.                 if ((isset($context["father"]) || array_key_exists("father"$context) ? $context["father"] : (function () { throw new RuntimeError('Variable "father" does not exist.'144$this->source); })())) {
  294.                     // line 145
  295.                     echo "                                                <strong>e</strong> <a href=\"";
  296.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_horses", ["horse" => twig_get_attribute($this->env$this->source, (isset($context["father"]) || array_key_exists("father"$context) ? $context["father"] : (function () { throw new RuntimeError('Variable "father" does not exist.'145$this->source); })()), "getId", [], "method"falsefalsefalse145)]), "html"nulltrue);
  297.                     echo "\">";
  298.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["father"]) || array_key_exists("father"$context) ? $context["father"] : (function () { throw new RuntimeError('Variable "father" does not exist.'145$this->source); })()), "getHorName", [], "method"falsefalsefalse145), "html"nulltrue);
  299.                     echo "</a>
  300.                                             ";
  301.                 }
  302.                 // line 147
  303.                 echo "                                            <br>
  304.                                             ";
  305.                 // line 148
  306.                 if ((isset($context["mother"]) || array_key_exists("mother"$context) ? $context["mother"] : (function () { throw new RuntimeError('Variable "mother" does not exist.'148$this->source); })())) {
  307.                     // line 149
  308.                     echo "                                                <strong>u</strong> <a href=\"";
  309.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_horses", ["horse" => twig_get_attribute($this->env$this->source, (isset($context["mother"]) || array_key_exists("mother"$context) ? $context["mother"] : (function () { throw new RuntimeError('Variable "mother" does not exist.'149$this->source); })()), "getId", [], "method"falsefalsefalse149)]), "html"nulltrue);
  310.                     echo "\">";
  311.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["mother"]) || array_key_exists("mother"$context) ? $context["mother"] : (function () { throw new RuntimeError('Variable "mother" does not exist.'149$this->source); })()), "getHorName", [], "method"falsefalsefalse149), "html"nulltrue);
  312.                     echo "</a>
  313.                                             ";
  314.                 }
  315.                 // line 151
  316.                 echo "                                            ";
  317.                 if ((isset($context["grandfather"]) || array_key_exists("grandfather"$context) ? $context["grandfather"] : (function () { throw new RuntimeError('Variable "grandfather" does not exist.'151$this->source); })())) {
  318.                     // line 152
  319.                     echo "                                                <br>
  320.                                                 <strong>e</strong> <a href=\"";
  321.                     // line 153
  322.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_horses", ["horse" => twig_get_attribute($this->env$this->source, (isset($context["grandfather"]) || array_key_exists("grandfather"$context) ? $context["grandfather"] : (function () { throw new RuntimeError('Variable "grandfather" does not exist.'153$this->source); })()), "id", [], "any"falsefalsefalse153)]), "html"nulltrue);
  323.                     echo "\">";
  324.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["grandfather"]) || array_key_exists("grandfather"$context) ? $context["grandfather"] : (function () { throw new RuntimeError('Variable "grandfather" does not exist.'153$this->source); })()), "getHorName", [], "method"falsefalsefalse153), "html"nulltrue);
  325.                     echo "</a>
  326.                                             ";
  327.                 }
  328.                 // line 155
  329.                 echo "                                            <br>
  330.                                             <br>
  331.                                             <strong>Oppdretter: </strong> ";
  332.                 // line 157
  333.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["a"], "bre_name", [], "any"falsefalsefalse157), "html"nulltrue);
  334.                 echo "<br>
  335.                                             <strong>Trener: </strong>
  336.                                             ";
  337.                 // line 159
  338.                 if (twig_get_attribute($this->env$this->source$context["a"], "traid", [], "any"falsefalsefalse159)) {
  339.                     // line 160
  340.                     echo "                                                <a href=\"";
  341.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_trainer", ["trainer" => twig_get_attribute($this->env$this->source$context["a"], "traid", [], "any"falsefalsefalse160)]), "html"nulltrue);
  342.                     echo "\">";
  343.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["a"], "tra_firstname", [], "any"falsefalsefalse160), "html"nulltrue);
  344.                     echo " ";
  345.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["a"], "tra_lastname", [], "any"falsefalsefalse160), "html"nulltrue);
  346.                     echo "</a>
  347.                                             ";
  348.                 }
  349.                 // line 162
  350.                 echo "                                        </div>
  351. <!--
  352.                                         <div class=\"col-sm-2 col-3 pl-0 mt-3\">
  353.                                             <strong>Oppdretter</strong>
  354.                                         </div>
  355.                                         <div class=\"col-sm-10 col-9 mt-3\">
  356.                                                 ";
  357.                 // line 169
  358.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["a"], "bre_name", [], "any"falsefalsefalse169), "html"nulltrue);
  359.                 echo "
  360.                                         </div>
  361.                                         <div class=\"col-sm-2 col-3 pl-0\">
  362.                                             <strong>Trener</strong>
  363.                                         </div>
  364.                                         <div class=\"col-sm-10 col-9\">
  365.                                         ";
  366.                 // line 175
  367.                 if (twig_get_attribute($this->env$this->source$context["a"], "traid", [], "any"falsefalsefalse175)) {
  368.                     // line 176
  369.                     echo "                                            <a href=\"";
  370.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_trainer", ["trainer" => twig_get_attribute($this->env$this->source$context["a"], "traid", [], "any"falsefalsefalse176)]), "html"nulltrue);
  371.                     echo "\">";
  372.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["a"], "tra_firstname", [], "any"falsefalsefalse176), "html"nulltrue);
  373.                     echo " ";
  374.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["a"], "tra_lastname", [], "any"falsefalsefalse176), "html"nulltrue);
  375.                     echo "</a>
  376.                                         ";
  377.                 }
  378.                 // line 178
  379.                 echo "                                        </div>
  380.                                         ";
  381.                 // line 179
  382.                 if ((isset($context["father"]) || array_key_exists("father"$context) ? $context["father"] : (function () { throw new RuntimeError('Variable "father" does not exist.'179$this->source); })())) {
  383.                     // line 180
  384.                     echo "                                        <div class=\"col-sm-2 col-3 pl-0 mt-3\">
  385.                                             <strong>e</strong>
  386.                                         </div>
  387.                                         <div class=\"col-sm-10 col-9 mt-3\">
  388.                                             <a href=\"";
  389.                     // line 184
  390.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_horses", ["horse" => twig_get_attribute($this->env$this->source, (isset($context["father"]) || array_key_exists("father"$context) ? $context["father"] : (function () { throw new RuntimeError('Variable "father" does not exist.'184$this->source); })()), "getId", [], "method"falsefalsefalse184)]), "html"nulltrue);
  391.                     echo "\">";
  392.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["father"]) || array_key_exists("father"$context) ? $context["father"] : (function () { throw new RuntimeError('Variable "father" does not exist.'184$this->source); })()), "getHorName", [], "method"falsefalsefalse184), "html"nulltrue);
  393.                     echo "</a>
  394.                                         </div>
  395.                                         ";
  396.                 }
  397.                 // line 187
  398.                 echo "                                        ";
  399.                 if ((isset($context["mother"]) || array_key_exists("mother"$context) ? $context["mother"] : (function () { throw new RuntimeError('Variable "mother" does not exist.'187$this->source); })())) {
  400.                     // line 188
  401.                     echo "                                        <div class=\"col-sm-2 col-3 pl-0\">
  402.                                             <strong>u</strong>
  403.                                         </div>
  404.                                         <div class=\"col-sm-10 col-9\">
  405.                                             <a href=\"";
  406.                     // line 192
  407.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_horses", ["horse" => twig_get_attribute($this->env$this->source, (isset($context["mother"]) || array_key_exists("mother"$context) ? $context["mother"] : (function () { throw new RuntimeError('Variable "mother" does not exist.'192$this->source); })()), "getId", [], "method"falsefalsefalse192)]), "html"nulltrue);
  408.                     echo "\">";
  409.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["mother"]) || array_key_exists("mother"$context) ? $context["mother"] : (function () { throw new RuntimeError('Variable "mother" does not exist.'192$this->source); })()), "getHorName", [], "method"falsefalsefalse192), "html"nulltrue);
  410.                     echo "</a>
  411.                                         </div>
  412.                                         ";
  413.                 }
  414.                 // line 195
  415.                 echo "                                        ";
  416.                 if ((isset($context["grandfather"]) || array_key_exists("grandfather"$context) ? $context["grandfather"] : (function () { throw new RuntimeError('Variable "grandfather" does not exist.'195$this->source); })())) {
  417.                     // line 196
  418.                     echo "                                            <div class=\"col-sm-2 col-3 pl-0\">
  419.                                                 <strong>e</strong>
  420.                                             </div>
  421.                                             <div class=\"col-sm-10 col-9\">
  422.                                                 <a href=\"";
  423.                     // line 200
  424.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_horses", ["horse" => twig_get_attribute($this->env$this->source, (isset($context["grandfather"]) || array_key_exists("grandfather"$context) ? $context["grandfather"] : (function () { throw new RuntimeError('Variable "grandfather" does not exist.'200$this->source); })()), "id", [], "any"falsefalsefalse200)]), "html"nulltrue);
  425.                     echo "\">";
  426.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["grandfather"]) || array_key_exists("grandfather"$context) ? $context["grandfather"] : (function () { throw new RuntimeError('Variable "grandfather" does not exist.'200$this->source); })()), "getHorName", [], "method"falsefalsefalse200), "html"nulltrue);
  427.                     echo "</a>
  428.                                             </div>
  429.                                         ";
  430.                 }
  431.                 // line 203
  432.                 echo "                                        -->
  433.                                         <div class=\"col-lg-12 pl-0 mt-30\" style=\"width: 100%; overflow: auto\">
  434.                                             <div class=\"row\">
  435.                                                 <div class=\"col-6 col-lg-2 col-sm-6 test1 mb-3\"></div>
  436.                                                 <div class=\"col-6 col-lg-2 col-sm-6 test3 mb-3\"></div>
  437.                                                 <div class=\"col-6 col-lg-2 col-sm-6 test8 mb-3\"></div>
  438.                                                 <div class=\"col-6 col-lg-2 col-sm-6 test10 mb-3\"></div>
  439.                                                 <div class=\"col-6 col-lg-2 col-sm-6 test15 mb-3\"></div>
  440.                                             </div>
  441.                                             <table class=\"table table-hover table-responsive-sm display responsive\" id=\"dtHorses\">
  442.                                                 <thead>
  443.                                                     <tr>
  444.                                                         <th class=\"all\">Løpsdag</th>
  445.                                                         <th class=\"all\"></th>
  446.                                                         <th class=\"all\">Bane</th>
  447.                                                         <th class=\"all\"></th>
  448.                                                         <th class=\"all\">Kusk</th>
  449.                                                         <th class=\"all\">Trener</th>
  450.                                                         <th class=\"all\">Spor</th>
  451.                                                         <th class=\"all\">Dist</th>
  452.                                                         <th class=\"all\"></th>
  453.                                                         <th class=\"all\">Start</th>
  454.                                                         <th class=\"all\"></th>
  455.                                                         <th class=\"all\" style=\"text-align: center;\">Plass</th>
  456.                                                         <th class=\"all\">Tid</th>
  457.                                                         <th class=\"all\" style=\"text-align: right;\">Fpr</th>
  458.                                                         <th class=\"all\" style=\"text-align: center;\">Odds</th>
  459.                                                         <th class=\"all\" style=\"text-align: center;\">Forhold</th>
  460.                                                         <th class=\"all\" style=\"white-space: nowrap;\">M-tider</th>
  461.                                                         <th class=\"all\">Monté</th>
  462.                                                         <th class=\"none\"></th>
  463.                                                     </tr>
  464.                                                 </thead>
  465.                                                 <tbody>
  466.                                                 ";
  467.                 // line 238
  468.                 $context["c"] = 0;
  469.                 // line 239
  470.                 echo "                                                ";
  471.                 $context['_parent'] = $context;
  472.                 $context['_seq'] = twig_ensure_traversable((isset($context["info"]) || array_key_exists("info"$context) ? $context["info"] : (function () { throw new RuntimeError('Variable "info" does not exist.'239$this->source); })()));
  473.                 foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  474.                     // line 240
  475.                     echo "
  476.                                                     <!--
  477.                                                     ";
  478.                     // line 242
  479.                     if (((=== twig_compare(twig_get_attribute($this->env$this->source$context["i"], "res_scratched", [], "any"falsefalsefalse242), "1")) || (=== twig_compare(twig_get_attribute($this->env$this->source$context["i"], "res_disq", [], "any"falsefalsefalse242), "1")))) {
  480.                         // line 243
  481.                         echo "                                                        ";
  482.                         $context["st"] = "background-color:#FDD";
  483.                         // line 244
  484.                         echo "                                                    ";
  485.                     } else {
  486.                         // line 245
  487.                         echo "                                                        ";
  488.                         $context["st"] = "";
  489.                         // line 246
  490.                         echo "                                                    ";
  491.                     }
  492.                     // line 247
  493.                     echo "                                                    -->
  494.                                                     ";
  495.                     // line 249
  496.                     if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["i"], "res_disq", [], "any"falsefalsefalse249), "1"))) {
  497.                         // line 250
  498.                         echo "                                                        ";
  499.                         $context["pl"] = "-";
  500.                         // line 251
  501.                         echo "                                                        ";
  502.                         $context["km"] = twig_get_attribute($this->env$this->source$context["i"], "res_displaykmtime", [], "any"falsefalsefalse251);
  503.                         // line 252
  504.                         echo "                                                        ";
  505.                         $context["st"] = "";
  506.                         // line 253
  507.                         echo "                                                    ";
  508.                     } elseif ((=== twig_compare(twig_get_attribute($this->env$this->source$context["i"], "res_scratched", [], "any"falsefalsefalse253), "1"))) {
  509.                         // line 254
  510.                         echo "                                                        ";
  511.                         $context["pl"] = "-";
  512.                         // line 255
  513.                         echo "                                                        ";
  514.                         $context["km"] = "str";
  515.                         // line 256
  516.                         echo "                                                        ";
  517.                         $context["st"] = "background-color:#FDD";
  518.                         // line 257
  519.                         echo "                                                    ";
  520.                     } elseif ((=== twig_compare(twig_get_attribute($this->env$this->source$context["i"], "res_earnedmoney", [], "any"falsefalsefalse257), "0"))) {
  521.                         // line 258
  522.                         echo "                                                        ";
  523.                         $context["pl"] = "0";
  524.                         // line 259
  525.                         echo "                                                    ";
  526.                     } else {
  527.                         // line 260
  528.                         echo "                                                        ";
  529.                         $context["pl"] = twig_get_attribute($this->env$this->source$context["i"], "res_place", [], "any"falsefalsefalse260);
  530.                         // line 261
  531.                         echo "                                                        ";
  532.                         $context["km"] = twig_get_attribute($this->env$this->source$context["i"], "res_displaykmtime", [], "any"falsefalsefalse261);
  533.                         // line 262
  534.                         echo "                                                        ";
  535.                         $context["st"] = "";
  536.                         // line 263
  537.                         echo "                                                    ";
  538.                     }
  539.                     // line 264
  540.                     echo "
  541.                                                     <tr style=\"";
  542.                     // line 269
  543.                     echo twig_escape_filter($this->env, (isset($context["st"]) || array_key_exists("st"$context) ? $context["st"] : (function () { throw new RuntimeError('Variable "st" does not exist.'269$this->source); })()), "html"nulltrue);
  544.                     echo "\" >
  545.                                                         <td style=\"white-space: nowrap;\">
  546.                                                             ";
  547.                     // line 271
  548.                     if (twig_get_attribute($this->env$this->source$context["i"], "mee_id", [], "any"falsefalsefalse271)) {
  549.                         // line 272
  550.                         echo "                                                                <span id=\"";
  551.                         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "mee_date", [], "any"falsefalsefalse272), "ymd"), "html"nulltrue);
  552.                         echo "\" style=\"display: none\">";
  553.                         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "mee_date", [], "any"falsefalsefalse272), "ymd"), "html"nulltrue);
  554.                         echo "</span><a href=\"/tips/";
  555.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "mee_id", [], "any"falsefalsefalse272), "html"nulltrue);
  556.                         echo "?resultat=&lop=";
  557.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "res_raceno", [], "any"falsefalsefalse272), "html"nulltrue);
  558.                         echo "\">";
  559.                         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "mee_date", [], "any"falsefalsefalse272), "dmy"), "html"nulltrue);
  560.                         echo "-";
  561.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "res_raceno", [], "any"falsefalsefalse272), "html"nulltrue);
  562.                         echo "</a>
  563.                                                             ";
  564.                     } else {
  565.                         // line 274
  566.                         echo "                                                                ";
  567.                         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "mee_date", [], "any"falsefalsefalse274), "dmy"), "html"nulltrue);
  568.                         echo "-";
  569.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "res_raceno", [], "any"falsefalsefalse274), "html"nulltrue);
  570.                         echo "
  571.                                                             ";
  572.                     }
  573.                     // line 276
  574.                     echo "                                                        </td>
  575.                                                         <td style=\"text-align: left\">
  576.                                                             ";
  577.                     // line 278
  578.                     if (((=== twig_compare(twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "mee_date", [], "any"falsefalsefalse278), "m"), 12)) || (-=== twig_compare(twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "mee_date", [], "any"falsefalsefalse278), "m"), 3)))) {
  579.                         // line 279
  580.                         echo "                                                                Vinter
  581.                                                             ";
  582.                     } elseif ((-=== twig_compare(twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source,                     // line 280
  583. $context["i"], "mee_date", [], "any"falsefalsefalse280), "m"), 6))) {
  584.                         // line 281
  585.                         echo "                                                                Vår
  586.                                                             ";
  587.                     } elseif ((-=== twig_compare(twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source,                     // line 282
  588. $context["i"], "mee_date", [], "any"falsefalsefalse282), "m"), 9))) {
  589.                         // line 283
  590.                         echo "                                                                Sommer
  591.                                                             ";
  592.                     } else {
  593.                         // line 285
  594.                         echo "                                                                Høst
  595.                                                             ";
  596.                     }
  597.                     // line 287
  598.                     echo "                                                        </td>
  599.                                                         <td style=\"white-space: nowrap;\">
  600.                                                             ";
  601.                     // line 289
  602.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "trk_code", [], "any"falsefalsefalse289), "html"nulltrue);
  603.                     echo "
  604.                                                         </td>
  605.                                                         <td style=\"white-space: nowrap;\">
  606.                                                             ";
  607.                     // line 292
  608.                     echo twig_escape_filter($this->envtwig_replace_filter(twig_get_attribute($this->env$this->source$context["i"], "trk_trackname", [], "any"falsefalsefalse292), [" Travbane" => """ Travpark" => """ Tråvpark" => """ Galoppbane" => ""]), "html"nulltrue);
  609.                     echo "
  610.                                                         </td>
  611.                                                         <td style=\"white-space: nowrap;\">
  612.                                                             ";
  613.                     // line 295
  614.                     $context["first"] = twig_slice($this->envtwig_get_attribute($this->env$this->source$context["i"], "dri_firstname", [], "any"falsefalsefalse295), 02);
  615.                     // line 296
  616.                     echo "                                                            ";
  617.                     $context["last"] = twig_slice($this->envtwig_get_attribute($this->env$this->source$context["i"], "dri_lastname", [], "any"falsefalsefalse296), 03);
  618.                     // line 297
  619.                     echo "                                                            <a href=\"/driver/";
  620.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "driid", [], "any"falsefalsefalse297), "html"nulltrue);
  621.                     echo "\">";
  622.                     echo twig_escape_filter($this->env, (isset($context["first"]) || array_key_exists("first"$context) ? $context["first"] : (function () { throw new RuntimeError('Variable "first" does not exist.'297$this->source); })()), "html"nulltrue);
  623.                     echo " ";
  624.                     echo twig_escape_filter($this->env, (isset($context["last"]) || array_key_exists("last"$context) ? $context["last"] : (function () { throw new RuntimeError('Variable "last" does not exist.'297$this->source); })()), "html"nulltrue);
  625.                     echo "</a>
  626.                                                         </td>
  627.                                                         <td style=\"white-space: nowrap;\">
  628.                                                             <a href=\"";
  629.                     // line 300
  630.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_trainer", ["trainer" => twig_get_attribute($this->env$this->source$context["i"], "traid", [], "any"falsefalsefalse300)]), "html"nulltrue);
  631.                     echo "\">";
  632.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "tra_shortname", [], "any"falsefalsefalse300), "html"nulltrue);
  633.                     echo "</a>
  634.                                                         </td>
  635.                                                         <td style=\"white-space: nowrap;\">
  636.                                                             ";
  637.                     // line 303
  638.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "res_startnumber", [], "any"falsefalsefalse303), "html"nulltrue);
  639.                     echo "
  640.                                                         </td>
  641.                                                         <td style=\"white-space: nowrap;\">
  642.                                                             ";
  643.                     // line 306
  644.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "res_distance", [], "any"falsefalsefalse306), "html"nulltrue);
  645.                     echo "
  646.                                                         </td>
  647.                                                         <td style=\"white-space: nowrap;\"  class=\"none\">
  648.                                                             ";
  649.                     // line 309
  650.                     if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["i"], "res_distance", [], "any"falsefalsefalse309), 2399))) {
  651.                         // line 310
  652.                         echo "                                                                Lang
  653.                                                             ";
  654.                     } elseif ((=== twig_compare(twig_get_attribute($this->env$this->source,                     // line 311
  655. $context["i"], "res_distance", [], "any"falsefalsefalse311), 1799))) {
  656.                         // line 312
  657.                         echo "                                                                Mellom
  658.                                                             ";
  659.                     } else {
  660.                         // line 314
  661.                         echo "                                                                Sprint
  662.                                                             ";
  663.                     }
  664.                     // line 316
  665.                     echo "                                                        </td>
  666.                                                         <td style=\"white-space: nowrap; text-align: center;\">
  667.                                                             ";
  668.                     // line 318
  669.                     echo twig_escape_filter($this->envtwig_upper_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "rac_startmethod_code", [], "any"falsefalsefalse318)), "html"nulltrue);
  670.                     echo "
  671.                                                         </td>
  672.                                                         <td style=\"white-space: nowrap;\"  class=\"\">
  673.                                                             ";
  674.                     // line 321
  675.                     if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["i"], "rac_startmethod_code", [], "any"falsefalsefalse321), "v"))) {
  676.                         // line 322
  677.                         echo "                                                                Volte
  678.                                                             ";
  679.                     } else {
  680.                         // line 324
  681.                         echo "                                                                Auto
  682.                                                             ";
  683.                     }
  684.                     // line 326
  685.                     echo "                                                        </td>
  686.                                                         <td style=\"text-align:center;white-space: nowrap;\">
  687.                                                             ";
  688.                     // line 328
  689.                     echo twig_escape_filter($this->env, (isset($context["pl"]) || array_key_exists("pl"$context) ? $context["pl"] : (function () { throw new RuntimeError('Variable "pl" does not exist.'328$this->source); })()), "html"nulltrue);
  690.                     echo "
  691.                                                         </td>
  692.                                                         <td style=\"white-space: nowrap;\">
  693.                                                             ";
  694.                     // line 331
  695.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "res_displaykmtime", [], "any"falsefalsefalse331), "html"nulltrue);
  696.                     echo "
  697.                                                         </td>
  698.                                                         <td style=\"text-align:right;white-space: nowrap;\">
  699.                                                             ";
  700.                     // line 334
  701.                     echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["arr"]) || array_key_exists("arr"$context) ? $context["arr"] : (function () { throw new RuntimeError('Variable "arr" does not exist.'334$this->source); })()), (isset($context["c"]) || array_key_exists("c"$context) ? $context["c"] : (function () { throw new RuntimeError('Variable "c" does not exist.'334$this->source); })()), [], "array"falsefalsefalse334), 0","" "), "html"nulltrue);
  702.                     echo "
  703.                                                         </td>
  704.                                                         <td style=\"text-align:center;white-space: nowrap;\">
  705.                                                             ";
  706.                     // line 337
  707.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "res_odds", [], "any"falsefalsefalse337), "html"nulltrue);
  708.                     echo "
  709.                                                         </td>
  710.                                                         <td style=\"text-align:left;white-space: nowrap;\">
  711.                                                             ";
  712.                     // line 340
  713.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "trc_condition", [], "any"falsefalsefalse340), "html"nulltrue);
  714.                     echo "
  715.                                                         </td>
  716.                                                         <td style=\"white-space: nowrap;\">
  717.                                                             ";
  718.                     // line 343
  719.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "sta_pass500", [], "any"falsefalsefalse343), "html"nulltrue);
  720.                     echo "-";
  721.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "sta_pass1000", [], "any"falsefalsefalse343), "html"nulltrue);
  722.                     echo "
  723.                                                             ";
  724.                     // line 344
  725.                     if (twig_get_attribute($this->env$this->source$context["i"], "sta_pass500", [], "any"falsefalsefalse344)) {
  726.                         // line 345
  727.                         echo "<!-- COULD BE HERE -->
  728.                                                             ";
  729.                     }
  730.                     // line 347
  731.                     echo "                                                        </td>
  732.                                                         <td style=\"white-space: nowrap;text-align: center\">
  733.                                                             ";
  734.                     // line 349
  735.                     if (twig_get_attribute($this->env$this->source$context["i"], "rac_monterace", [], "any"falsefalsefalse349)) {
  736.                         // line 350
  737.                         echo "                                                                <i class=\"fas fa-times\"></i>
  738.                                                             ";
  739.                     }
  740.                     // line 352
  741.                     echo "                                                        </td>
  742.                                                         <td>";
  743.                     // line 353
  744.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "sta_comment", [], "any"falsefalsefalse353), "html"nulltrue);
  745.                     echo "</td>
  746.                                                     </tr>
  747.                                                    ";
  748.                     // line 356
  749.                     $context["c"] = ((isset($context["c"]) || array_key_exists("c"$context) ? $context["c"] : (function () { throw new RuntimeError('Variable "c" does not exist.'356$this->source); })()) + 1);
  750.                     // line 357
  751.                     echo "                                                ";
  752.                 }
  753.                 $_parent $context['_parent'];
  754.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  755.                 $context array_intersect_key($context$_parent) + $_parent;
  756.                 // line 358
  757.                 echo "                                                </tbody>
  758.                                             </table>
  759.                                         </div>
  760.                                     </div>
  761.                                 </div>
  762.                             </div>
  763.                         ";
  764.             }
  765.             $_parent $context['_parent'];
  766.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['a'], $context['_parent'], $context['loop']);
  767.             $context array_intersect_key($context$_parent) + $_parent;
  768.             // line 365
  769.             echo "                        ";
  770.         }
  771.         // line 366
  772.         echo "                    </div>
  773.                 </div>
  774.             </div>
  775.         </div>
  776.     </section>
  777. ";
  778.         
  779.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  780.         
  781.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  782.     }
  783.     // line 373
  784.     public function block_javascripts_end($context, array $blocks = [])
  785.     {
  786.         $macros $this->macros;
  787.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  788.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts_end"));
  789.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  790.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts_end"));
  791.         // line 374
  792.         echo "    ";
  793.         $this->displayParentBlock("javascripts_end"$context$blocks);
  794.         echo "
  795.     <script src=\"https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js\"></script>
  796.     <script src=\"https://cdn.datatables.net/responsive/2.2.3/js/dataTables.responsive.min.js\"></script>
  797.     <script>
  798.         \$(document).ready(function() {
  799.             \$('#dtHorses').DataTable( {
  800.                 responsive: {
  801.                     details: {
  802.                         display: \$.fn.dataTable.Responsive.display.childRowImmediate,
  803.                         type: 'none',
  804.                         target: ''
  805.                     }
  806.                 },
  807.                 order: [[ 0, \"desc\" ]],
  808.                 dom: 'Bfrtip',
  809.                 language: {
  810.                     buttons: {
  811.                         pageLength: {
  812.                             _: \"Vis %d\",
  813.                             '-1': \"Alle\"
  814.                         }
  815.                     }
  816.                 },
  817.                 paging: false,
  818.                 info: false,
  819.                 pageLength: -1,
  820.                 oLanguage: {
  821.                     \"sSearch\": \"\"
  822.                 },
  823.                 columnDefs: [
  824.                     {
  825.                         \"targets\": [ 1,3,8,10 ],
  826.                         \"visible\": false,
  827.                     }
  828.                 ],
  829.                 initComplete: function () {
  830.                     \$i = 0;
  831.                     this.api().columns().every( function () {
  832.                         var title = '';
  833.                         if(\$i == 1 || \$i == 3 || \$i == 8 || \$i == 10 || \$i == 15){
  834.                             if(\$i == 1){
  835.                                 title = 'Årstid';
  836.                             } else if(\$i == 3) {
  837.                                 title = 'Bane';
  838.                             } else if(\$i == 8) {
  839.                                 title = 'Distanse';
  840.                             } else if (\$i == 10){
  841.                                 title = 'Starttype';
  842.                             } else if (\$i == 15){
  843.                                 title = 'Baneforhold';
  844.                             }
  845.                             var column = this;
  846.                             var select = \$('<select class=\"form-control\"><option value=\"\">'+title+'</option></select>')
  847.                                 .appendTo( \$('.test'+\$i).empty() )
  848.                                 //   .appendTo( \$(column.footer()).empty() )
  849.                                 .on( 'change', function () {
  850.                                     var val = \$.fn.dataTable.util.escapeRegex(
  851.                                         \$(this).val()
  852.                                     );
  853.                                     column
  854.                                         .search( val ? '^'+val+'\$' : '', true, false )
  855.                                         .draw();
  856.                                 } );
  857.                             column.data().unique().sort().each( function ( d, j ) {
  858.                                 select.append( '<option value=\"'+d+'\">'+d+'</option>' )
  859.                             } );
  860.                         }
  861.                         \$i++;
  862.                     } );
  863.                 }
  864.             });
  865.         });
  866.         /*
  867.                 */
  868.     </script>
  869. ";
  870.         
  871.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  872.         
  873.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  874.     }
  875.     public function getTemplateName()
  876.     {
  877.         return "pages/searchresult.html.twig";
  878.     }
  879.     public function isTraitable()
  880.     {
  881.         return false;
  882.     }
  883.     public function getDebugInfo()
  884.     {
  885.         return array (  837 => 374,  827 => 373,  812 => 366,  809 => 365,  797 => 358,  791 => 357,  789 => 356,  783 => 353,  780 => 352,  776 => 350,  774 => 349,  770 => 347,  766 => 345,  764 => 344,  758 => 343,  752 => 340,  746 => 337,  740 => 334,  734 => 331,  728 => 328,  724 => 326,  720 => 324,  716 => 322,  714 => 321,  708 => 318,  704 => 316,  700 => 314,  696 => 312,  694 => 311,  691 => 310,  689 => 309,  683 => 306,  677 => 303,  669 => 300,  658 => 297,  655 => 296,  653 => 295,  647 => 292,  641 => 289,  637 => 287,  633 => 285,  629 => 283,  627 => 282,  624 => 281,  622 => 280,  619 => 279,  617 => 278,  613 => 276,  605 => 274,  589 => 272,  587 => 271,  582 => 269,  575 => 264,  572 => 263,  569 => 262,  566 => 261,  563 => 260,  560 => 259,  557 => 258,  554 => 257,  551 => 256,  548 => 255,  545 => 254,  542 => 253,  539 => 252,  536 => 251,  533 => 250,  531 => 249,  527 => 247,  524 => 246,  521 => 245,  518 => 244,  515 => 243,  513 => 242,  509 => 240,  504 => 239,  502 => 238,  465 => 203,  457 => 200,  451 => 196,  448 => 195,  440 => 192,  434 => 188,  431 => 187,  423 => 184,  417 => 180,  415 => 179,  412 => 178,  402 => 176,  400 => 175,  391 => 169,  382 => 162,  372 => 160,  370 => 159,  365 => 157,  361 => 155,  354 => 153,  351 => 152,  348 => 151,  340 => 149,  338 => 148,  335 => 147,  327 => 145,  325 => 144,  314 => 136,  310 => 135,  306 => 133,  301 => 132,  296 => 129,  293 => 128,  289 => 126,  276 => 124,  272 => 123,  269 => 122,  267 => 121,  264 => 120,  260 => 118,  247 => 116,  243 => 115,  240 => 114,  238 => 113,  235 => 112,  231 => 110,  220 => 108,  216 => 107,  213 => 106,  210 => 105,  208 => 104,  195 => 94,  190 => 92,  186 => 90,  184 => 89,  176 => 83,  171 => 80,  169 => 79,  160 => 72,  150 => 71,  76 => 6,  70 => 4,  60 => 3,  37 => 1,);
  886.     }
  887.     public function getSourceContext()
  888.     {
  889.         return new Source("{% extends 'base.html.twig' %}
  890. {% block stylesheets %}
  891.     {{ parent() }}
  892.     <link rel=\"stylesheet\" type=\"text/css\" href=\"{{ asset('vendors/DataTables/DataTables-1.10.18/css/dataTables.bootstrap4.css') }}\"/>
  893.     <style>
  894.         .table td {
  895.             padding: .1rem;
  896.         }
  897.         .dtr-title{
  898.             display: none !important;
  899.             min-width: 0px !important;
  900.             font-weight: bold;
  901.         }
  902.         .child{
  903.             border-top: none !important;
  904.         }
  905.        table.dataTable thead .sorting:before, table.dataTable thead .sorting_asc:before, table.dataTable thead .sorting_desc:before, table.dataTable thead .sorting_asc_disabled:before, table.dataTable thead .sorting_desc_disabled:before {
  906.             right: 1em;
  907.             content: none;
  908.         }
  909.         table.dataTable thead .sorting:after, table.dataTable thead .sorting_asc:after, table.dataTable thead .sorting_desc:after, table.dataTable thead .sorting_asc_disabled:after, table.dataTable thead .sorting_desc_disabled:after {
  910.             right: 0.5em;
  911.             content: none;
  912.         }
  913.         .child-container{
  914.             padding: 0 !important;
  915.         }
  916.         table.row-detail {
  917.             border-collapse: collapse;
  918.             width: 100%;
  919.         }
  920.         table.row-detail td {
  921.             padding: 5px 10px !important;
  922.             border-right: 1px solid #ddd;
  923.         }
  924.         table.dataTable.dtr-inline.collapsed>tbody>tr>td:first-child, table.dataTable.dtr-inline.collapsed>tbody>tr>th:first-child {
  925.             position: relative;
  926.             padding-left: 30px;
  927.             cursor: pointer;
  928.         }
  929.         table.dataTable.dtr-inline.collapsed>tbody>tr>td:first-child, table.dataTable.dtr-inline.collapsed>tbody>tr>th:first-child {
  930.             position: relative;
  931.             padding-left: 30px;
  932.             cursor: pointer;
  933.         }
  934.         #dtHorses_filter input {
  935.             padding: .5rem .75rem;
  936.             font-size: 1rem;
  937.             line-height: 1.25;
  938.             color: #495057;
  939.             background-color: #fff;
  940.             background-image: none;
  941.             background-clip: padding-box;
  942.             border: 1px solid rgba(0, 0, 0, 0.15);
  943.             border-radius: .25rem;
  944.             transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s
  945.         }
  946.     </style>
  947. {% endblock %}
  948. {% block body %}
  949.     <section class=\"fashion-area section-gap pt-10\" id=\"fashion\" style=\"padding-top: 40px;\">
  950.         <div class=\"container\">
  951.             <div class=\"row\">
  952.                 <div class=\"col-md-12 col-md-offset-0\">
  953.                     <div class=\"x_panel\">
  954.                         <div class=\"x_title\">
  955.                             {% if horse == 'all' %}
  956.                                 <h3>Hestefakta</h3>
  957.                                 <br>
  958.                             {% endif %}
  959.                             <div class=\"clearfix\"></div>
  960.                         </div>
  961.                         <div class=\"x_content\">
  962.                             {% if horse == 'all' %}
  963.                             <div class=\"row\">
  964.                                 <div class=\"col-12 col-lg-6 col-md-6 col-sm-12\">
  965.                                     <form method=\"post\" action=\"{{ path('app_search', {kind: 'horse' }) }}\">
  966.                                         <div class=\"col-lg-12 col-sm-auto input-group mb-3 pl-0\" >
  967.                                             <input type=\"text\" class=\"form-control\" aria-label=\"Search for horse\" aria-describedby=\"basic-addon2\" value=\"{{ searchfor }}\" placeholder=\"Søk etter hest/kusk/trener\"  name=\"horse_name\" style=\"padding: .3rem;font-size: .9rem;\">
  968.                                              <div class=\"input-group-append\">
  969.                                                 <button class=\"btn btn-outline-danger\" type=\"submit\"><i class=\"fa fa-search\"></i></button>
  970.                                             </div>
  971.                                         </div>
  972.                                     </form>
  973.                                 </div>
  974.                             </div>
  975.                             {% if (result['horses'] is defined) %}
  976.                             {%  if ((result['horses'] | length) > 0) %}
  977.                                 <b>Hest</b><br>
  978.                                 {% for r in result['horses'] %}
  979.                                     <a href=\"{{ path('app_horses', { horse: r.id}) }}\">{{ r.hor_name }}</a><br>
  980.                                 {% endfor %}
  981.                                 <br>
  982.                             {% endif %}
  983.                             {%  if ((result['trainers'] | length) > 0) %}
  984.                                 <b>Trener</b><br>
  985.                                 {% for r in result['trainers'] %}
  986.                                     <a href=\"{{ path('app_trainer', { trainer: r.id }) }}\">{{ r.tra_lastname }}, {{ r.tra_firstname }}</a><br>
  987.                                 {% endfor %}
  988.                                 <br>
  989.                             {% endif %}
  990.                             {%  if ((result['drivers'] | length) > 0) %}
  991.                                 <b>Kusk</b><br>
  992.                                 {% for r in result['drivers'] %}
  993.                                     <a href=\"{{ path('app_driver', { driver: r.id }) }}\">{{ r.dri_lastname }}, {{ r.dri_firstname }}</a><br>
  994.                                 {% endfor %}
  995.                                 <br>
  996.                             {% endif %}
  997.                             {% endif %}
  998.                         </div>
  999.                         {% else %}
  1000.                             {% for a in horse %}
  1001.                         <div class=\"x_title\">
  1002.                             <div style=\"width: 100%;\">
  1003.                                 <div style=\"width: 78%;display: inline-block;margin: 0px;padding: 0px;\"><h3>{{ a.hor_name }}</h3></div>
  1004.                                 <div style=\"text-align: right;width: 20%; display: inline-block;margin: 0px;padding: 0px;\"><h4><span style=\"text-align: right\"><a href=\"{{ path('app_horses', {horse: 'all' }) }}\"><i class=\"fas fa-search\"></i></a></span></h4></div>
  1005.                             </div>
  1006.                             <div class=\"clearfix\"></div>
  1007.                             </div>
  1008.                             <div class=\"x_content\">
  1009.                                 <div class=\"col-lg-12\">
  1010.                                     <div class=\"row\">
  1011.                                         <div class=\"col-12 mt-3 pl-0\">
  1012.                                             {% if father %}
  1013.                                                 <strong>e</strong> <a href=\"{{ path('app_horses', { horse: father.getId()}) }}\">{{ father.getHorName() }}</a>
  1014.                                             {% endif %}
  1015.                                             <br>
  1016.                                             {% if mother %}
  1017.                                                 <strong>u</strong> <a href=\"{{ path('app_horses', { horse: mother.getId()}) }}\">{{ mother.getHorName() }}</a>
  1018.                                             {% endif %}
  1019.                                             {% if grandfather %}
  1020.                                                 <br>
  1021.                                                 <strong>e</strong> <a href=\"{{ path('app_horses', { horse: grandfather.id }) }}\">{{ grandfather.getHorName() }}</a>
  1022.                                             {% endif %}
  1023.                                             <br>
  1024.                                             <br>
  1025.                                             <strong>Oppdretter: </strong> {{ a.bre_name }}<br>
  1026.                                             <strong>Trener: </strong>
  1027.                                             {% if a.traid %}
  1028.                                                 <a href=\"{{ path('app_trainer', { trainer: a.traid}) }}\">{{ a.tra_firstname }} {{ a.tra_lastname }}</a>
  1029.                                             {% endif %}
  1030.                                         </div>
  1031. <!--
  1032.                                         <div class=\"col-sm-2 col-3 pl-0 mt-3\">
  1033.                                             <strong>Oppdretter</strong>
  1034.                                         </div>
  1035.                                         <div class=\"col-sm-10 col-9 mt-3\">
  1036.                                                 {{ a.bre_name }}
  1037.                                         </div>
  1038.                                         <div class=\"col-sm-2 col-3 pl-0\">
  1039.                                             <strong>Trener</strong>
  1040.                                         </div>
  1041.                                         <div class=\"col-sm-10 col-9\">
  1042.                                         {% if a.traid %}
  1043.                                             <a href=\"{{ path('app_trainer', { trainer: a.traid}) }}\">{{ a.tra_firstname }} {{ a.tra_lastname }}</a>
  1044.                                         {% endif %}
  1045.                                         </div>
  1046.                                         {% if father %}
  1047.                                         <div class=\"col-sm-2 col-3 pl-0 mt-3\">
  1048.                                             <strong>e</strong>
  1049.                                         </div>
  1050.                                         <div class=\"col-sm-10 col-9 mt-3\">
  1051.                                             <a href=\"{{ path('app_horses', { horse: father.getId()}) }}\">{{ father.getHorName() }}</a>
  1052.                                         </div>
  1053.                                         {% endif %}
  1054.                                         {% if mother %}
  1055.                                         <div class=\"col-sm-2 col-3 pl-0\">
  1056.                                             <strong>u</strong>
  1057.                                         </div>
  1058.                                         <div class=\"col-sm-10 col-9\">
  1059.                                             <a href=\"{{ path('app_horses', { horse: mother.getId()}) }}\">{{ mother.getHorName() }}</a>
  1060.                                         </div>
  1061.                                         {% endif %}
  1062.                                         {% if grandfather %}
  1063.                                             <div class=\"col-sm-2 col-3 pl-0\">
  1064.                                                 <strong>e</strong>
  1065.                                             </div>
  1066.                                             <div class=\"col-sm-10 col-9\">
  1067.                                                 <a href=\"{{ path('app_horses', { horse: grandfather.id }) }}\">{{ grandfather.getHorName() }}</a>
  1068.                                             </div>
  1069.                                         {% endif %}
  1070.                                         -->
  1071.                                         <div class=\"col-lg-12 pl-0 mt-30\" style=\"width: 100%; overflow: auto\">
  1072.                                             <div class=\"row\">
  1073.                                                 <div class=\"col-6 col-lg-2 col-sm-6 test1 mb-3\"></div>
  1074.                                                 <div class=\"col-6 col-lg-2 col-sm-6 test3 mb-3\"></div>
  1075.                                                 <div class=\"col-6 col-lg-2 col-sm-6 test8 mb-3\"></div>
  1076.                                                 <div class=\"col-6 col-lg-2 col-sm-6 test10 mb-3\"></div>
  1077.                                                 <div class=\"col-6 col-lg-2 col-sm-6 test15 mb-3\"></div>
  1078.                                             </div>
  1079.                                             <table class=\"table table-hover table-responsive-sm display responsive\" id=\"dtHorses\">
  1080.                                                 <thead>
  1081.                                                     <tr>
  1082.                                                         <th class=\"all\">Løpsdag</th>
  1083.                                                         <th class=\"all\"></th>
  1084.                                                         <th class=\"all\">Bane</th>
  1085.                                                         <th class=\"all\"></th>
  1086.                                                         <th class=\"all\">Kusk</th>
  1087.                                                         <th class=\"all\">Trener</th>
  1088.                                                         <th class=\"all\">Spor</th>
  1089.                                                         <th class=\"all\">Dist</th>
  1090.                                                         <th class=\"all\"></th>
  1091.                                                         <th class=\"all\">Start</th>
  1092.                                                         <th class=\"all\"></th>
  1093.                                                         <th class=\"all\" style=\"text-align: center;\">Plass</th>
  1094.                                                         <th class=\"all\">Tid</th>
  1095.                                                         <th class=\"all\" style=\"text-align: right;\">Fpr</th>
  1096.                                                         <th class=\"all\" style=\"text-align: center;\">Odds</th>
  1097.                                                         <th class=\"all\" style=\"text-align: center;\">Forhold</th>
  1098.                                                         <th class=\"all\" style=\"white-space: nowrap;\">M-tider</th>
  1099.                                                         <th class=\"all\">Monté</th>
  1100.                                                         <th class=\"none\"></th>
  1101.                                                     </tr>
  1102.                                                 </thead>
  1103.                                                 <tbody>
  1104.                                                 {% set c = 0 %}
  1105.                                                 {% for i in info %}
  1106.                                                     <!--
  1107.                                                     {% if i.res_scratched == '1' or i.res_disq == '1' %}
  1108.                                                         {% set st = 'background-color:#FDD' %}
  1109.                                                     {%  else %}
  1110.                                                         {% set st = '' %}
  1111.                                                     {% endif %}
  1112.                                                     -->
  1113.                                                     {% if i.res_disq == '1' %}
  1114.                                                         {% set pl = '-' %}
  1115.                                                         {% set km = i.res_displaykmtime %}
  1116.                                                         {% set st = '' %}
  1117.                                                     {% elseif i.res_scratched == '1' %}
  1118.                                                         {% set pl = '-' %}
  1119.                                                         {% set km = 'str' %}
  1120.                                                         {% set st = 'background-color:#FDD' %}
  1121.                                                     {% elseif i.res_earnedmoney == '0' %}
  1122.                                                         {% set pl = '0' %}
  1123.                                                     {% else %}
  1124.                                                         {% set pl = i.res_place %}
  1125.                                                         {% set km = i.res_displaykmtime %}
  1126.                                                         {% set st = '' %}
  1127.                                                     {% endif %}
  1128.                                                     <tr style=\"{{ st }}\" >
  1129.                                                         <td style=\"white-space: nowrap;\">
  1130.                                                             {% if i.mee_id  %}
  1131.                                                                 <span id=\"{{ i.mee_date|date('ymd') }}\" style=\"display: none\">{{ i.mee_date|date('ymd') }}</span><a href=\"/tips/{{ i.mee_id }}?resultat=&lop={{ i.res_raceno}}\">{{ i.mee_date|date('dmy') }}-{{ i.res_raceno}}</a>
  1132.                                                             {% else %}
  1133.                                                                 {{ i.mee_date|date('dmy') }}-{{ i.res_raceno}}
  1134.                                                             {% endif %}
  1135.                                                         </td>
  1136.                                                         <td style=\"text-align: left\">
  1137.                                                             {% if (i.mee_date|date('m')  == 12) or  (i.mee_date|date('m')  < 3 )%}
  1138.                                                                 Vinter
  1139.                                                             {% elseif (i.mee_date|date('m')  < 6 )%}
  1140.                                                                 Vår
  1141.                                                             {% elseif (i.mee_date|date('m')  < 9 )%}
  1142.                                                                 Sommer
  1143.                                                             {% else %}
  1144.                                                                 Høst
  1145.                                                             {% endif %}
  1146.                                                         </td>
  1147.                                                         <td style=\"white-space: nowrap;\">
  1148.                                                             {{ i.trk_code }}
  1149.                                                         </td>
  1150.                                                         <td style=\"white-space: nowrap;\">
  1151.                                                             {{ i.trk_trackname|replace({' Travbane': '', ' Travpark': '', ' Tråvpark': '',  ' Galoppbane': '', }) }}
  1152.                                                         </td>
  1153.                                                         <td style=\"white-space: nowrap;\">
  1154.                                                             {% set first = i.dri_firstname|slice(0, 2) %}
  1155.                                                             {% set last = i.dri_lastname|slice(0, 3) %}
  1156.                                                             <a href=\"/driver/{{ i.driid }}\">{{ first }} {{ last }}</a>
  1157.                                                         </td>
  1158.                                                         <td style=\"white-space: nowrap;\">
  1159.                                                             <a href=\"{{ path('app_trainer', { trainer: i.traid}) }}\">{{ i.tra_shortname }}</a>
  1160.                                                         </td>
  1161.                                                         <td style=\"white-space: nowrap;\">
  1162.                                                             {{ i.res_startnumber}}
  1163.                                                         </td>
  1164.                                                         <td style=\"white-space: nowrap;\">
  1165.                                                             {{ i.res_distance }}
  1166.                                                         </td>
  1167.                                                         <td style=\"white-space: nowrap;\"  class=\"none\">
  1168.                                                             {% if i.res_distance > 2399  %}
  1169.                                                                 Lang
  1170.                                                             {% elseif i.res_distance > 1799 %}
  1171.                                                                 Mellom
  1172.                                                             {% else %}
  1173.                                                                 Sprint
  1174.                                                             {% endif %}
  1175.                                                         </td>
  1176.                                                         <td style=\"white-space: nowrap; text-align: center;\">
  1177.                                                             {{ i.rac_startmethod_code|upper}}
  1178.                                                         </td>
  1179.                                                         <td style=\"white-space: nowrap;\"  class=\"\">
  1180.                                                             {% if i.rac_startmethod_code == 'v'  %}
  1181.                                                                 Volte
  1182.                                                             {% else %}
  1183.                                                                 Auto
  1184.                                                             {% endif %}
  1185.                                                         </td>
  1186.                                                         <td style=\"text-align:center;white-space: nowrap;\">
  1187.                                                             {{ pl }}
  1188.                                                         </td>
  1189.                                                         <td style=\"white-space: nowrap;\">
  1190.                                                             {{ i.res_displaykmtime }}
  1191.                                                         </td>
  1192.                                                         <td style=\"text-align:right;white-space: nowrap;\">
  1193.                                                             {{ arr[c]|number_format(0, ',', ' ') }}
  1194.                                                         </td>
  1195.                                                         <td style=\"text-align:center;white-space: nowrap;\">
  1196.                                                             {{ i.res_odds }}
  1197.                                                         </td>
  1198.                                                         <td style=\"text-align:left;white-space: nowrap;\">
  1199.                                                             {{ i.trc_condition }}
  1200.                                                         </td>
  1201.                                                         <td style=\"white-space: nowrap;\">
  1202.                                                             {{ i.sta_pass500 }}-{{ i.sta_pass1000 }}
  1203.                                                             {% if i.sta_pass500 %}
  1204. <!-- COULD BE HERE -->
  1205.                                                             {% endif %}
  1206.                                                         </td>
  1207.                                                         <td style=\"white-space: nowrap;text-align: center\">
  1208.                                                             {% if i.rac_monterace %}
  1209.                                                                 <i class=\"fas fa-times\"></i>
  1210.                                                             {% endif %}
  1211.                                                         </td>
  1212.                                                         <td>{{ i.sta_comment }}</td>
  1213.                                                     </tr>
  1214.                                                    {% set c = c+1 %}
  1215.                                                 {% endfor %}
  1216.                                                 </tbody>
  1217.                                             </table>
  1218.                                         </div>
  1219.                                     </div>
  1220.                                 </div>
  1221.                             </div>
  1222.                         {%  endfor %}
  1223.                         {% endif %}
  1224.                     </div>
  1225.                 </div>
  1226.             </div>
  1227.         </div>
  1228.     </section>
  1229. {% endblock %}
  1230. {% block javascripts_end %}
  1231.     {{ parent() }}
  1232.     <script src=\"https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js\"></script>
  1233.     <script src=\"https://cdn.datatables.net/responsive/2.2.3/js/dataTables.responsive.min.js\"></script>
  1234.     <script>
  1235.         \$(document).ready(function() {
  1236.             \$('#dtHorses').DataTable( {
  1237.                 responsive: {
  1238.                     details: {
  1239.                         display: \$.fn.dataTable.Responsive.display.childRowImmediate,
  1240.                         type: 'none',
  1241.                         target: ''
  1242.                     }
  1243.                 },
  1244.                 order: [[ 0, \"desc\" ]],
  1245.                 dom: 'Bfrtip',
  1246.                 language: {
  1247.                     buttons: {
  1248.                         pageLength: {
  1249.                             _: \"Vis %d\",
  1250.                             '-1': \"Alle\"
  1251.                         }
  1252.                     }
  1253.                 },
  1254.                 paging: false,
  1255.                 info: false,
  1256.                 pageLength: -1,
  1257.                 oLanguage: {
  1258.                     \"sSearch\": \"\"
  1259.                 },
  1260.                 columnDefs: [
  1261.                     {
  1262.                         \"targets\": [ 1,3,8,10 ],
  1263.                         \"visible\": false,
  1264.                     }
  1265.                 ],
  1266.                 initComplete: function () {
  1267.                     \$i = 0;
  1268.                     this.api().columns().every( function () {
  1269.                         var title = '';
  1270.                         if(\$i == 1 || \$i == 3 || \$i == 8 || \$i == 10 || \$i == 15){
  1271.                             if(\$i == 1){
  1272.                                 title = 'Årstid';
  1273.                             } else if(\$i == 3) {
  1274.                                 title = 'Bane';
  1275.                             } else if(\$i == 8) {
  1276.                                 title = 'Distanse';
  1277.                             } else if (\$i == 10){
  1278.                                 title = 'Starttype';
  1279.                             } else if (\$i == 15){
  1280.                                 title = 'Baneforhold';
  1281.                             }
  1282.                             var column = this;
  1283.                             var select = \$('<select class=\"form-control\"><option value=\"\">'+title+'</option></select>')
  1284.                                 .appendTo( \$('.test'+\$i).empty() )
  1285.                                 //   .appendTo( \$(column.footer()).empty() )
  1286.                                 .on( 'change', function () {
  1287.                                     var val = \$.fn.dataTable.util.escapeRegex(
  1288.                                         \$(this).val()
  1289.                                     );
  1290.                                     column
  1291.                                         .search( val ? '^'+val+'\$' : '', true, false )
  1292.                                         .draw();
  1293.                                 } );
  1294.                             column.data().unique().sort().each( function ( d, j ) {
  1295.                                 select.append( '<option value=\"'+d+'\">'+d+'</option>' )
  1296.                             } );
  1297.                         }
  1298.                         \$i++;
  1299.                     } );
  1300.                 }
  1301.             });
  1302.         });
  1303.         /*
  1304.                 */
  1305.     </script>
  1306. {% endblock %}
  1307. ""pages/searchresult.html.twig""/var/www/html/hestefaktaDEV/templates/pages/searchresult.html.twig");
  1308.     }
  1309. }