var/cache/dev/twig/d8/d806d2b524061bd21cad2b0b5201b64e.php line 64

  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. /* Admin\index.html.twig */
  14. class __TwigTemplate_37aae1bd632120e2dab301b81c4f92fc 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.             'content' => [$this'block_content'],
  24.             'table' => [$this'block_table'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 5
  30.         return $this->loadTemplate((((isset($context["ajax"]) || array_key_exists("ajax"$context) ? $context["ajax"] : (function () { throw new RuntimeError('Variable "ajax" does not exist.'5$this->source); })())) ? ("Admin/admin.html.twig") : ("Admin/base.html.twig")), "Admin\\index.html.twig"5);
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Admin\\index.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Admin\\index.html.twig"));
  39.         // line 1
  40.         if ( !array_key_exists("ajax"$context)) {
  41.             // line 2
  42.             $context["ajax"] = false;
  43.         }
  44.         // line 5
  45.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 7
  52.     public function block_content($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  59.         // line 8
  60.         echo "<div class=\"subcontent\">
  61. \t";
  62.         // line 9
  63.         if ( !array_key_exists("entity"$context)) {
  64.             // line 10
  65.             echo "\t";
  66.             $context["entity"] = twig_get_attribute($this->env$this->sourcetwig_split_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_split_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'10$this->source); })()), "request", [], "any"falsefalsefalse10), "attributes", [], "any"falsefalsefalse10), "get", [=> "_controller"], "method"falsefalsefalse10), "Controller"), 1, [], "array"falsefalsefalse10), "\\"), 1, [], "array"falsefalsefalse10);
  67.             // line 11
  68.             echo "\t";
  69.         }
  70.         // line 12
  71.         echo "\t
  72. \t<div class=\"table-header flex row space bottom relative mblock\">
  73. \t";
  74.         // line 14
  75.         if ($this->env->getFunction('isMobile')->getCallable()()) {
  76.             // line 15
  77.             echo "\t\t<div class=\"flex row space bottom-5 top-5\">
  78. \t\t";
  79.             // line 16
  80.             $this->loadTemplate("Admin/search-box.html.twig""Admin\\index.html.twig"16)->display($context);
  81.             // line 17
  82.             echo "\t\t</div>
  83. \t\t<div class=\"flex row space\">
  84. \t\t";
  85.             // line 19
  86.             $this->loadTemplate("Admin/counter.html.twig""Admin\\index.html.twig"19)->display($context);
  87.             // line 20
  88.             echo "\t\t";
  89.             $this->loadTemplate("Admin/buttons.html.twig""Admin\\index.html.twig"20)->display($context);
  90.             // line 21
  91.             echo "\t\t</div>
  92. \t";
  93.         } else {
  94.             // line 23
  95.             echo "\t\t<div class=\"flex row space middle mblock\">
  96. \t\t\t<div>
  97. \t\t\t";
  98.             // line 25
  99.             $this->loadTemplate("Admin/search-box.html.twig""Admin\\index.html.twig"25)->display($context);
  100.             // line 26
  101.             echo "\t\t\t</div>
  102. \t\t\t<div class=\"left-40 mnomargin\">
  103. \t\t\t";
  104.             // line 28
  105.             $this->loadTemplate("Admin/counter.html.twig""Admin\\index.html.twig"28)->display($context);
  106.             // line 29
  107.             echo "\t\t\t</div>
  108. \t\t</div>
  109. \t\t<div>
  110. \t\t";
  111.             // line 32
  112.             $this->loadTemplate("Admin/buttons.html.twig""Admin\\index.html.twig"32)->display($context);
  113.             // line 33
  114.             echo "\t\t</div>
  115. \t";
  116.         }
  117.         // line 35
  118.         echo "\t</div>
  119. \t";
  120.         // line 37
  121.         $this->displayBlock('table'$context$blocks);
  122.         // line 48
  123.         echo "</div>
  124. ";
  125.         
  126.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  127.         
  128.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  129.     }
  130.     // line 37
  131.     public function block_table($context, array $blocks = [])
  132.     {
  133.         $macros $this->macros;
  134.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  135.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""table"));
  136.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  137.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""table"));
  138.         // line 38
  139.         echo "\t<div id=\"tablebox\">
  140. \t\t";
  141.         // line 39
  142.         if ((array_key_exists("view"$context) && (isset($context["view"]) || array_key_exists("view"$context) ? $context["view"] : (function () { throw new RuntimeError('Variable "view" does not exist.'39$this->source); })()))) {
  143.             // line 40
  144.             echo "\t\t\t";
  145.             $this->loadTemplate((isset($context["view"]) || array_key_exists("view"$context) ? $context["view"] : (function () { throw new RuntimeError('Variable "view" does not exist.'40$this->source); })()), "Admin\\index.html.twig"40)->display($context);
  146.             // line 41
  147.             echo "\t\t";
  148.         } else {
  149.             // line 42
  150.             echo "\t\t\t";
  151.             $this->loadTemplate((("" . (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'42$this->source); })())) . ((((array_key_exists("isMobile"$context) && (isset($context["isMobile"]) || array_key_exists("isMobile"$context) ? $context["isMobile"] : (function () { throw new RuntimeError('Variable "isMobile" does not exist.'42$this->source); })())) && $this->env->getFunction('isMobile')->getCallable()())) ? (((array_key_exists("mobileView"$context)) ? ((isset($context["mobileView"]) || array_key_exists("mobileView"$context) ? $context["mobileView"] : (function () { throw new RuntimeError('Variable "mobileView" does not exist.'42$this->source); })())) : ("/mobile-list.html.twig"))) : ("/list.html.twig"))), "Admin\\index.html.twig"42)->display($context);
  152.             // line 43
  153.             echo "\t\t";
  154.         }
  155.         // line 44
  156.         echo "\t</div>
  157. \t";
  158.         // line 45
  159.         $context["expanded"] = true;
  160.         // line 46
  161.         echo "\t";
  162.         $this->loadTemplate("Admin/counter.html.twig""Admin\\index.html.twig"46)->display($context);
  163.         // line 47
  164.         echo "\t";
  165.         
  166.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  167.         
  168.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  169.     }
  170.     public function getTemplateName()
  171.     {
  172.         return "Admin\\index.html.twig";
  173.     }
  174.     public function isTraitable()
  175.     {
  176.         return false;
  177.     }
  178.     public function getDebugInfo()
  179.     {
  180.         return array (  184 => 47,  181 => 46,  179 => 45,  176 => 44,  173 => 43,  170 => 42,  167 => 41,  164 => 40,  162 => 39,  159 => 38,  149 => 37,  138 => 48,  136 => 37,  132 => 35,  128 => 33,  126 => 32,  121 => 29,  119 => 28,  115 => 26,  113 => 25,  109 => 23,  105 => 21,  102 => 20,  100 => 19,  96 => 17,  94 => 16,  91 => 15,  89 => 14,  85 => 12,  82 => 11,  79 => 10,  77 => 9,  74 => 8,  64 => 7,  54 => 5,  51 => 2,  49 => 1,  36 => 5,);
  181.     }
  182.     public function getSourceContext()
  183.     {
  184.         return new Source("{% if ajax is not defined %}
  185. {% set ajax = false %}
  186. {% endif %}
  187. {% extends ajax ? 'Admin/admin.html.twig' : 'Admin/base.html.twig' %}
  188. {% block content %}
  189. <div class=\"subcontent\">
  190. \t{% if entity is not defined %}
  191. \t{% set entity = app.request.attributes.get(\"_controller\")|split(\"Controller\")[1]|split(\"\\\\\")[1] %}
  192. \t{% endif %}
  193. \t
  194. \t<div class=\"table-header flex row space bottom relative mblock\">
  195. \t{% if isMobile() %}
  196. \t\t<div class=\"flex row space bottom-5 top-5\">
  197. \t\t{% include('Admin/search-box.html.twig') %}
  198. \t\t</div>
  199. \t\t<div class=\"flex row space\">
  200. \t\t{% include('Admin/counter.html.twig') %}
  201. \t\t{% include('Admin/buttons.html.twig') %}
  202. \t\t</div>
  203. \t{% else %}
  204. \t\t<div class=\"flex row space middle mblock\">
  205. \t\t\t<div>
  206. \t\t\t{% include('Admin/search-box.html.twig') %}
  207. \t\t\t</div>
  208. \t\t\t<div class=\"left-40 mnomargin\">
  209. \t\t\t{% include('Admin/counter.html.twig') %}
  210. \t\t\t</div>
  211. \t\t</div>
  212. \t\t<div>
  213. \t\t{% include('Admin/buttons.html.twig') %}
  214. \t\t</div>
  215. \t{% endif %}
  216. \t</div>
  217. \t{% block table %}
  218. \t<div id=\"tablebox\">
  219. \t\t{% if view is defined and view %}
  220. \t\t\t{% include(view) %}
  221. \t\t{% else %}
  222. \t\t\t{% include(''~entity~((isMobile is defined and isMobile and isMobile()) ? mobileView is defined ? mobileView : '/mobile-list.html.twig' : '/list.html.twig')) %}
  223. \t\t{% endif %}
  224. \t</div>
  225. \t{% set expanded = true %}
  226. \t{% include('Admin/counter.html.twig') %}
  227. \t{% endblock %}
  228. </div>
  229. {% endblock %}
  230. ""Admin\\index.html.twig""/home/olasoftnka/asin/templates/Admin/index.html.twig");
  231.     }
  232. }