<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* admin/experience/list/listExperiences.html.twig */
class __TwigTemplate_6d5a1707810393f637e02af3423c0f1b extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'page_title' => [$this, 'block_page_title'],
'breadcump_main' => [$this, 'block_breadcump_main'],
'breadcump_subtitle' => [$this, 'block_breadcump_subtitle'],
'menu_left_sidebar' => [$this, 'block_menu_left_sidebar'],
'stylesheets' => [$this, 'block_stylesheets'],
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "admin/baseAdmin.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "admin/experience/list/listExperiences.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "admin/experience/list/listExperiences.html.twig"));
$this->parent = $this->loadTemplate("admin/baseAdmin.html.twig", "admin/experience/list/listExperiences.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
public function block_page_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_title"));
yield "Comptes Experiences";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 3
public function block_breadcump_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcump_main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcump_main"));
yield "Experiences";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 4
public function block_breadcump_subtitle($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcump_subtitle"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcump_subtitle"));
yield "Liste des Experiences";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 5
public function block_menu_left_sidebar($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu_left_sidebar"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu_left_sidebar"));
// line 6
yield " ";
yield from $this->loadTemplate("include/menu/menuAdmin.html.twig", "admin/experience/list/listExperiences.html.twig", 6)->unwrap()->yield(CoreExtension::merge($context, ["menu_active_event" => "3"]));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 8
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 9
yield " <link href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/libs/select2/css/select2.min.css"), "html", null, true);
yield "\" rel=\"stylesheet\" type=\"text/css\">
<link href=\"";
// line 10
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/libs/bootstrap-datepicker/css/bootstrap-datepicker.min.css"), "html", null, true);
yield "\" rel=\"stylesheet\" type=\"text/css\">
<link href=\"";
// line 11
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/libs/datatables.net-bs4/css/dataTables.bootstrap4.min.css"), "html", null, true);
yield "\" rel=\"stylesheet\" type=\"text/css\">
<link href=\"";
// line 12
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/libs/datatables.net-responsive-bs4/css/responsive.bootstrap4.min.css"), "html", null, true);
yield "\" rel=\"stylesheet\" type=\"text/css\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 14
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Liste des Experiences"), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 15
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 16
yield " <div class=\"row\">
<div class=\"col-lg-12\">
<div class=\"card\">
<div class=\"card-body\">
<h4 class=\"card-title mb-3\">Experiences</h4>
<!-- Nav tabs -->
<!-- Tab panes -->
<div class=\"tab-content p-3\">
<div class=\"tab-pane active\" id=\"all-order\" role=\"tabpanel\">
<form method=\"post\" action=\"";
// line 28
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("experiences_list");
yield "\">
<div class=\"row\">
<div class=\"col-xl col-sm-6\">
<div class=\"mb-3\">
<label class=\"form-label\">Coach</label>
<select class=\"form-control select2\">
<option>Select</option>
<optgroup label=\"Coaches\">
";
// line 37
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["coaches"]) || array_key_exists("coaches", $context) ? $context["coaches"] : (function () { throw new RuntimeError('Variable "coaches" does not exist.', 37, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["coache"]) {
// line 38
yield " <option value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["coache"], "id", [], "any", false, false, false, 38), "html", null, true);
yield "\" ";
yield (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 38, $this->source); })()), "request", [], "any", false, false, false, 38), "get", ["coache"], "method", false, false, false, 38) == CoreExtension::getAttribute($this->env, $this->source, $context["coache"], "id", [], "any", false, false, false, 38))) ? ("selected") : (""));
yield ">
";
// line 39
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["coache"], "firstname", [], "any", false, false, false, 39), "html", null, true);
yield " - ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["coache"], "lastname", [], "any", false, false, false, 39), "html", null, true);
yield "
</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['coache'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 42
yield " </optgroup>
</select>
</div>
</div>
<div class=\"col-xl col-sm-6\">
<div class=\"mb-3\">
<label class=\"form-label\">Type de coaching :</label>
<select class=\"form-control\" name=\"typeCoach\">
<option value=\"\">— Tous —</option>
<option value=\"private\" ";
// line 53
yield (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 53, $this->source); })()), "request", [], "any", false, false, false, 53), "get", ["typeCoach"], "method", false, false, false, 53) == "private")) ? ("selected") : (""));
yield ">Coaching Privé</option>
<option value=\"groupe\" ";
// line 54
yield (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 54, $this->source); })()), "request", [], "any", false, false, false, 54), "get", ["typeCoach"], "method", false, false, false, 54) == "groupe")) ? ("selected") : (""));
yield ">Coaching en groupe</option>
<option value=\"visio\" ";
// line 55
yield (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 55, $this->source); })()), "request", [], "any", false, false, false, 55), "get", ["typeCoach"], "method", false, false, false, 55) == "visio")) ? ("selected") : (""));
yield ">Coaching par Visio</option>
</select>
</div>
</div>
<div class=\"col-xl col-sm-6\">
<div class=\"mb-3\">
<label class=\"form-label\">Catégorie :</label>
<select class=\"form-control\" name=\"category\">
<option value=\"\">— Toutes —</option>
";
// line 65
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 65, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["categorie"]) {
// line 66
yield " <option value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["categorie"], "id", [], "any", false, false, false, 66), "html", null, true);
yield "\" ";
yield (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 66, $this->source); })()), "request", [], "any", false, false, false, 66), "get", ["category"], "method", false, false, false, 66) == CoreExtension::getAttribute($this->env, $this->source, $context["categorie"], "id", [], "any", false, false, false, 66))) ? ("selected") : (""));
yield ">
";
// line 67
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["categorie"], "name", [], "any", false, false, false, 67), "html", null, true);
yield "
</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['categorie'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 70
yield " </select>
</div>
</div>
<div class=\"col-xl col-sm-6 align-self-end\">
<div class=\"mb-3\">
<button type=\"submit\" class=\"btn btn-primary w-md\">Filter</button>
</div>
</div>
</div>
</form>
<div class=\"table-responsive mt-2\">
<table class=\"table table-hover datatable dt-responsive nowrap\" style=\"border-collapse: collapse; border-spacing: 0; width: 100%;\">
<thead>
<tr>
<th scope=\"col\">#</th>
<th scope=\"col\">Titre</th>
<th scope=\"col\">Prix</th>
<th scope=\"col\">Description</th>
<th scope=\"col\">Type de coaching</th>
<th scope=\"col\">Status</th>
<th scope=\"col\">Coach</th>
<th class=\"p-3 font-semibold text-13 ltr:text-left rtl:text-right\" style=\"width: 120px;\">Action</th>
</tr>
</thead>
<tbody>
";
// line 100
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["experiences"]) || array_key_exists("experiences", $context) ? $context["experiences"] : (function () { throw new RuntimeError('Variable "experiences" does not exist.', 100, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["experience"]) {
// line 101
yield " <tr>
<td>
<img class=\"object-cover\" src=\"";
// line 103
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("" . CoreExtension::getAttribute($this->env, $this->source, $context["experience"], "image", [], "any", false, false, false, 103))), "html", null, true);
yield "\" alt=\"\" width=\"96px\" height=\"64px\">
</td>
<td>";
// line 105
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["experience"], "title", [], "any", false, false, false, 105), "html", null, true);
yield "</td>
<td>";
// line 106
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["experience"], "price", [], "any", false, false, false, 106), "html", null, true);
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["experience"], "currency", [], "any", false, false, false, 106), "html", null, true);
yield "</td>
<td>";
// line 107
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(CoreExtension::getAttribute($this->env, $this->source, $context["experience"], "description", [], "any", false, false, false, 107)), "truncate", [30, "…"], "method", false, false, false, 107), "html", null, true);
yield "</td>
<td>";
// line 108
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["experience"], "coachingtype", [], "any", false, false, false, 108), "html", null, true);
yield "</td>
<td> ";
// line 109
if ( !(null === CoreExtension::getAttribute($this->env, $this->source, $context["experience"], "enabled", [], "any", false, false, false, 109))) {
// line 110
yield " ";
yield ((CoreExtension::getAttribute($this->env, $this->source, $context["experience"], "enabled", [], "any", false, false, false, 110)) ? ("<span class=\"badge bg-success font-size-10\">Disponible</span>") : ("<span class=\"badge bg-danger font-size-10\">Occupe</span>"));
yield "
";
} else {
// line 112
yield " —
";
}
// line 114
yield " </td>
<td>Hicham";
// line 115
yield "</td>
<td class=\"p-3 ltr:text-left rtl:text-right\">
<div class=\"relative dropdown\">
<button class=\"p-0 text-gray-700 border-0 btn dropdown-toggle dark:text-zink-200 \" type=\"button\" data-bs-toggle=\"dropdown\" id=\"dropdownMenuButton1\">
<i class=\"bx bx-dots-horizontal font-medium text-15\"></i>
</button>
<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\">
<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=\"";
// line 122
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("exp_overview", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["experience"], "id", [], "any", false, false, false, 122)]), "html", null, true);
yield "\"><i class=\"bx bx-pencil text-16 text-green-500 me-2 \"></i> Overview</a>
</li>
<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-lock-alt text-16 text-gray-500 me-2\"></i>Securite</a>
</li>
<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>
</li>
</ul>
</div>
</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['experience'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 134
yield " </tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 145
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 146
yield "
<script src=\"";
// line 147
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/libs/select2/js/select2.min.js"), "html", null, true);
yield "\"></script>
<script src=\"";
// line 148
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/libs/select2/js/select2.min.js"), "html", null, true);
yield "\"></script>
<script src=\"";
// line 149
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/libs/bootstrap-datepicker/js/bootstrap-datepicker.min.js"), "html", null, true);
yield "\"></script>
<script src=\"";
// line 150
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/libs/datatables.net/js/jquery.dataTables.min.js"), "html", null, true);
yield "\"></script>
<script src=\"";
// line 151
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/libs/datatables.net-bs4/js/dataTables.bootstrap4.min.js"), "html", null, true);
yield "\"></script>
<script src=\"";
// line 152
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/libs/datatables.net-responsive/js/dataTables.responsive.min.js"), "html", null, true);
yield "\"></script>
<script src=\"";
// line 153
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/libs/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js"), "html", null, true);
yield "\"></script>
<script src=\"";
// line 154
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/js/pages/crypto-orders.init.js"), "html", null, true);
yield "\"></script>
<script src=\"";
// line 155
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/js/pages/form-advanced.init.js"), "html", null, true);
yield "\"></script>
<script src=\"";
// line 156
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/js/app.js"), "html", null, true);
yield "\"></script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "admin/experience/list/listExperiences.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 490 => 156, 486 => 155, 482 => 154, 478 => 153, 474 => 152, 470 => 151, 466 => 150, 462 => 149, 458 => 148, 454 => 147, 451 => 146, 441 => 145, 421 => 134, 403 => 122, 394 => 115, 391 => 114, 387 => 112, 381 => 110, 379 => 109, 375 => 108, 371 => 107, 365 => 106, 361 => 105, 356 => 103, 352 => 101, 348 => 100, 316 => 70, 307 => 67, 300 => 66, 296 => 65, 283 => 55, 279 => 54, 275 => 53, 262 => 42, 251 => 39, 244 => 38, 240 => 37, 228 => 28, 214 => 16, 204 => 15, 184 => 14, 171 => 12, 167 => 11, 163 => 10, 158 => 9, 148 => 8, 136 => 6, 126 => 5, 106 => 4, 86 => 3, 66 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'admin/baseAdmin.html.twig' %}
{% block page_title %}Comptes Experiences{% endblock %}
{% block breadcump_main %}Experiences{% endblock %}
{% block breadcump_subtitle %}Liste des Experiences{% endblock %}
{% block menu_left_sidebar %}
{% include 'include/menu/menuAdmin.html.twig' with { menu_active_event : '3'} %}
{% endblock %}
{% block stylesheets %}
<link href=\"{{ asset('admin/libs/select2/css/select2.min.css') }}\" rel=\"stylesheet\" type=\"text/css\">
<link href=\"{{ asset('admin/libs/bootstrap-datepicker/css/bootstrap-datepicker.min.css') }}\" rel=\"stylesheet\" type=\"text/css\">
<link href=\"{{ asset('admin/libs/datatables.net-bs4/css/dataTables.bootstrap4.min.css') }}\" rel=\"stylesheet\" type=\"text/css\">
<link href=\"{{ asset('admin/libs/datatables.net-responsive-bs4/css/responsive.bootstrap4.min.css') }}\" rel=\"stylesheet\" type=\"text/css\">
{% endblock %}
{% block title %}{{\"Liste des Experiences\"|trans }}{% endblock %}
{% block content %}
<div class=\"row\">
<div class=\"col-lg-12\">
<div class=\"card\">
<div class=\"card-body\">
<h4 class=\"card-title mb-3\">Experiences</h4>
<!-- Nav tabs -->
<!-- Tab panes -->
<div class=\"tab-content p-3\">
<div class=\"tab-pane active\" id=\"all-order\" role=\"tabpanel\">
<form method=\"post\" action=\"{{ path('experiences_list') }}\">
<div class=\"row\">
<div class=\"col-xl col-sm-6\">
<div class=\"mb-3\">
<label class=\"form-label\">Coach</label>
<select class=\"form-control select2\">
<option>Select</option>
<optgroup label=\"Coaches\">
{% for coache in coaches %}
<option value=\"{{ coache.id }}\" {{ app.request.get('coache') == coache.id ? 'selected' }}>
{{ coache.firstname }} - {{ coache.lastname }}
</option>
{% endfor %}
</optgroup>
</select>
</div>
</div>
<div class=\"col-xl col-sm-6\">
<div class=\"mb-3\">
<label class=\"form-label\">Type de coaching :</label>
<select class=\"form-control\" name=\"typeCoach\">
<option value=\"\">— Tous —</option>
<option value=\"private\" {{ app.request.get('typeCoach') == 'private' ? 'selected' }}>Coaching Privé</option>
<option value=\"groupe\" {{ app.request.get('typeCoach') == 'groupe' ? 'selected' }}>Coaching en groupe</option>
<option value=\"visio\" {{ app.request.get('typeCoach') == 'visio' ? 'selected' }}>Coaching par Visio</option>
</select>
</div>
</div>
<div class=\"col-xl col-sm-6\">
<div class=\"mb-3\">
<label class=\"form-label\">Catégorie :</label>
<select class=\"form-control\" name=\"category\">
<option value=\"\">— Toutes —</option>
{% for categorie in categories %}
<option value=\"{{ categorie.id }}\" {{ app.request.get('category') == categorie.id ? 'selected' }}>
{{ categorie.name }}
</option>
{% endfor %}
</select>
</div>
</div>
<div class=\"col-xl col-sm-6 align-self-end\">
<div class=\"mb-3\">
<button type=\"submit\" class=\"btn btn-primary w-md\">Filter</button>
</div>
</div>
</div>
</form>
<div class=\"table-responsive mt-2\">
<table class=\"table table-hover datatable dt-responsive nowrap\" style=\"border-collapse: collapse; border-spacing: 0; width: 100%;\">
<thead>
<tr>
<th scope=\"col\">#</th>
<th scope=\"col\">Titre</th>
<th scope=\"col\">Prix</th>
<th scope=\"col\">Description</th>
<th scope=\"col\">Type de coaching</th>
<th scope=\"col\">Status</th>
<th scope=\"col\">Coach</th>
<th class=\"p-3 font-semibold text-13 ltr:text-left rtl:text-right\" style=\"width: 120px;\">Action</th>
</tr>
</thead>
<tbody>
{% for experience in experiences %}
<tr>
<td>
<img class=\"object-cover\" src=\"{{ asset(''~experience.image) }}\" alt=\"\" width=\"96px\" height=\"64px\">
</td>
<td>{{ experience.title }}</td>
<td>{{ experience.price }} {{ experience.currency }}</td>
<td>{{ experience.description|u.truncate(30, '…') }}</td>
<td>{{ experience.coachingtype }}</td>
<td> {% if experience.enabled is not null %}
{{ experience.enabled ? '<span class=\"badge bg-success font-size-10\">Disponible</span>' : '<span class=\"badge bg-danger font-size-10\">Occupe</span>' }}
{% else %}
—
{% endif %}
</td>
<td>Hicham{#{{ experience.coach.lastname }}#}</td>
<td class=\"p-3 ltr:text-left rtl:text-right\">
<div class=\"relative dropdown\">
<button class=\"p-0 text-gray-700 border-0 btn dropdown-toggle dark:text-zink-200 \" type=\"button\" data-bs-toggle=\"dropdown\" id=\"dropdownMenuButton1\">
<i class=\"bx bx-dots-horizontal font-medium text-15\"></i>
</button>
<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\">
<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('exp_overview', {id: experience.id}) }}\"><i class=\"bx bx-pencil text-16 text-green-500 me-2 \"></i> Overview</a>
</li>
<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-lock-alt text-16 text-gray-500 me-2\"></i>Securite</a>
</li>
<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>
</li>
</ul>
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% block javascripts %}
<script src=\"{{ asset('admin/libs/select2/js/select2.min.js')}}\"></script>
<script src=\"{{ asset('admin/libs/select2/js/select2.min.js')}}\"></script>
<script src=\"{{ asset('admin/libs/bootstrap-datepicker/js/bootstrap-datepicker.min.js')}}\"></script>
<script src=\"{{ asset('admin/libs/datatables.net/js/jquery.dataTables.min.js')}}\"></script>
<script src=\"{{ asset('admin/libs/datatables.net-bs4/js/dataTables.bootstrap4.min.js')}}\"></script>
<script src=\"{{ asset('admin/libs/datatables.net-responsive/js/dataTables.responsive.min.js')}}\"></script>
<script src=\"{{ asset('admin/libs/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js')}}\"></script>
<script src=\"{{ asset('admin/js/pages/crypto-orders.init.js')}}\"></script>
<script src=\"{{ asset('admin/js/pages/form-advanced.init.js')}}\"></script>
<script src=\"{{ asset('admin/js/app.js')}}\"></script>
{% endblock %}", "admin/experience/list/listExperiences.html.twig", "/home/bookoachroot/public_html/templates/admin/experience/list/listExperiences.html.twig");
}
}