var/cache/dev/twig/3b/3ba29814cc4b35fba9a42f8d048ae630.php line 46

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. /* admin/category/listCategories.html.twig */
  15. class __TwigTemplate_8aff606185d82f344ddc049da0ba2fef 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->blocks = [
  24.             'page_title' => [$this'block_page_title'],
  25.             'breadcump_main' => [$this'block_breadcump_main'],
  26.             'breadcump_subtitle' => [$this'block_breadcump_subtitle'],
  27.             'menu_left_sidebar' => [$this'block_menu_left_sidebar'],
  28.             'stylesheets' => [$this'block_stylesheets'],
  29.             'title' => [$this'block_title'],
  30.             'content' => [$this'block_content'],
  31.             'javascripts' => [$this'block_javascripts'],
  32.         ];
  33.     }
  34.     protected function doGetParent(array $context)
  35.     {
  36.         // line 1
  37.         return "admin/baseAdmin.html.twig";
  38.     }
  39.     protected function doDisplay(array $context, array $blocks = [])
  40.     {
  41.         $macros $this->macros;
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""admin/category/listCategories.html.twig"));
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""admin/category/listCategories.html.twig"));
  46.         $this->parent $this->loadTemplate("admin/baseAdmin.html.twig""admin/category/listCategories.html.twig"1);
  47.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50.         
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52.     }
  53.     // line 2
  54.     public function block_page_title($context, array $blocks = [])
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_title"));
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_title"));
  61.         yield "Liste des categories ";
  62.         
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  64.         
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  66.         return; yield '';
  67.     }
  68.     // line 3
  69.     public function block_breadcump_main($context, array $blocks = [])
  70.     {
  71.         $macros $this->macros;
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcump_main"));
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcump_main"));
  76.         yield "Catégorie";
  77.         
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  79.         
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  81.         return; yield '';
  82.     }
  83.     // line 4
  84.     public function block_breadcump_subtitle($context, array $blocks = [])
  85.     {
  86.         $macros $this->macros;
  87.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  88.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcump_subtitle"));
  89.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  90.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcump_subtitle"));
  91.         yield "Liste des categories";
  92.         
  93.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  94.         
  95.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  96.         return; yield '';
  97.     }
  98.     // line 5
  99.     public function block_menu_left_sidebar($context, array $blocks = [])
  100.     {
  101.         $macros $this->macros;
  102.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  103.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu_left_sidebar"));
  104.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  105.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu_left_sidebar"));
  106.         // line 6
  107.         yield "    ";
  108.         yield from         $this->loadTemplate("include/menu/menuAdmin.html.twig""admin/category/listCategories.html.twig"6)->unwrap()->yield(CoreExtension::merge($context, ["menu_active_event" => "2"]));
  109.         
  110.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  111.         
  112.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  113.         return; yield '';
  114.     }
  115.     // line 8
  116.     public function block_stylesheets($context, array $blocks = [])
  117.     {
  118.         $macros $this->macros;
  119.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  120.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  121.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  122.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  123.         // line 9
  124.         yield "    <link href=\"";
  125.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/libs/select2/css/select2.min.css"), "html"nulltrue);
  126.         yield "\" rel=\"stylesheet\" type=\"text/css\">
  127.     <link href=\"";
  128.         // line 10
  129.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/css/tailwind.min.css"), "html"nulltrue);
  130.         yield "\" rel=\"stylesheet\" type=\"text/css\">
  131.     <link href=\"";
  132.         // line 11
  133.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/css/tailwind2.css"), "html"nulltrue);
  134.         yield "\" rel=\"stylesheet\" type=\"text/css\">
  135. ";
  136.         
  137.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  138.         
  139.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  140.         return; yield '';
  141.     }
  142.     // line 14
  143.     public function block_title($context, array $blocks = [])
  144.     {
  145.         $macros $this->macros;
  146.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  147.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  148.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  149.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  150.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Liste des categories"), "html"nulltrue);
  151.         
  152.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  153.         
  154.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  155.         return; yield '';
  156.     }
  157.     // line 15
  158.     public function block_content($context, array $blocks = [])
  159.     {
  160.         $macros $this->macros;
  161.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  162.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  163.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  164.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  165.         // line 16
  166.         yield "    <div class=\"container-fluid px-0\">
  167.         <div class=\"card dark:bg-zink-700 \">
  168.             <div class=\"p-6\">
  169.                 <div class=\"grid grid-cols-12\">
  170.                     <div class=\"col-span-12\">
  171.                         <div class=\"md:flex justify-between space-y-2 md:space-y-0\">
  172.                             <div class=\"relative\">
  173.                                 <i class=\"bx bx-search-alt text-16 text-zink-600  dark:text-zink-200 absolute top-3 left-4 right-4 transform w-1/12\"></i>
  174.                                 <input class=\"border border-gray-400 focus:border focus:border-gray-400 focus:outline-none focus:ring-0 p-3 ps-5 pl-10 placeholder:text-[13px] placeholder:text-gray-600 py-2 rounded-full rtl:pr-10 text-gray-700 w-full\" type=\"search\" placeholder=\"Rechercher...\" id=\"example-search-input\">
  175.                             </div>
  176.                             <a href=\"";
  177.         // line 27
  178.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("add_category");
  179.         yield "\"
  180.                                class=\"mb-3 text-13 px-4 rounded-full text-white  bg-orange-500 border-transparent btn hover:bg-green-600\" style=\"background: #ffaa00;\"><i class=\"bx bx-plusme-1\"></i>Ajouter nouvelle category</a>
  181.                         </div>
  182.                         <div class=\"my-6 overflow-x-auto\">
  183.                             <table class=\"table w-full datatable dt-responsive nowrap whitespace-nowrap border-spacing-y-1.5 border-collapse text-gray-800 \">
  184.                                 <thead>
  185.                                     <tr class=\"bg-gray-50 dark:bg-zink-50 dark:text-zink-200 \">
  186.                                         <th class=\"p-3 font-semibold text-13 ltr:text-left rtl:text-right\">#</th>
  187.                                         <th class=\"p-3 font-semibold text-13 ltr:text-left rtl:text-right\">Titre</th>
  188.                                         <th class=\"p-3 font-semibold text-13 ltr:text-left rtl:text-right\">Nbr Séjour</th>
  189.                                         <th class=\"p-3 font-semibold text-13 ltr:text-left rtl:text-right\">Description</th>
  190.                                         <th class=\"p-3 font-semibold text-13 ltr:text-left rtl:text-right\" style=\"width: 120px;\">Action</th>
  191.                                     </tr>
  192.                                 </thead>
  193.                                 <tbody>
  194.                                     ";
  195.         // line 43
  196.         $context['_parent'] = $context;
  197.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'43$this->source); })()));
  198.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  199.             // line 44
  200.             yield "                                        <tr class=\"bg-white border-b border-gray-300 dark:bg-transparent dark:border-zink-50\">
  201.                                             <td class=\"p-3\">
  202.                                                 <div class=\"w-24 h-16 bg-gray-50 dark:bg-zink-50 rounded p-1\">
  203.                                                     <img class=\"h-full\" src=\"";
  204.             // line 47
  205.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("" CoreExtension::getAttribute($this->env$this->source$context["category"], "image", [], "any"falsefalsefalse47))), "html"nulltrue);
  206.             yield "\" alt=\"\">
  207.                                                 </div>
  208.                                             </td>
  209.                                             <th scope=\"row\" class=\"p-3 text-13 ltr:text-left rtl:text-right font-normal  whitespace-nowrap text-gray-600 dark:text-zink-200\">
  210.                                                 <p class=\"text-[14px] font-medium mb-1 text-gray-800 dark:text-white\">";
  211.             // line 51
  212.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["category"], "name", [], "any"falsefalsefalse51), "html"nulltrue);
  213.             yield "</p>
  214.                                                 <p></p>
  215.                                             </th>
  216.                                             <th scope=\"row\" class=\"p-3 text-13 ltr:text-left rtl:text-right font-normal  whitespace-nowrap text-gray-600 dark:text-zink-200\">
  217.                                                 <p>15 </p>
  218.                                             </th>
  219.                                             <td class=\"p-3\">
  220.                                                 <p>";
  221.             // line 59
  222.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["category"], "description", [], "any"falsefalsefalse59), "html"nulltrue);
  223.             yield " </p>
  224.                                             </td>
  225.                                             <td class=\"p-3 ltr:text-left rtl:text-right\">
  226.                                                 <div class=\"relative dropdown\">
  227.                                                     <button class=\"p-0 text-gray-700 border-0 btn dropdown-toggle dark:text-zink-200 \" type=\"button\" data-bs-toggle=\"dropdown\" id=\"dropdownMenuButton1\">
  228.                                                         <i class=\"bx bx-dots-horizontal font-medium text-15\"></i>
  229.                                                     </button>
  230.                                                     <ul class=\"absolute right-0 left-auto top-auto z-20 hidden w-44 py-1.5 text-left list-none bg-white border border-transparent rounded shadow-lg dropdown-menu bg-clip-padding dark:bg-zink-700 dark:border-zink-50 dark:text-zink-200\" aria-labelledby=\"dropdownMenuButton1\">
  231.                                                         <li><a class=\"bg-transparent dropdown-item font-normal flex items-center hover:bg-gray-50 px-6 py-1.5 text-13 text-gray-700 w-full whitespace-nowrap\" href=\"";
  232.             // line 68
  233.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("edit_category", ["id" => CoreExtension::getAttribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse68)]), "html"nulltrue);
  234.             yield "\"><i class=\"bx bx-pencil text-16 text-green-500 me-2 \"></i> Edit</a>
  235.                                                         </li>
  236.                                                         <li><a class=\"bg-transparent dropdown-item font-normal flex items-center hover:bg-gray-50 px-6 py-1.5 text-13 text-gray-700 w-full whitespace-nowrap\" href=\"#\"> <i class=\"bx bx-trash-alt text-16 text-red-500 me-2\"></i>Remove</a>
  237.                                                         </li>
  238.                                                     </ul>
  239.                                                 </div>
  240.                                             </td>
  241.                                         </tr>
  242.                                     ";
  243.         }
  244.         $_parent $context['_parent'];
  245.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  246.         $context array_intersect_key($context$_parent) + $_parent;
  247.         // line 78
  248.         yield "                                </tbody>
  249.                             </table>
  250.                         </div>
  251.                         <!-- end table -->
  252.                     </div>
  253.                     <div class=\"col-span-12\">
  254.                         <div class=\"flex justify-between items-center\">
  255.                             <p class=\"text-13\">Showing 1 to 7 of 7 entries</p>
  256.                             <ul class=\"flex space-x-4 rtl:space-x-reverse items-center\">
  257.                                 <li class=\"cursor-pointer\"><i class=\"bx bx-chevron-left text-gray-700 text-16 dark:text-zink-200 rtl:rotate-180 block\"></i></li>
  258.                                 <li class=\"cursor-pointer flex h-8 items-center justify-center rounded-full text-white w-8\" style=\"background: #ffaa00; \">1</li>
  259.                                 <li class=\"cursor-pointer\"><i class=\"bx bx-chevron-right text-gray-700 text-16 dark:text-zink-200 rtl:rotate-180 block\"></i></li>
  260.                             </ul>
  261.                         </div>
  262.                     </div>
  263.                 </div>
  264.                 <!-- end grid -->
  265.             </div>
  266.         </div>
  267.     </div>
  268.     <!-- container-fluid -->
  269. </main>
  270. <!-- End main -->
  271. ";
  272.         
  273.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  274.         
  275.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  276.         return; yield '';
  277.     }
  278.     // line 109
  279.     public function block_javascripts($context, array $blocks = [])
  280.     {
  281.         $macros $this->macros;
  282.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  283.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  284.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  285.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  286.         // line 110
  287.         yield "
  288.     <script src=\"";
  289.         // line 111
  290.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/js/app.js"), "html"nulltrue);
  291.         yield "\"></script>
  292. ";
  293.         
  294.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  295.         
  296.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  297.         return; yield '';
  298.     }
  299.     /**
  300.      * @codeCoverageIgnore
  301.      */
  302.     public function getTemplateName()
  303.     {
  304.         return "admin/category/listCategories.html.twig";
  305.     }
  306.     /**
  307.      * @codeCoverageIgnore
  308.      */
  309.     public function isTraitable()
  310.     {
  311.         return false;
  312.     }
  313.     /**
  314.      * @codeCoverageIgnore
  315.      */
  316.     public function getDebugInfo()
  317.     {
  318.         return array (  352 => 111,  349 => 110,  339 => 109,  298 => 78,  282 => 68,  270 => 59,  259 => 51,  252 => 47,  247 => 44,  243 => 43,  224 => 27,  211 => 16,  201 => 15,  181 => 14,  167 => 11,  163 => 10,  158 => 9,  148 => 8,  136 => 6,  126 => 5,  106 => 4,  86 => 3,  66 => 2,  43 => 1,);
  319.     }
  320.     public function getSourceContext()
  321.     {
  322.         return new Source("{% extends 'admin/baseAdmin.html.twig' %}
  323. {% block page_title %}Liste des categories {% endblock %}
  324. {% block breadcump_main %}Catégorie{% endblock %}
  325. {% block breadcump_subtitle %}Liste des categories{% endblock %}
  326. {% block menu_left_sidebar %}
  327.     {% include 'include/menu/menuAdmin.html.twig' with { menu_active_event : '2'} %}
  328. {% endblock %}
  329. {% block stylesheets %}
  330.     <link href=\"{{ asset('admin/libs/select2/css/select2.min.css') }}\" rel=\"stylesheet\" type=\"text/css\">
  331.     <link href=\"{{ asset('admin/css/tailwind.min.css') }}\" rel=\"stylesheet\" type=\"text/css\">
  332.     <link href=\"{{ asset('admin/css/tailwind2.css') }}\" rel=\"stylesheet\" type=\"text/css\">
  333. {% endblock %}
  334. {% block title %}{{\"Liste des categories\"|trans }}{% endblock %} 
  335. {% block content %}
  336.     <div class=\"container-fluid px-0\">
  337.         <div class=\"card dark:bg-zink-700 \">
  338.             <div class=\"p-6\">
  339.                 <div class=\"grid grid-cols-12\">
  340.                     <div class=\"col-span-12\">
  341.                         <div class=\"md:flex justify-between space-y-2 md:space-y-0\">
  342.                             <div class=\"relative\">
  343.                                 <i class=\"bx bx-search-alt text-16 text-zink-600  dark:text-zink-200 absolute top-3 left-4 right-4 transform w-1/12\"></i>
  344.                                 <input class=\"border border-gray-400 focus:border focus:border-gray-400 focus:outline-none focus:ring-0 p-3 ps-5 pl-10 placeholder:text-[13px] placeholder:text-gray-600 py-2 rounded-full rtl:pr-10 text-gray-700 w-full\" type=\"search\" placeholder=\"Rechercher...\" id=\"example-search-input\">
  345.                             </div>
  346.                             <a href=\"{{ path('add_category') }}\"
  347.                                class=\"mb-3 text-13 px-4 rounded-full text-white  bg-orange-500 border-transparent btn hover:bg-green-600\" style=\"background: #ffaa00;\"><i class=\"bx bx-plusme-1\"></i>Ajouter nouvelle category</a>
  348.                         </div>
  349.                         <div class=\"my-6 overflow-x-auto\">
  350.                             <table class=\"table w-full datatable dt-responsive nowrap whitespace-nowrap border-spacing-y-1.5 border-collapse text-gray-800 \">
  351.                                 <thead>
  352.                                     <tr class=\"bg-gray-50 dark:bg-zink-50 dark:text-zink-200 \">
  353.                                         <th class=\"p-3 font-semibold text-13 ltr:text-left rtl:text-right\">#</th>
  354.                                         <th class=\"p-3 font-semibold text-13 ltr:text-left rtl:text-right\">Titre</th>
  355.                                         <th class=\"p-3 font-semibold text-13 ltr:text-left rtl:text-right\">Nbr Séjour</th>
  356.                                         <th class=\"p-3 font-semibold text-13 ltr:text-left rtl:text-right\">Description</th>
  357.                                         <th class=\"p-3 font-semibold text-13 ltr:text-left rtl:text-right\" style=\"width: 120px;\">Action</th>
  358.                                     </tr>
  359.                                 </thead>
  360.                                 <tbody>
  361.                                     {% for category in categories %}
  362.                                         <tr class=\"bg-white border-b border-gray-300 dark:bg-transparent dark:border-zink-50\">
  363.                                             <td class=\"p-3\">
  364.                                                 <div class=\"w-24 h-16 bg-gray-50 dark:bg-zink-50 rounded p-1\">
  365.                                                     <img class=\"h-full\" src=\"{{ asset(''~category.image) }}\" alt=\"\">
  366.                                                 </div>
  367.                                             </td>
  368.                                             <th scope=\"row\" class=\"p-3 text-13 ltr:text-left rtl:text-right font-normal  whitespace-nowrap text-gray-600 dark:text-zink-200\">
  369.                                                 <p class=\"text-[14px] font-medium mb-1 text-gray-800 dark:text-white\">{{ category.name }}</p>
  370.                                                 <p></p>
  371.                                             </th>
  372.                                             <th scope=\"row\" class=\"p-3 text-13 ltr:text-left rtl:text-right font-normal  whitespace-nowrap text-gray-600 dark:text-zink-200\">
  373.                                                 <p>15 </p>
  374.                                             </th>
  375.                                             <td class=\"p-3\">
  376.                                                 <p>{{ category.description }} </p>
  377.                                             </td>
  378.                                             <td class=\"p-3 ltr:text-left rtl:text-right\">
  379.                                                 <div class=\"relative dropdown\">
  380.                                                     <button class=\"p-0 text-gray-700 border-0 btn dropdown-toggle dark:text-zink-200 \" type=\"button\" data-bs-toggle=\"dropdown\" id=\"dropdownMenuButton1\">
  381.                                                         <i class=\"bx bx-dots-horizontal font-medium text-15\"></i>
  382.                                                     </button>
  383.                                                     <ul class=\"absolute right-0 left-auto top-auto z-20 hidden w-44 py-1.5 text-left list-none bg-white border border-transparent rounded shadow-lg dropdown-menu bg-clip-padding dark:bg-zink-700 dark:border-zink-50 dark:text-zink-200\" aria-labelledby=\"dropdownMenuButton1\">
  384.                                                         <li><a class=\"bg-transparent dropdown-item font-normal flex items-center hover:bg-gray-50 px-6 py-1.5 text-13 text-gray-700 w-full whitespace-nowrap\" href=\"{{ path('edit_category', {'id':category.id}) }}\"><i class=\"bx bx-pencil text-16 text-green-500 me-2 \"></i> Edit</a>
  385.                                                         </li>
  386.                                                         <li><a class=\"bg-transparent dropdown-item font-normal flex items-center hover:bg-gray-50 px-6 py-1.5 text-13 text-gray-700 w-full whitespace-nowrap\" href=\"#\"> <i class=\"bx bx-trash-alt text-16 text-red-500 me-2\"></i>Remove</a>
  387.                                                         </li>
  388.                                                     </ul>
  389.                                                 </div>
  390.                                             </td>
  391.                                         </tr>
  392.                                     {% endfor %}
  393.                                 </tbody>
  394.                             </table>
  395.                         </div>
  396.                         <!-- end table -->
  397.                     </div>
  398.                     <div class=\"col-span-12\">
  399.                         <div class=\"flex justify-between items-center\">
  400.                             <p class=\"text-13\">Showing 1 to 7 of 7 entries</p>
  401.                             <ul class=\"flex space-x-4 rtl:space-x-reverse items-center\">
  402.                                 <li class=\"cursor-pointer\"><i class=\"bx bx-chevron-left text-gray-700 text-16 dark:text-zink-200 rtl:rotate-180 block\"></i></li>
  403.                                 <li class=\"cursor-pointer flex h-8 items-center justify-center rounded-full text-white w-8\" style=\"background: #ffaa00; \">1</li>
  404.                                 <li class=\"cursor-pointer\"><i class=\"bx bx-chevron-right text-gray-700 text-16 dark:text-zink-200 rtl:rotate-180 block\"></i></li>
  405.                             </ul>
  406.                         </div>
  407.                     </div>
  408.                 </div>
  409.                 <!-- end grid -->
  410.             </div>
  411.         </div>
  412.     </div>
  413.     <!-- container-fluid -->
  414. </main>
  415. <!-- End main -->
  416. {% endblock %}
  417. {% block javascripts %}
  418.     <script src=\"{{ asset('admin/js/app.js')}}\"></script>
  419. {% endblock %}""admin/category/listCategories.html.twig""/home/bookoachroot/public_html/templates/admin/category/listCategories.html.twig");
  420.     }
  421. }