var/cache/dev/twig/42/42d1f988fe7625584ae9a0cae06febc0.php line 40

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. /* @SonataAdmin/Core/dashboard.html.twig */
  14. class __TwigTemplate_a14c373ebe32a40931edc25803b8b642 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.             'title' => [$this'block_title'],
  24.             'breadcrumb' => [$this'block_breadcrumb'],
  25.             'content' => [$this'block_content'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 12
  31.         return $this->loadTemplate((isset($context["base_template"]) || array_key_exists("base_template"$context) ? $context["base_template"] : (function () { throw new RuntimeError('Variable "base_template" does not exist.'12$this->source); })()), "@SonataAdmin/Core/dashboard.html.twig"12);
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SonataAdmin/Core/dashboard.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SonataAdmin/Core/dashboard.html.twig"));
  40.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 14
  47.     public function block_title($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("title_dashboard", [], "SonataAdminBundle"), "html"nulltrue);
  55.         
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  57.         
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  59.     }
  60.     // line 15
  61.     public function block_breadcrumb($context, array $blocks = [])
  62.     {
  63.         $macros $this->macros;
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  68.         
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  70.         
  71.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  72.     }
  73.     // line 16
  74.     public function block_content($context, array $blocks = [])
  75.     {
  76.         $macros $this->macros;
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  80.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  81.         // line 17
  82.         echo "
  83.     ";
  84.         // line 18
  85.         $context["has_left"] = false;
  86.         // line 19
  87.         echo "    ";
  88.         $context['_parent'] = $context;
  89.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'19$this->source); })()), "left", [], "any"falsefalsefalse19));
  90.         foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
  91.             // line 20
  92.             echo "        ";
  93.             if (( !(isset($context["has_left"]) || array_key_exists("has_left"$context) ? $context["has_left"] : (function () { throw new RuntimeError('Variable "has_left" does not exist.'20$this->source); })()) && ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["block"], "roles", [], "any"falsefalsefalse20)) == 0) || $this->env->getRuntime('Sonata\AdminBundle\Twig\SecurityRuntime')->isGrantedAffirmative(twig_get_attribute($this->env$this->source$context["block"], "roles", [], "any"falsefalsefalse20))))) {
  94.                 // line 21
  95.                 echo "            ";
  96.                 $context["has_left"] = true;
  97.                 // line 22
  98.                 echo "        ";
  99.             }
  100.             // line 23
  101.             echo "    ";
  102.         }
  103.         $_parent $context['_parent'];
  104.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
  105.         $context array_intersect_key($context$_parent) + $_parent;
  106.         // line 24
  107.         echo "
  108.     ";
  109.         // line 25
  110.         $context["has_center"] = false;
  111.         // line 26
  112.         echo "    ";
  113.         $context['_parent'] = $context;
  114.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'26$this->source); })()), "center", [], "any"falsefalsefalse26));
  115.         foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
  116.             // line 27
  117.             echo "        ";
  118.             if (( !(isset($context["has_center"]) || array_key_exists("has_center"$context) ? $context["has_center"] : (function () { throw new RuntimeError('Variable "has_center" does not exist.'27$this->source); })()) && ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["block"], "roles", [], "any"falsefalsefalse27)) == 0) || $this->env->getRuntime('Sonata\AdminBundle\Twig\SecurityRuntime')->isGrantedAffirmative(twig_get_attribute($this->env$this->source$context["block"], "roles", [], "any"falsefalsefalse27))))) {
  119.                 // line 28
  120.                 echo "            ";
  121.                 $context["has_center"] = true;
  122.                 // line 29
  123.                 echo "        ";
  124.             }
  125.             // line 30
  126.             echo "    ";
  127.         }
  128.         $_parent $context['_parent'];
  129.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
  130.         $context array_intersect_key($context$_parent) + $_parent;
  131.         // line 31
  132.         echo "
  133.     ";
  134.         // line 32
  135.         $context["has_right"] = false;
  136.         // line 33
  137.         echo "    ";
  138.         $context['_parent'] = $context;
  139.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'33$this->source); })()), "right", [], "any"falsefalsefalse33));
  140.         foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
  141.             // line 34
  142.             echo "        ";
  143.             if (( !(isset($context["has_right"]) || array_key_exists("has_right"$context) ? $context["has_right"] : (function () { throw new RuntimeError('Variable "has_right" does not exist.'34$this->source); })()) && ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["block"], "roles", [], "any"falsefalsefalse34)) == 0) || $this->env->getRuntime('Sonata\AdminBundle\Twig\SecurityRuntime')->isGrantedAffirmative(twig_get_attribute($this->env$this->source$context["block"], "roles", [], "any"falsefalsefalse34))))) {
  144.                 // line 35
  145.                 echo "            ";
  146.                 $context["has_right"] = true;
  147.                 // line 36
  148.                 echo "        ";
  149.             }
  150.             // line 37
  151.             echo "    ";
  152.         }
  153.         $_parent $context['_parent'];
  154.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
  155.         $context array_intersect_key($context$_parent) + $_parent;
  156.         // line 38
  157.         echo "
  158.     ";
  159.         // line 39
  160.         $context["has_top"] = false;
  161.         // line 40
  162.         echo "    ";
  163.         $context['_parent'] = $context;
  164.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'40$this->source); })()), "top", [], "any"falsefalsefalse40));
  165.         foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
  166.             // line 41
  167.             echo "        ";
  168.             if (( !(isset($context["has_top"]) || array_key_exists("has_top"$context) ? $context["has_top"] : (function () { throw new RuntimeError('Variable "has_top" does not exist.'41$this->source); })()) && ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["block"], "roles", [], "any"falsefalsefalse41)) == 0) || $this->env->getRuntime('Sonata\AdminBundle\Twig\SecurityRuntime')->isGrantedAffirmative(twig_get_attribute($this->env$this->source$context["block"], "roles", [], "any"falsefalsefalse41))))) {
  169.                 // line 42
  170.                 echo "            ";
  171.                 $context["has_top"] = true;
  172.                 // line 43
  173.                 echo "        ";
  174.             }
  175.             // line 44
  176.             echo "    ";
  177.         }
  178.         $_parent $context['_parent'];
  179.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
  180.         $context array_intersect_key($context$_parent) + $_parent;
  181.         // line 45
  182.         echo "
  183.     ";
  184.         // line 46
  185.         $context["has_bottom"] = false;
  186.         // line 47
  187.         echo "    ";
  188.         $context['_parent'] = $context;
  189.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'47$this->source); })()), "bottom", [], "any"falsefalsefalse47));
  190.         foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
  191.             // line 48
  192.             echo "        ";
  193.             if (( !(isset($context["has_bottom"]) || array_key_exists("has_bottom"$context) ? $context["has_bottom"] : (function () { throw new RuntimeError('Variable "has_bottom" does not exist.'48$this->source); })()) && ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["block"], "roles", [], "any"falsefalsefalse48)) == 0) || $this->env->getRuntime('Sonata\AdminBundle\Twig\SecurityRuntime')->isGrantedAffirmative(twig_get_attribute($this->env$this->source$context["block"], "roles", [], "any"falsefalsefalse48))))) {
  194.                 // line 49
  195.                 echo "            ";
  196.                 $context["has_bottom"] = true;
  197.                 // line 50
  198.                 echo "        ";
  199.             }
  200.             // line 51
  201.             echo "    ";
  202.         }
  203.         $_parent $context['_parent'];
  204.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
  205.         $context array_intersect_key($context$_parent) + $_parent;
  206.         // line 52
  207.         echo "
  208.     ";
  209.         // line 53
  210.         echo $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->renderEvent("sonata.admin.dashboard.top");
  211.         echo "
  212.     ";
  213.         // line 55
  214.         if ((isset($context["has_top"]) || array_key_exists("has_top"$context) ? $context["has_top"] : (function () { throw new RuntimeError('Variable "has_top" does not exist.'55$this->source); })())) {
  215.             // line 56
  216.             echo "        <div class=\"row\">
  217.             ";
  218.             // line 57
  219.             $context['_parent'] = $context;
  220.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'57$this->source); })()), "top", [], "any"falsefalsefalse57));
  221.             foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
  222.                 // line 58
  223.                 echo "                ";
  224.                 if (((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["block"], "roles", [], "any"falsefalsefalse58)) == 0) || $this->env->getRuntime('Sonata\AdminBundle\Twig\SecurityRuntime')->isGrantedAffirmative(twig_get_attribute($this->env$this->source$context["block"], "roles", [], "any"falsefalsefalse58)))) {
  225.                     // line 59
  226.                     echo "                    <div class=\"";
  227.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["block"], "class", [], "any"falsefalsefalse59), "html"nulltrue);
  228.                     echo "\">
  229.                         ";
  230.                     // line 60
  231.                     echo $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->render(["type" => twig_get_attribute($this->env$this->source$context["block"], "type", [], "any"falsefalsefalse60), "settings" => twig_get_attribute($this->env$this->source$context["block"], "settings", [], "any"falsefalsefalse60)]);
  232.                     echo "
  233.                     </div>
  234.                 ";
  235.                 }
  236.                 // line 63
  237.                 echo "            ";
  238.             }
  239.             $_parent $context['_parent'];
  240.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
  241.             $context array_intersect_key($context$_parent) + $_parent;
  242.             // line 64
  243.             echo "        </div>
  244.     ";
  245.         }
  246.         // line 66
  247.         echo "
  248.     <div class=\"row\">
  249.         ";
  250.         // line 68
  251.         $context["width_left"] = 4;
  252.         // line 69
  253.         echo "        ";
  254.         $context["width_right"] = 4;
  255.         // line 70
  256.         echo "        ";
  257.         $context["width_center"] = 4;
  258.         // line 71
  259.         echo "
  260.         ";
  261.         // line 73
  262.         echo "        ";
  263.         if ( !(isset($context["has_center"]) || array_key_exists("has_center"$context) ? $context["has_center"] : (function () { throw new RuntimeError('Variable "has_center" does not exist.'73$this->source); })())) {
  264.             // line 74
  265.             echo "            ";
  266.             $context["width_left"] = 6;
  267.             // line 75
  268.             echo "            ";
  269.             $context["width_right"] = 6;
  270.             // line 76
  271.             echo "        ";
  272.         }
  273.         // line 77
  274.         echo "
  275.         ";
  276.         // line 79
  277.         echo "        ";
  278.         if (( !(isset($context["has_left"]) || array_key_exists("has_left"$context) ? $context["has_left"] : (function () { throw new RuntimeError('Variable "has_left" does not exist.'79$this->source); })()) &&  !(isset($context["has_right"]) || array_key_exists("has_right"$context) ? $context["has_right"] : (function () { throw new RuntimeError('Variable "has_right" does not exist.'79$this->source); })()))) {
  279.             // line 80
  280.             echo "            ";
  281.             $context["width_center"] = 12;
  282.             // line 81
  283.             echo "        ";
  284.         }
  285.         // line 82
  286.         echo "
  287.         ";
  288.         // line 84
  289.         echo "        ";
  290.         if (((isset($context["has_left"]) || array_key_exists("has_left"$context) ? $context["has_left"] : (function () { throw new RuntimeError('Variable "has_left" does not exist.'84$this->source); })()) || (isset($context["has_right"]) || array_key_exists("has_right"$context) ? $context["has_right"] : (function () { throw new RuntimeError('Variable "has_right" does not exist.'84$this->source); })()))) {
  291.             // line 85
  292.             echo "        <div class=\"col-md-";
  293.             echo twig_escape_filter($this->env, (isset($context["width_left"]) || array_key_exists("width_left"$context) ? $context["width_left"] : (function () { throw new RuntimeError('Variable "width_left" does not exist.'85$this->source); })()), "html"nulltrue);
  294.             echo "\">
  295.             ";
  296.             // line 86
  297.             $context['_parent'] = $context;
  298.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'86$this->source); })()), "left", [], "any"falsefalsefalse86));
  299.             foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
  300.                 // line 87
  301.                 echo "                ";
  302.                 if (((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["block"], "roles", [], "any"falsefalsefalse87)) == 0) || $this->env->getRuntime('Sonata\AdminBundle\Twig\SecurityRuntime')->isGrantedAffirmative(twig_get_attribute($this->env$this->source$context["block"], "roles", [], "any"falsefalsefalse87)))) {
  303.                     // line 88
  304.                     echo "                    ";
  305.                     echo $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->render(["type" => twig_get_attribute($this->env$this->source$context["block"], "type", [], "any"falsefalsefalse88), "settings" => twig_get_attribute($this->env$this->source$context["block"], "settings", [], "any"falsefalsefalse88)]);
  306.                     echo "
  307.                 ";
  308.                 }
  309.                 // line 90
  310.                 echo "            ";
  311.             }
  312.             $_parent $context['_parent'];
  313.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
  314.             $context array_intersect_key($context$_parent) + $_parent;
  315.             // line 91
  316.             echo "        </div>
  317.         ";
  318.         }
  319.         // line 93
  320.         echo "
  321.         ";
  322.         // line 94
  323.         if ((isset($context["has_center"]) || array_key_exists("has_center"$context) ? $context["has_center"] : (function () { throw new RuntimeError('Variable "has_center" does not exist.'94$this->source); })())) {
  324.             // line 95
  325.             echo "            <div class=\"col-md-";
  326.             echo twig_escape_filter($this->env, (isset($context["width_center"]) || array_key_exists("width_center"$context) ? $context["width_center"] : (function () { throw new RuntimeError('Variable "width_center" does not exist.'95$this->source); })()), "html"nulltrue);
  327.             echo "\">
  328.                 ";
  329.             // line 96
  330.             $context['_parent'] = $context;
  331.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'96$this->source); })()), "center", [], "any"falsefalsefalse96));
  332.             foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
  333.                 // line 97
  334.                 echo "                    ";
  335.                 if (((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["block"], "roles", [], "any"falsefalsefalse97)) == 0) || $this->env->getRuntime('Sonata\AdminBundle\Twig\SecurityRuntime')->isGrantedAffirmative(twig_get_attribute($this->env$this->source$context["block"], "roles", [], "any"falsefalsefalse97)))) {
  336.                     // line 98
  337.                     echo "                        ";
  338.                     echo $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->render(["type" => twig_get_attribute($this->env$this->source$context["block"], "type", [], "any"falsefalsefalse98), "settings" => twig_get_attribute($this->env$this->source$context["block"], "settings", [], "any"falsefalsefalse98)]);
  339.                     echo "
  340.                     ";
  341.                 }
  342.                 // line 100
  343.                 echo "                ";
  344.             }
  345.             $_parent $context['_parent'];
  346.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
  347.             $context array_intersect_key($context$_parent) + $_parent;
  348.             // line 101
  349.             echo "            </div>
  350.         ";
  351.         }
  352.         // line 103
  353.         echo "
  354.         ";
  355.         // line 105
  356.         echo "        ";
  357.         if (((isset($context["has_left"]) || array_key_exists("has_left"$context) ? $context["has_left"] : (function () { throw new RuntimeError('Variable "has_left" does not exist.'105$this->source); })()) || (isset($context["has_right"]) || array_key_exists("has_right"$context) ? $context["has_right"] : (function () { throw new RuntimeError('Variable "has_right" does not exist.'105$this->source); })()))) {
  358.             // line 106
  359.             echo "         <div class=\"col-md-";
  360.             echo twig_escape_filter($this->env, (isset($context["width_right"]) || array_key_exists("width_right"$context) ? $context["width_right"] : (function () { throw new RuntimeError('Variable "width_right" does not exist.'106$this->source); })()), "html"nulltrue);
  361.             echo "\">
  362.             ";
  363.             // line 107
  364.             $context['_parent'] = $context;
  365.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'107$this->source); })()), "right", [], "any"falsefalsefalse107));
  366.             foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
  367.                 // line 108
  368.                 echo "                ";
  369.                 if (((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["block"], "roles", [], "any"falsefalsefalse108)) == 0) || $this->env->getRuntime('Sonata\AdminBundle\Twig\SecurityRuntime')->isGrantedAffirmative(twig_get_attribute($this->env$this->source$context["block"], "roles", [], "any"falsefalsefalse108)))) {
  370.                     // line 109
  371.                     echo "                    ";
  372.                     echo $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->render(["type" => twig_get_attribute($this->env$this->source$context["block"], "type", [], "any"falsefalsefalse109), "settings" => twig_get_attribute($this->env$this->source$context["block"], "settings", [], "any"falsefalsefalse109)]);
  373.                     echo "
  374.                 ";
  375.                 }
  376.                 // line 111
  377.                 echo "            ";
  378.             }
  379.             $_parent $context['_parent'];
  380.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
  381.             $context array_intersect_key($context$_parent) + $_parent;
  382.             // line 112
  383.             echo "        </div>
  384.         ";
  385.         }
  386.         // line 114
  387.         echo "    </div>
  388.     ";
  389.         // line 116
  390.         if ((isset($context["has_bottom"]) || array_key_exists("has_bottom"$context) ? $context["has_bottom"] : (function () { throw new RuntimeError('Variable "has_bottom" does not exist.'116$this->source); })())) {
  391.             // line 117
  392.             echo "        <div class=\"row\">
  393.             ";
  394.             // line 118
  395.             $context['_parent'] = $context;
  396.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'118$this->source); })()), "bottom", [], "any"falsefalsefalse118));
  397.             foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
  398.                 // line 119
  399.                 echo "                ";
  400.                 if (((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["block"], "roles", [], "any"falsefalsefalse119)) == 0) || $this->env->getRuntime('Sonata\AdminBundle\Twig\SecurityRuntime')->isGrantedAffirmative(twig_get_attribute($this->env$this->source$context["block"], "roles", [], "any"falsefalsefalse119)))) {
  401.                     // line 120
  402.                     echo "                    <div class=\"";
  403.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["block"], "class", [], "any"falsefalsefalse120), "html"nulltrue);
  404.                     echo "\">
  405.                         ";
  406.                     // line 121
  407.                     echo $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->render(["type" => twig_get_attribute($this->env$this->source$context["block"], "type", [], "any"falsefalsefalse121), "settings" => twig_get_attribute($this->env$this->source$context["block"], "settings", [], "any"falsefalsefalse121)]);
  408.                     echo "
  409.                     </div>
  410.                 ";
  411.                 }
  412.                 // line 124
  413.                 echo "            ";
  414.             }
  415.             $_parent $context['_parent'];
  416.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
  417.             $context array_intersect_key($context$_parent) + $_parent;
  418.             // line 125
  419.             echo "        </div>
  420.     ";
  421.         }
  422.         // line 127
  423.         echo "
  424.     ";
  425.         // line 128
  426.         echo $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->renderEvent("sonata.admin.dashboard.bottom");
  427.         echo "
  428. ";
  429.         
  430.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  431.         
  432.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  433.     }
  434.     public function getTemplateName()
  435.     {
  436.         return "@SonataAdmin/Core/dashboard.html.twig";
  437.     }
  438.     public function isTraitable()
  439.     {
  440.         return false;
  441.     }
  442.     public function getDebugInfo()
  443.     {
  444.         return array (  452 => 128,  449 => 127,  445 => 125,  439 => 124,  433 => 121,  428 => 120,  425 => 119,  421 => 118,  418 => 117,  416 => 116,  412 => 114,  408 => 112,  402 => 111,  396 => 109,  393 => 108,  389 => 107,  384 => 106,  381 => 105,  378 => 103,  374 => 101,  368 => 100,  362 => 98,  359 => 97,  355 => 96,  350 => 95,  348 => 94,  345 => 93,  341 => 91,  335 => 90,  329 => 88,  326 => 87,  322 => 86,  317 => 85,  314 => 84,  311 => 82,  308 => 81,  305 => 80,  302 => 79,  299 => 77,  296 => 76,  293 => 75,  290 => 74,  287 => 73,  284 => 71,  281 => 70,  278 => 69,  276 => 68,  272 => 66,  268 => 64,  262 => 63,  256 => 60,  251 => 59,  248 => 58,  244 => 57,  241 => 56,  239 => 55,  234 => 53,  231 => 52,  225 => 51,  222 => 50,  219 => 49,  216 => 48,  211 => 47,  209 => 46,  206 => 45,  200 => 44,  197 => 43,  194 => 42,  191 => 41,  186 => 40,  184 => 39,  181 => 38,  175 => 37,  172 => 36,  169 => 35,  166 => 34,  161 => 33,  159 => 32,  156 => 31,  150 => 30,  147 => 29,  144 => 28,  141 => 27,  136 => 26,  134 => 25,  131 => 24,  125 => 23,  122 => 22,  119 => 21,  116 => 20,  111 => 19,  109 => 18,  106 => 17,  96 => 16,  78 => 15,  59 => 14,  37 => 12,);
  445.     }
  446.     public function getSourceContext()
  447.     {
  448.         return new Source("{#
  449. This file is part of the Sonata package.
  450. (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  451. For the full copyright and license information, please view the LICENSE
  452. file that was distributed with this source code.
  453. #}
  454. {% extends base_template %}
  455. {% block title %}{{ 'title_dashboard'|trans({}, 'SonataAdminBundle') }}{% endblock %}
  456. {% block breadcrumb %}{% endblock %}
  457. {% block content %}
  458.     {% set has_left = false %}
  459.     {% for block in blocks.left %}
  460.         {% if not has_left and (block.roles|length == 0 or is_granted_affirmative(block.roles)) %}
  461.             {% set has_left = true %}
  462.         {% endif %}
  463.     {% endfor %}
  464.     {% set has_center = false %}
  465.     {% for block in blocks.center %}
  466.         {% if not has_center and (block.roles|length == 0 or is_granted_affirmative(block.roles)) %}
  467.             {% set has_center = true %}
  468.         {% endif %}
  469.     {% endfor %}
  470.     {% set has_right = false %}
  471.     {% for block in blocks.right %}
  472.         {% if not has_right and (block.roles|length == 0 or is_granted_affirmative(block.roles)) %}
  473.             {% set has_right = true %}
  474.         {% endif %}
  475.     {% endfor %}
  476.     {% set has_top = false %}
  477.     {% for block in blocks.top %}
  478.         {% if not has_top and (block.roles|length == 0 or is_granted_affirmative(block.roles)) %}
  479.             {% set has_top = true %}
  480.         {% endif %}
  481.     {% endfor %}
  482.     {% set has_bottom = false %}
  483.     {% for block in blocks.bottom %}
  484.         {% if not has_bottom and (block.roles|length == 0 or is_granted_affirmative(block.roles)) %}
  485.             {% set has_bottom = true %}
  486.         {% endif %}
  487.     {% endfor %}
  488.     {{ sonata_block_render_event('sonata.admin.dashboard.top') }}
  489.     {% if has_top %}
  490.         <div class=\"row\">
  491.             {% for block in blocks.top %}
  492.                 {% if block.roles|length == 0 or is_granted_affirmative(block.roles) %}
  493.                     <div class=\"{{ block.class }}\">
  494.                         {{ sonata_block_render({ 'type': block.type, 'settings': block.settings}) }}
  495.                     </div>
  496.                 {% endif %}
  497.             {% endfor %}
  498.         </div>
  499.     {% endif %}
  500.     <div class=\"row\">
  501.         {% set width_left = 4 %}
  502.         {% set width_right = 4 %}
  503.         {% set width_center = 4 %}
  504.         {# if center block is not present we make left and right ones wider #}
  505.         {% if not has_center %}
  506.             {% set width_left = 6 %}
  507.             {% set width_right = 6 %}
  508.         {% endif %}
  509.         {# if there is no right and left block present we make center one full width #}
  510.         {% if not has_left and not has_right %}
  511.             {% set width_center = 12 %}
  512.         {% endif %}
  513.         {# don't show left column if only center one is present #}
  514.         {% if has_left or has_right %}
  515.         <div class=\"col-md-{{ width_left }}\">
  516.             {% for block in blocks.left %}
  517.                 {% if block.roles|length == 0 or is_granted_affirmative(block.roles) %}
  518.                     {{ sonata_block_render({ 'type': block.type, 'settings': block.settings}) }}
  519.                 {% endif %}
  520.             {% endfor %}
  521.         </div>
  522.         {% endif %}
  523.         {% if has_center %}
  524.             <div class=\"col-md-{{ width_center }}\">
  525.                 {% for block in blocks.center %}
  526.                     {% if block.roles|length == 0 or is_granted_affirmative(block.roles) %}
  527.                         {{ sonata_block_render({ 'type': block.type, 'settings': block.settings}) }}
  528.                     {% endif %}
  529.                 {% endfor %}
  530.             </div>
  531.         {% endif %}
  532.         {# don't show right column if only center one is present #}
  533.         {% if has_left or has_right %}
  534.          <div class=\"col-md-{{ width_right }}\">
  535.             {% for block in blocks.right %}
  536.                 {% if block.roles|length == 0 or is_granted_affirmative(block.roles) %}
  537.                     {{ sonata_block_render({ 'type': block.type, 'settings': block.settings}) }}
  538.                 {% endif %}
  539.             {% endfor %}
  540.         </div>
  541.         {% endif %}
  542.     </div>
  543.     {% if has_bottom %}
  544.         <div class=\"row\">
  545.             {% for block in blocks.bottom %}
  546.                 {% if block.roles|length == 0 or is_granted_affirmative(block.roles) %}
  547.                     <div class=\"{{ block.class }}\">
  548.                         {{ sonata_block_render({ 'type': block.type, 'settings': block.settings}) }}
  549.                     </div>
  550.                 {% endif %}
  551.             {% endfor %}
  552.         </div>
  553.     {% endif %}
  554.     {{ sonata_block_render_event('sonata.admin.dashboard.bottom') }}
  555. {% endblock %}
  556. ""@SonataAdmin/Core/dashboard.html.twig""/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/vendor/sonata-project/admin-bundle/src/Resources/views/Core/dashboard.html.twig");
  557.     }
  558. }