var/cache/dev/twig/2c/2c3a5a024552888045a7ede7d541edd0.php line 56

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/listSubcategories.html.twig */
  15. class __TwigTemplate_4d8e0d6390fc424d664058f845bd11fe 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/listSubcategories.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/listSubcategories.html.twig"));
  46.         $this->parent $this->loadTemplate("admin/baseAdmin.html.twig""admin/category/listSubcategories.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 "Sous category";
  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 sous 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/listSubcategories.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 sous 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_subcategory");
  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 souscategorie</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\">Categorie</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["subcategories"]) || array_key_exists("subcategories"$context) ? $context["subcategories"] : (function () { throw new RuntimeError('Variable "subcategories" does not exist.'43$this->source); })()));
  198.         foreach ($context['_seq'] as $context["_key"] => $context["subcategory"]) {
  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["subcategory"], "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["subcategory"], "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>";
  218.             // line 55
  219.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["subcategory"], "category", [], "any"falsefalsefalse55), "name", [], "any"falsefalsefalse55), "html"nulltrue);
  220.             yield " </p>
  221.                                                     </th>
  222.                                                     <td class=\"p-3\">
  223.                                                         <p>";
  224.             // line 59
  225.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["subcategory"], "description", [], "any"falsefalsefalse59), "html"nulltrue);
  226.             yield " </p>
  227.                                                     </td>
  228.                                                     <td class=\"p-3 ltr:text-left rtl:text-right\">
  229.                                                         <div class=\"relative dropdown\">
  230.                                                             <button class=\"p-0 text-gray-700 border-0 btn dropdown-toggle dark:text-zink-200 \" type=\"button\" data-bs-toggle=\"dropdown\" id=\"dropdownMenuButton1\">
  231.                                                                 <i class=\"bx bx-dots-horizontal font-medium text-15\"></i>
  232.                                                             </button>
  233.                                                             <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\">
  234.                                                                 <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=\"";
  235.             // line 68
  236.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("edit_subcategory", ["id" => CoreExtension::getAttribute($this->env$this->source$context["subcategory"], "id", [], "any"falsefalsefalse68)]), "html"nulltrue);
  237.             yield "\"><i class=\"bx bx-pencil text-16 text-green-500 me-2 \"></i> Edit</a>
  238.                                                                 </li>
  239.                                                                 <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>
  240.                                                                 </li>
  241.                                                             </ul>
  242.                                                         </div>
  243.                                                     </td>
  244.                                                 </tr>
  245.                                             ";
  246.         }
  247.         $_parent $context['_parent'];
  248.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subcategory'], $context['_parent'], $context['loop']);
  249.         $context array_intersect_key($context$_parent) + $_parent;
  250.         // line 78
  251.         yield "                                        </tbody>
  252.                                     </table>
  253.                                 </div>
  254.                                 <!-- end table -->
  255.                             </div>
  256.                             <div class=\"col-span-12\">
  257.                                 <div class=\"flex justify-between items-center\">
  258.                                     <p class=\"text-13\">Showing 1 to 7 of 7 entries</p>
  259.                                     <ul class=\"flex space-x-4 rtl:space-x-reverse items-center\">
  260.                                         <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>
  261.                                         <li class=\"cursor-pointer flex h-8 items-center justify-center rounded-full text-white w-8\" style=\"background: #ffaa00; \">1</li>
  262.                                         <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>
  263.                                     </ul>
  264.                                 </div>
  265.                             </div>
  266.                         </div>
  267.                         <!-- end grid -->
  268.                     </div>
  269.                 </div>
  270.             </div>
  271.             <!-- container-fluid -->
  272. <!-- End main -->
  273. ";
  274.         
  275.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  276.         
  277.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  278.         return; yield '';
  279.     }
  280.     // line 104
  281.     public function block_javascripts($context, array $blocks = [])
  282.     {
  283.         $macros $this->macros;
  284.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  285.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  286.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  287.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  288.         // line 105
  289.         yield "
  290.     <script src=\"";
  291.         // line 106
  292.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/js/app.js"), "html"nulltrue);
  293.         yield "\"></script>
  294. ";
  295.         
  296.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  297.         
  298.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  299.         return; yield '';
  300.     }
  301.     /**
  302.      * @codeCoverageIgnore
  303.      */
  304.     public function getTemplateName()
  305.     {
  306.         return "admin/category/listSubcategories.html.twig";
  307.     }
  308.     /**
  309.      * @codeCoverageIgnore
  310.      */
  311.     public function isTraitable()
  312.     {
  313.         return false;
  314.     }
  315.     /**
  316.      * @codeCoverageIgnore
  317.      */
  318.     public function getDebugInfo()
  319.     {
  320.         return array (  350 => 106,  347 => 105,  337 => 104,  301 => 78,  285 => 68,  273 => 59,  266 => 55,  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,);
  321.     }
  322.     public function getSourceContext()
  323.     {
  324.         return new Source("{% extends 'admin/baseAdmin.html.twig' %}
  325. {% block page_title %}Sous category{% endblock %}
  326. {% block breadcump_main %}Catégorie{% endblock %}
  327. {% block breadcump_subtitle %}Liste des sous categories{% endblock %}
  328. {% block menu_left_sidebar %}
  329.     {% include 'include/menu/menuAdmin.html.twig' with { menu_active_event : '2'} %}
  330. {% endblock %}
  331. {% block stylesheets %}
  332.     <link href=\"{{ asset('admin/libs/select2/css/select2.min.css') }}\" rel=\"stylesheet\" type=\"text/css\">
  333.     <link href=\"{{ asset('admin/css/tailwind.min.css') }}\" rel=\"stylesheet\" type=\"text/css\">
  334.     <link href=\"{{ asset('admin/css/tailwind2.css') }}\" rel=\"stylesheet\" type=\"text/css\">
  335. {% endblock %}
  336. {% block title %}{{\"Liste des sous categories\"|trans }}{% endblock %} 
  337. {% block content %}
  338.     <div class=\"container-fluid px-0\">
  339.                 <div class=\"card dark:bg-zink-700 \">
  340.                     <div class=\"p-6\">
  341.                         <div class=\"grid grid-cols-12\">
  342.                             <div class=\"col-span-12\">
  343.                                 <div class=\"md:flex justify-between space-y-2 md:space-y-0\">
  344.                                     <div class=\"relative\">
  345.                                         <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>
  346.                                         <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\">
  347.                                     </div>
  348.                                     <a href=\"{{ path('add_subcategory') }}\"
  349.                                        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 souscategorie</a>
  350.                                 </div>
  351.                                 <div class=\"my-6 overflow-x-auto\">
  352.                                     <table class=\"table w-full datatable dt-responsive nowrap whitespace-nowrap border-spacing-y-1.5 border-collapse text-gray-800 \">
  353.                                         <thead>
  354.                                             <tr class=\"bg-gray-50 dark:bg-zink-50 dark:text-zink-200 \">
  355.                                                 <th class=\"p-3 font-semibold text-13 ltr:text-left rtl:text-right\">#</th>
  356.                                                 <th class=\"p-3 font-semibold text-13 ltr:text-left rtl:text-right\">Titre</th>
  357.                                                 <th class=\"p-3 font-semibold text-13 ltr:text-left rtl:text-right\">Categorie</th>
  358.                                                 <th class=\"p-3 font-semibold text-13 ltr:text-left rtl:text-right\">Description</th>
  359.                                                 <th class=\"p-3 font-semibold text-13 ltr:text-left rtl:text-right\" style=\"width: 120px;\">Action</th>
  360.                                             </tr>
  361.                                         </thead>
  362.                                         <tbody>
  363.                                             {% for subcategory in subcategories %}
  364.                                                 <tr class=\"bg-white border-b border-gray-300 dark:bg-transparent dark:border-zink-50\">
  365.                                                     <td class=\"p-3\">
  366.                                                         <div class=\"w-24 h-16 bg-gray-50 dark:bg-zink-50 rounded p-1\">
  367.                                                             <img class=\"h-full\" src=\"{{ asset(''~subcategory.image) }}\" alt=\"\">
  368.                                                         </div>
  369.                                                     </td>
  370.                                                     <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\">
  371.                                                         <p class=\"text-[14px] font-medium mb-1 text-gray-800 dark:text-white\">{{ subcategory.name }}</p>
  372.                                                         <p></p>
  373.                                                     </th>
  374.                                                     <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\">
  375.                                                         <p>{{ subcategory.category.name }} </p>
  376.                                                     </th>
  377.                                                     <td class=\"p-3\">
  378.                                                         <p>{{ subcategory.description }} </p>
  379.                                                     </td>
  380.                                                     <td class=\"p-3 ltr:text-left rtl:text-right\">
  381.                                                         <div class=\"relative dropdown\">
  382.                                                             <button class=\"p-0 text-gray-700 border-0 btn dropdown-toggle dark:text-zink-200 \" type=\"button\" data-bs-toggle=\"dropdown\" id=\"dropdownMenuButton1\">
  383.                                                                 <i class=\"bx bx-dots-horizontal font-medium text-15\"></i>
  384.                                                             </button>
  385.                                                             <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\">
  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=\"{{ path('edit_subcategory', {'id':subcategory.id}) }}\"><i class=\"bx bx-pencil text-16 text-green-500 me-2 \"></i> Edit</a>
  387.                                                                 </li>
  388.                                                                 <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>
  389.                                                                 </li>
  390.                                                             </ul>
  391.                                                         </div>
  392.                                                     </td>
  393.                                                 </tr>
  394.                                             {% endfor %}
  395.                                         </tbody>
  396.                                     </table>
  397.                                 </div>
  398.                                 <!-- end table -->
  399.                             </div>
  400.                             <div class=\"col-span-12\">
  401.                                 <div class=\"flex justify-between items-center\">
  402.                                     <p class=\"text-13\">Showing 1 to 7 of 7 entries</p>
  403.                                     <ul class=\"flex space-x-4 rtl:space-x-reverse items-center\">
  404.                                         <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>
  405.                                         <li class=\"cursor-pointer flex h-8 items-center justify-center rounded-full text-white w-8\" style=\"background: #ffaa00; \">1</li>
  406.                                         <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>
  407.                                     </ul>
  408.                                 </div>
  409.                             </div>
  410.                         </div>
  411.                         <!-- end grid -->
  412.                     </div>
  413.                 </div>
  414.             </div>
  415.             <!-- container-fluid -->
  416. <!-- End main -->
  417. {% endblock %}
  418. {% block javascripts %}
  419.     <script src=\"{{ asset('admin/js/app.js')}}\"></script>
  420. {% endblock %}""admin/category/listSubcategories.html.twig""/home/bookoachroot/public_html/templates/admin/category/listSubcategories.html.twig");
  421.     }
  422. }