var/cache/dev/twig/4c/4ce4971c9564f4d834a0bd8f01f47dee3837e019233cd3d4a2ccd772359bfbc9.php line 225

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* Global/header.html.twig */
  15. class __TwigTemplate_0c39b23ed971b2765f8d18738ca6a8f9cc8aa73f639e42c5ef705cfce8b57795 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->parent false;
  24.         $this->blocks = [
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Global/header.html.twig"));
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Global/header.html.twig"));
  34.         // line 1
  35.         yield "<!-- start: header -->
  36. <header class=\"header\">
  37.     <div class=\"logo-container\">
  38.         <a href=\"../4.0.0\" class=\"logo\">
  39.             <img src=\"";
  40.         // line 5
  41.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/logo.png"), "html"nulltrue);
  42.         yield "\" width=\"75\" height=\"35\" alt=\"Porto Admin\" />
  43.         </a>
  44.         <div class=\"d-md-none toggle-sidebar-left\" data-toggle-class=\"sidebar-left-opened\" data-target=\"html\" data-fire-event=\"sidebar-left-opened\">
  45.             <i class=\"fas fa-bars\" aria-label=\"Toggle sidebar\"></i>
  46.         </div>
  47.     </div>
  48.     <!-- start: search & user box -->
  49.     <div class=\"header-right\">
  50.      
  51.         <span class=\"separator\"></span>
  52. \t\t";
  53.         // line 15
  54.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  55.             // line 16
  56.             yield "        <ul class=\"notifications\">
  57.             <li>
  58.                 <a href=\"#\" class=\"dropdown-toggle notification-icon\" data-bs-toggle=\"dropdown\">
  59.                     <i class=\"bx bx-list-ol\"></i>
  60.                     <span class=\"badge\">3</span>
  61.                 </a>
  62.                 <div class=\"dropdown-menu notification-menu large\">
  63.                     <div class=\"notification-title\">
  64.                         <span class=\"float-end badge badge-default\">3</span>
  65.                         Prestation
  66.                     </div>
  67.                     <div class=\"content\">
  68.                         <ul>
  69.                             <li>
  70.                                 <p class=\"clearfix mb-1\">
  71.                                     <span class=\"message float-start\">Prestation Payée</span>
  72.                                     ";
  73.             // line 32
  74.             if ((=== CoreExtension::compare(CoreExtension::getAttribute($this->env$this->source, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'32$this->source); })()), "getSumPrestation", [["etat" => "Total"]], "method"falsefalsefalse32), 0))) {
  75.                 // line 33
  76.                 yield "                                        <span class=\"message float-end text-dark\">";
  77.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->formatNumber(((CoreExtension::getAttribute($this->env$this->source, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'33$this->source); })()), "getSumPrestation", [["etat" => "Payer"]], "method"falsefalsefalse33) / 1) * 100), array(), "percent"), "html"nulltrue);
  78.                 yield "</span>
  79.                                     ";
  80.             } else {
  81.                 // line 36
  82.                 yield "                                        <span class=\"message float-end text-dark\">";
  83.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->formatNumber(((CoreExtension::getAttribute($this->env$this->source, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'36$this->source); })()), "getSumPrestation", [["etat" => "Payer"]], "method"falsefalsefalse36) / CoreExtension::getAttribute($this->env$this->source, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'36$this->source); })()), "getSumPrestation", [["etat" => "Total"]], "method"falsefalsefalse36)) * 100), array(), "percent"), "html"nulltrue);
  84.                 yield "</span>
  85.                                     ";
  86.             }
  87.             // line 38
  88.             yield "                                </p>
  89.                                 <div class=\"progress progress-xs light\">
  90.                                     ";
  91.             // line 40
  92.             if ((=== CoreExtension::compare(CoreExtension::getAttribute($this->env$this->source, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'40$this->source); })()), "getSumPrestation", [["etat" => "Total"]], "method"falsefalsefalse40), 0))) {
  93.                 // line 41
  94.                 yield "                                        <div class=\"progress-bar\" role=\"progressbar\" aria-valuenow=\"60\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width:";
  95.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'41$this->source); })()), "getSumPrestation", [["etat" => "Payer"]], "method"falsefalsefalse41) / 1) * 100), "html"nulltrue);
  96.                 yield "%;\"></div>
  97.                                     ";
  98.             } else {
  99.                 // line 43
  100.                 yield "                                        <div class=\"progress-bar\" role=\"progressbar\" aria-valuenow=\"60\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width:";
  101.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'43$this->source); })()), "getSumPrestation", [["etat" => "Payer"]], "method"falsefalsefalse43) / CoreExtension::getAttribute($this->env$this->source, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'43$this->source); })()), "getSumPrestation", [["etat" => "Total"]], "method"falsefalsefalse43)) * 100), "html"nulltrue);
  102.                 yield "%;\"></div>
  103.                                     ";
  104.             }
  105.             // line 46
  106.             yield "                                </div>
  107.                             </li>
  108.                             <li>
  109.                                 <p class=\"clearfix mb-1\">
  110.                                     <span class=\"message float-start\">Prestation validée</span>
  111.                                     ";
  112.             // line 51
  113.             if ((=== CoreExtension::compare(CoreExtension::getAttribute($this->env$this->source, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'51$this->source); })()), "getSumPrestation", [["etat" => "Total"]], "method"falsefalsefalse51), 0))) {
  114.                 // line 52
  115.                 yield "                                        <span class=\"message float-end text-dark\">";
  116.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->formatNumber(((CoreExtension::getAttribute($this->env$this->source, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'52$this->source); })()), "getSumPrestation", [["etat" => "Valider"]], "method"falsefalsefalse52) / 1) * 100), array(), "percent"), "html"nulltrue);
  117.                 yield "</span>
  118.                                     ";
  119.             } else {
  120.                 // line 55
  121.                 yield "                                        <span class=\"message float-end text-dark\">";
  122.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->formatNumber(((CoreExtension::getAttribute($this->env$this->source, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'55$this->source); })()), "getSumPrestation", [["etat" => "Valider"]], "method"falsefalsefalse55) / CoreExtension::getAttribute($this->env$this->source, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'55$this->source); })()), "getSumPrestation", [["etat" => "Total"]], "method"falsefalsefalse55)) * 100), array(), "percent"), "html"nulltrue);
  123.                 yield "</span>
  124.                                     ";
  125.             }
  126.             // line 56
  127.             yield "                                </p>
  128.                                 <div class=\"progress progress-xs light\">
  129.                                     ";
  130.             // line 58
  131.             if ((=== CoreExtension::compare(CoreExtension::getAttribute($this->env$this->source, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'58$this->source); })()), "getSumPrestation", [["etat" => "Total"]], "method"falsefalsefalse58), 0))) {
  132.                 // line 59
  133.                 yield "                                        <div class=\"progress-bar\" role=\"progressbar\" aria-valuenow=\"60\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width:";
  134.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'59$this->source); })()), "getSumPrestation", [["etat" => "Valider"]], "method"falsefalsefalse59) / 1) * 100), "html"nulltrue);
  135.                 yield "%;\"></div>
  136.                                     ";
  137.             } else {
  138.                 // line 61
  139.                 yield "                                        <div class=\"progress-bar\" role=\"progressbar\" aria-valuenow=\"60\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width:";
  140.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'61$this->source); })()), "getSumPrestation", [["etat" => "Valider"]], "method"falsefalsefalse61) / CoreExtension::getAttribute($this->env$this->source, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'61$this->source); })()), "getSumPrestation", [["etat" => "Total"]], "method"falsefalsefalse61)) * 100), "html"nulltrue);
  141.                 yield "%;\"></div>
  142.                                     ";
  143.             }
  144.             // line 63
  145.             yield "                                </div>
  146.                             </li>
  147.                             <li>
  148.                                 <p class=\"clearfix mb-1\">
  149.                                     <span class=\"message float-start\">Prestation en cour</span>
  150.                                     ";
  151.             // line 68
  152.             if ((=== CoreExtension::compare(CoreExtension::getAttribute($this->env$this->source, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'68$this->source); })()), "getSumPrestation", [["etat" => "Total"]], "method"falsefalsefalse68), 0))) {
  153.                 // line 69
  154.                 yield "                                        <span class=\"message float-end text-dark\">";
  155.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->formatNumber(((CoreExtension::getAttribute($this->env$this->source, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'69$this->source); })()), "getSumPrestation", [["etat" => "cour"]], "method"falsefalsefalse69) / 1) * 100), array(), "percent"), "html"nulltrue);
  156.                 yield "</span>
  157.                                     ";
  158.             } else {
  159.                 // line 72
  160.                 yield "                                        <span class=\"message float-end text-dark\">";
  161.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->formatNumber(((CoreExtension::getAttribute($this->env$this->source, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'72$this->source); })()), "getSumPrestation", [["etat" => "cour"]], "method"falsefalsefalse72) / CoreExtension::getAttribute($this->env$this->source, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'72$this->source); })()), "getSumPrestation", [["etat" => "Total"]], "method"falsefalsefalse72)) * 100), array(), "percent"), "html"nulltrue);
  162.                 yield "</span>
  163.                                     ";
  164.             }
  165.             // line 73
  166.             yield "                                 </p>
  167.                                 <div class=\"progress progress-xs light mb-1\">
  168.                                     ";
  169.             // line 75
  170.             if ((=== CoreExtension::compare(CoreExtension::getAttribute($this->env$this->source, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'75$this->source); })()), "getSumPrestation", [["etat" => "Total"]], "method"falsefalsefalse75), 0))) {
  171.                 // line 76
  172.                 yield "                                        <div class=\"progress-bar\" role=\"progressbar\" aria-valuenow=\"60\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width:";
  173.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'76$this->source); })()), "getSumPrestation", [["etat" => "cour"]], "method"falsefalsefalse76) / 1) * 100), "html"nulltrue);
  174.                 yield "%;\"></div>
  175.                                     ";
  176.             } else {
  177.                 // line 78
  178.                 yield "                                        <div class=\"progress-bar\" role=\"progressbar\" aria-valuenow=\"60\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width:";
  179.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'78$this->source); })()), "getSumPrestation", [["etat" => "cour"]], "method"falsefalsefalse78) / CoreExtension::getAttribute($this->env$this->source, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'78$this->source); })()), "getSumPrestation", [["etat" => "Total"]], "method"falsefalsefalse78)) * 100), "html"nulltrue);
  180.                 yield "%;\"></div>
  181.                                     ";
  182.             }
  183.             // line 80
  184.             yield "                                 </div>
  185.                             </li>
  186.                         </ul>
  187.                     </div>
  188.                 </div>
  189.             </li>
  190.             
  191.         </ul>
  192. \t\t";
  193.         }
  194.         // line 90
  195.         yield "        <span class=\"separator\"></span>
  196.         <div id=\"userbox\" class=\"userbox\">
  197.             <a href=\"#\" data-bs-toggle=\"dropdown\">
  198.                 <figure class=\"profile-picture\">
  199.                     <img src=\"";
  200.         // line 94
  201.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/logged-user.jpg"), "html"nulltrue);
  202.         yield "\" alt=\"Joseph Doe\" class=\"rounded-circle\" data-lock-picture=\"";
  203.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/logged-user.jpg"), "html"nulltrue);
  204.         yield "\" />
  205.                 </figure>
  206.                 <div class=\"profile-info\" data-lock-name=\"John Doe\" data-lock-email=\"johndoe@okler.com\">
  207.                     <span class=\"name\">";
  208.         // line 97
  209.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["services"]) || array_key_exists("services"$context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.'97$this->source); })()), "getUser", [], "method"falsefalsefalse97), "username", [], "any"falsefalsefalse97), "html"nulltrue);
  210.         yield "</span>
  211.                     ";
  212.         // line 98
  213.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  214.             // line 99
  215.             yield "                        <span class=\"role\">Administrateur</span>
  216.                     ";
  217.         } else {
  218.             // line 101
  219.             yield "                        <span class=\"role\">Adhérent</span>
  220.                     ";
  221.         }
  222.         // line 103
  223.         yield "                </div>
  224.                 <i class=\"fa custom-caret\"></i>
  225.             </a>
  226.             <div class=\"dropdown-menu\">
  227.                 <ul class=\"list-unstyled mb-2\">
  228.                     <li class=\"divider\"></li>
  229.                     <li>
  230.                        
  231.                         <a role=\"menuitem\" tabindex=\"-1\" href=\"";
  232.         // line 111
  233.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_user");
  234.         yield "\"><i class=\"bx bx-user-circle\"></i> My Profile</a>
  235.                     </li>
  236.                     <li>
  237.                         <a role=\"menuitem\" tabindex=\"-1\" href=\"";
  238.         // line 115
  239.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  240.         yield "\"><i class=\"bx bx-power-off\"></i> Logout</a>
  241.                     </li>
  242.                 </ul>
  243.             </div>
  244.         </div>
  245.     </div>
  246.     <!-- end: search & user box -->
  247. </header>
  248. <!-- end: header -->";
  249.         
  250.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  251.         
  252.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  253.         return; yield '';
  254.     }
  255.     /**
  256.      * @codeCoverageIgnore
  257.      */
  258.     public function getTemplateName()
  259.     {
  260.         return "Global/header.html.twig";
  261.     }
  262.     /**
  263.      * @codeCoverageIgnore
  264.      */
  265.     public function isTraitable()
  266.     {
  267.         return false;
  268.     }
  269.     /**
  270.      * @codeCoverageIgnore
  271.      */
  272.     public function getDebugInfo()
  273.     {
  274.         return array (  256 => 115,  249 => 111,  239 => 103,  235 => 101,  231 => 99,  229 => 98,  225 => 97,  217 => 94,  211 => 90,  199 => 80,  192 => 78,  186 => 76,  184 => 75,  180 => 73,  174 => 72,  167 => 69,  165 => 68,  158 => 63,  151 => 61,  145 => 59,  143 => 58,  139 => 56,  133 => 55,  126 => 52,  124 => 51,  117 => 46,  110 => 43,  104 => 41,  102 => 40,  98 => 38,  92 => 36,  85 => 33,  83 => 32,  65 => 16,  63 => 15,  50 => 5,  44 => 1,);
  275.     }
  276.     public function getSourceContext()
  277.     {
  278.         return new Source("<!-- start: header -->
  279. <header class=\"header\">
  280.     <div class=\"logo-container\">
  281.         <a href=\"../4.0.0\" class=\"logo\">
  282.             <img src=\"{{ asset('build/images/logo.png')}}\" width=\"75\" height=\"35\" alt=\"Porto Admin\" />
  283.         </a>
  284.         <div class=\"d-md-none toggle-sidebar-left\" data-toggle-class=\"sidebar-left-opened\" data-target=\"html\" data-fire-event=\"sidebar-left-opened\">
  285.             <i class=\"fas fa-bars\" aria-label=\"Toggle sidebar\"></i>
  286.         </div>
  287.     </div>
  288.     <!-- start: search & user box -->
  289.     <div class=\"header-right\">
  290.      
  291.         <span class=\"separator\"></span>
  292. \t\t{% if is_granted('ROLE_ADMIN')%}
  293.         <ul class=\"notifications\">
  294.             <li>
  295.                 <a href=\"#\" class=\"dropdown-toggle notification-icon\" data-bs-toggle=\"dropdown\">
  296.                     <i class=\"bx bx-list-ol\"></i>
  297.                     <span class=\"badge\">3</span>
  298.                 </a>
  299.                 <div class=\"dropdown-menu notification-menu large\">
  300.                     <div class=\"notification-title\">
  301.                         <span class=\"float-end badge badge-default\">3</span>
  302.                         Prestation
  303.                     </div>
  304.                     <div class=\"content\">
  305.                         <ul>
  306.                             <li>
  307.                                 <p class=\"clearfix mb-1\">
  308.                                     <span class=\"message float-start\">Prestation Payée</span>
  309.                                     {% if services.getSumPrestation({'etat':'Total'})==0 %}
  310.                                         <span class=\"message float-end text-dark\">{{ ((services.getSumPrestation({'etat':'Payer'})/1)*100)|format_number(style='percent')   }}</span>
  311.                                     {% else %}
  312.                                         <span class=\"message float-end text-dark\">{{ ((services.getSumPrestation({'etat':'Payer'})/services.getSumPrestation({'etat':'Total'}))*100)|format_number(style='percent')   }}</span>
  313.                                     {% endif %}
  314.                                 </p>
  315.                                 <div class=\"progress progress-xs light\">
  316.                                     {% if services.getSumPrestation({'etat':'Total'})==0 %}
  317.                                         <div class=\"progress-bar\" role=\"progressbar\" aria-valuenow=\"60\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width:{{ (services.getSumPrestation({'etat':'Payer'})/1)*100 }}%;\"></div>
  318.                                     {% else %}
  319.                                         <div class=\"progress-bar\" role=\"progressbar\" aria-valuenow=\"60\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width:{{ (services.getSumPrestation({'etat':'Payer'})/services.getSumPrestation({'etat':'Total'}))*100 }}%;\"></div>
  320.                                     {% endif %}
  321.                                 </div>
  322.                             </li>
  323.                             <li>
  324.                                 <p class=\"clearfix mb-1\">
  325.                                     <span class=\"message float-start\">Prestation validée</span>
  326.                                     {% if services.getSumPrestation({'etat':'Total'})==0 %}
  327.                                         <span class=\"message float-end text-dark\">{{ ((services.getSumPrestation({'etat':'Valider'})/1)*100)|format_number(style='percent')   }}</span>
  328.                                     {% else %}
  329.                                         <span class=\"message float-end text-dark\">{{ ((services.getSumPrestation({'etat':'Valider'})/services.getSumPrestation({'etat':'Total'}))*100)|format_number(style='percent')   }}</span>
  330.                                     {% endif %}                                </p>
  331.                                 <div class=\"progress progress-xs light\">
  332.                                     {% if services.getSumPrestation({'etat':'Total'})==0 %}
  333.                                         <div class=\"progress-bar\" role=\"progressbar\" aria-valuenow=\"60\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width:{{ (services.getSumPrestation({'etat':'Valider'})/1)*100 }}%;\"></div>
  334.                                     {% else %}
  335.                                         <div class=\"progress-bar\" role=\"progressbar\" aria-valuenow=\"60\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width:{{ (services.getSumPrestation({'etat':'Valider'})/services.getSumPrestation({'etat':'Total'}))*100 }}%;\"></div>
  336.                                     {% endif %}                                </div>
  337.                             </li>
  338.                             <li>
  339.                                 <p class=\"clearfix mb-1\">
  340.                                     <span class=\"message float-start\">Prestation en cour</span>
  341.                                     {% if services.getSumPrestation({'etat':'Total'})==0 %}
  342.                                         <span class=\"message float-end text-dark\">{{ ((services.getSumPrestation({'etat':'cour'})/1)*100)|format_number(style='percent')   }}</span>
  343.                                     {% else %}
  344.                                         <span class=\"message float-end text-dark\">{{ ((services.getSumPrestation({'etat':'cour'})/services.getSumPrestation({'etat':'Total'}))*100)|format_number(style='percent')   }}</span>
  345.                                     {% endif %}                                 </p>
  346.                                 <div class=\"progress progress-xs light mb-1\">
  347.                                     {% if services.getSumPrestation({'etat':'Total'})==0 %}
  348.                                         <div class=\"progress-bar\" role=\"progressbar\" aria-valuenow=\"60\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width:{{ (services.getSumPrestation({'etat':'cour'})/1)*100 }}%;\"></div>
  349.                                     {% else %}
  350.                                         <div class=\"progress-bar\" role=\"progressbar\" aria-valuenow=\"60\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width:{{ (services.getSumPrestation({'etat':'cour'})/services.getSumPrestation({'etat':'Total'}))*100 }}%;\"></div>
  351.                                     {% endif %}                                 </div>
  352.                             </li>
  353.                         </ul>
  354.                     </div>
  355.                 </div>
  356.             </li>
  357.             
  358.         </ul>
  359. \t\t{% endif%}
  360.         <span class=\"separator\"></span>
  361.         <div id=\"userbox\" class=\"userbox\">
  362.             <a href=\"#\" data-bs-toggle=\"dropdown\">
  363.                 <figure class=\"profile-picture\">
  364.                     <img src=\"{{ asset('build/images/logged-user.jpg')}}\" alt=\"Joseph Doe\" class=\"rounded-circle\" data-lock-picture=\"{{ asset('build/images/logged-user.jpg')}}\" />
  365.                 </figure>
  366.                 <div class=\"profile-info\" data-lock-name=\"John Doe\" data-lock-email=\"johndoe@okler.com\">
  367.                     <span class=\"name\">{{ services.getUser().username }}</span>
  368.                     {% if is_granted('ROLE_ADMIN')%}
  369.                         <span class=\"role\">Administrateur</span>
  370.                     {% else %}
  371.                         <span class=\"role\">Adhérent</span>
  372.                     {% endif %}
  373.                 </div>
  374.                 <i class=\"fa custom-caret\"></i>
  375.             </a>
  376.             <div class=\"dropdown-menu\">
  377.                 <ul class=\"list-unstyled mb-2\">
  378.                     <li class=\"divider\"></li>
  379.                     <li>
  380.                        
  381.                         <a role=\"menuitem\" tabindex=\"-1\" href=\"{{ path('app_user') }}\"><i class=\"bx bx-user-circle\"></i> My Profile</a>
  382.                     </li>
  383.                     <li>
  384.                         <a role=\"menuitem\" tabindex=\"-1\" href=\"{{ path('app_logout') }}\"><i class=\"bx bx-power-off\"></i> Logout</a>
  385.                     </li>
  386.                 </ul>
  387.             </div>
  388.         </div>
  389.     </div>
  390.     <!-- end: search & user box -->
  391. </header>
  392. <!-- end: header -->""Global/header.html.twig""/home/amicala/www/Amicale/templates/Global/header.html.twig");
  393.     }
  394. }