templates/company/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Liste des entreprises{% endblock %}
  3. {% block styles %}
  4.     {{ encore_entry_link_tags('plugins/custom/datatables/datatables.bundle') }}
  5. {% endblock %}
  6. {% block body %}
  7.     <div id="kt_content_container" class="container-fluid" {{ stimulus_controller('company--index') }}>
  8.         <div class="mobile-menu" {{ stimulus_controller('mission--scroll') }}>
  9.             {% if app.request.get('_route') == 'company_index' %}
  10.                 <div class="mobile-head mb-4">
  11.                     <svg id="kt_aside_mobile_toggle" width="48" class="menu-toggle" height="40" viewBox="0 0 48 40" fill="none" xmlns="http://www.w3.org/2000/svg">
  12.                         <rect width="48" height="40" rx="6" fill="#F1F0F4"/>
  13.                         <path d="M15.75 20L32.25 20" stroke="#344054" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
  14.                         <path d="M15.75 14L32.25 14" stroke="#344054" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
  15.                         <path d="M15.75 26L32.25 26" stroke="#344054" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
  16.                     </svg>
  17.                     
  18.                     <h1 class="text-uppercase">LISTE DES ENTREPRISES</h1>
  19.                     <svg id="search_btn_mobile_open" class="hidden"  width="48" height="40" viewBox="0 0 48 40" fill="none" xmlns="http://www.w3.org/2000/svg">
  20.                         <rect x="0.5" y="0.5" width="47" height="39" rx="7.5" fill="#F9FAFB"/>
  21.                         <rect x="0.5" y="0.5" width="47" height="39" rx="7.5" stroke="#EAECF0"/>
  22.                         <g clip-path="url(#clip0_1161_6063)">
  23.                         <path d="M22.5 26C26.6421 26 30 22.6421 30 18.5C30 14.3579 26.6421 11 22.5 11C18.3579 11 15 14.3579 15 18.5C15 22.6421 18.3579 26 22.5 26Z" stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
  24.                         <path d="M27.8027 23.8035L32.9993 29" stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
  25.                         </g>
  26.                         <defs>
  27.                         <clipPath id="clip0_1161_6063">
  28.                         <rect width="24" height="24" fill="white" transform="translate(12 8)"/>
  29.                         </clipPath>
  30.                         </defs>
  31.                     </svg>
  32.                     <svg id="search_btn_mobile_close" class="hidden" width="48" height="40" viewBox="0 0 48 40" fill="none" xmlns="http://www.w3.org/2000/svg">
  33.                         <rect x="0.5" y="0.5" width="47" height="39" rx="7.5" fill="var(--my-flow-pink)"></rect>
  34.                         <rect x="0.5" y="0.5" width="47" height="39" rx="7.5" stroke="#fff"></rect>
  35.                         <g clip-path="url(#clip0_1161_6063)">
  36.                         <path d="M22.5 26C26.6421 26 30 22.6421 30 18.5C30 14.3579 26.6421 11 22.5 11C18.3579 11 15 14.3579 15 18.5C15 22.6421 18.3579 26 22.5 26Z" stroke="#fff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
  37.                         <path d="M27.8027 23.8035L32.9993 29" stroke="#fff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
  38.                         </g>
  39.                         <defs>
  40.                         <clipPath id="clip0_1161_6063">
  41.                         <rect width="24" height="24" fill="white" transform="translate(12 8)"></rect>
  42.                         </clipPath>
  43.                         </defs>
  44.                     </svg>
  45.                 </div>
  46.                 <div class="collapse align-items-center position-relative my-1" id="search_container_mobile" style="flex-direction: column;">
  47.                     <div class="d-flex align-items-center position-relative my-1" style="width: 100%;">
  48.                     <span class="svg-icon svg-icon-1 position-absolute ms-6">
  49.                         <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
  50.                             <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
  51.                                 <rect x="0" y="0" width="24" height="24" />
  52.                                 <path d="M14.2928932,16.7071068 C13.9023689,16.3165825 13.9023689,15.6834175 14.2928932,15.2928932 C14.6834175,14.9023689 15.3165825,14.9023689 15.7071068,15.2928932 L19.7071068,19.2928932 C20.0976311,19.6834175 20.0976311,20.3165825 19.7071068,20.7071068 C19.3165825,21.0976311 18.6834175,21.0976311 18.2928932,20.7071068 L14.2928932,16.7071068 Z" fill="#000000" fill-rule="nonzero" opacity="0.3" />
  53.                                 <path d="M11,16 C13.7614237,16 16,13.7614237 16,11 C16,8.23857625 13.7614237,6 11,6 C8.23857625,6 6,8.23857625 6,11 C6,13.7614237 8.23857625,16 11,16 Z M11,18 C7.13400675,18 4,14.8659932 4,11 C4,7.13400675 7.13400675,4 11,4 C14.8659932,4 18,7.13400675 18,11 C18,14.8659932 14.8659932,18 11,18 Z" fill="#000000" fill-rule="nonzero" />
  54.                             </g>
  55.                         </svg>
  56.                     </span>
  57.                      <input type="text"
  58.                            class="form-control form-control w-600px ps-15 input-search-2"
  59.                            placeholder="Rechercher ..."
  60.                             {{ stimulus_action('company--index', 'searchTable', 'keyup') }}
  61.                     />
  62.                     </div>
  63.                 </div>
  64.             {% endif %}
  65.         </div>
  66.         <div class="titre-header">
  67.             {% if app.request.get('_route') == 'company_index' %}
  68.                 <h1 class="text-uppercase mobile-none">LISTE DES ENTREPRISES</h1>
  69.                         {# <div class="d-flex align-items-center position-relative my-1 mobile-none">
  70.                         <span class="svg-icon svg-icon-1 position-absolute ms-6">
  71.                             <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
  72.                                 <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
  73.                                     <rect x="0" y="0" width="24" height="24" />
  74.                                     <path d="M14.2928932,16.7071068 C13.9023689,16.3165825 13.9023689,15.6834175 14.2928932,15.2928932 C14.6834175,14.9023689 15.3165825,14.9023689 15.7071068,15.2928932 L19.7071068,19.2928932 C20.0976311,19.6834175 20.0976311,20.3165825 19.7071068,20.7071068 C19.3165825,21.0976311 18.6834175,21.0976311 18.2928932,20.7071068 L14.2928932,16.7071068 Z" fill="#000000" fill-rule="nonzero" opacity="0.3" />
  75.                                     <path d="M11,16 C13.7614237,16 16,13.7614237 16,11 C16,8.23857625 13.7614237,6 11,6 C8.23857625,6 6,8.23857625 6,11 C6,13.7614237 8.23857625,16 11,16 Z M11,18 C7.13400675,18 4,14.8659932 4,11 C4,7.13400675 7.13400675,4 11,4 C14.8659932,4 18,7.13400675 18,11 C18,14.8659932 14.8659932,18 11,18 Z" fill="#000000" fill-rule="nonzero" />
  76.                                 </g>
  77.                             </svg>
  78.                         </span>
  79.                             <input type="text"
  80.                                 class="mobile-none form-control form-control w-600px ps-15 input-search-2"
  81.                                 placeholder="Rechercher ..."
  82.                                     {{ stimulus_action('company--index', 'searchTable', 'keyup') }}
  83.                             />
  84.                         </div> #}
  85.                         {% if only_admin(app.user) or only_admin_agency(app.user) or only_manager(app.user) %}
  86.                             <a href="{{ path('company_new') }}" class="btn btn-primary-custom font-weight-bold btn-add-company">Ajouter une entreprise</a>
  87.                         {% endif %}
  88.                     {% endif %}
  89.                 </div>
  90.         <div class="card shadow-sm mt-5">
  91.             <div class="card-body" style="padding-top:0;">
  92.                 <div class="ctn-filter ctn-filter mt-8 my-4" style="align-items:baseline">
  93.                     <div>
  94.                         <button id="show-filter" class="btn btn-filter collapsed " data-toggle="collapse" data-target="#refontefilterfile" aria-expanded="false" aria-controls="collapsefilter">Filtrer
  95.                             <svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
  96.                                 <g clip-path="url(#clip0_2053_1644)">
  97.                                     <path d="M6 13.25H18" stroke="#344054" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
  98.                                     <path d="M2.25 8.75H21.75" stroke="#344054" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
  99.                                     <path d="M9.75 17.75H14.25" stroke="#344054" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
  100.                                 </g>
  101.                                 <defs>
  102.                                     <clipPath id="clip0_2053_1644">
  103.                                         <rect width="24" height="24" fill="white" transform="translate(0 0.5)"></rect>
  104.                                     </clipPath>
  105.                                 </defs>
  106.                             </svg>
  107.                         </button>
  108.                     </div>
  109.                     <div class="ml-4 w-96" style="width: 96%;overflow-x: auto;">
  110.                         <div class="container-filter collapse " id="refontefilterfile" style="">
  111.                             <div id="refonte" style="gap: 12px;padding:0 !important;border:0;width: 100% !important;align-items: baseline;" class="refont-table mrn-grid  position-relative cursor:pointer;  width: 900px;  ">
  112.                                 <div class="div-relative">
  113.                                     <input  type="text"
  114.                                         style="margin-right: 10px;"
  115.                                         class="form-control input-search input-search-2 mb-0"
  116.                                         placeholder="Recherchez par société"
  117.                                         {{ stimulus_action('company--index', 'searchTableSociete', 'keyup') }}
  118.                                     />
  119.                                     <button class="icon-search ">
  120.                                         <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
  121.                                             <g clip-path="url(#clip0_2027_2078)">
  122.                                                 <path d="M10.5 18C14.6421 18 18 14.6421 18 10.5C18 6.35786 14.6421 3 10.5 3C6.35786 3 3 6.35786 3 10.5C3 14.6421 6.35786 18 10.5 18Z" stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
  123.                                                 <path d="M15.8035 15.8035L21 21" stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
  124.                                             </g>
  125.                                             <defs>
  126.                                                 <clipPath id="clip0_2027_2078">
  127.                                                     <rect width="24" height="24" fill="white"></rect>
  128.                                                 </clipPath>
  129.                                             </defs>
  130.                                         </svg>
  131.                                     </button>
  132.                                 </div>
  133.                                 <div class="div-relative">
  134.                                     <input  type="text"
  135.                                         style="margin-right: 10px;"
  136.                                         class="form-control input-search input-search-2 mb-0"
  137.                                         placeholder="Recherchez par réduction"
  138.                                         {{ stimulus_action('company--index', 'searchTableReduction', 'keyup') }}
  139.                                     />
  140.                                     <button class="icon-search ">
  141.                                         <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
  142.                                             <g clip-path="url(#clip0_2027_2078)">
  143.                                                 <path d="M10.5 18C14.6421 18 18 14.6421 18 10.5C18 6.35786 14.6421 3 10.5 3C6.35786 3 3 6.35786 3 10.5C3 14.6421 6.35786 18 10.5 18Z" stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
  144.                                                 <path d="M15.8035 15.8035L21 21" stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
  145.                                             </g>
  146.                                             <defs>
  147.                                                 <clipPath id="clip0_2027_2078">
  148.                                                     <rect width="24" height="24" fill="white"></rect>
  149.                                                 </clipPath>
  150.                                             </defs>
  151.                                         </svg>
  152.                                     </button>
  153.                                 </div>
  154.                                  <div class="div-relative">
  155.                                     <input  type="text"
  156.                                         style="margin-right: 10px;"
  157.                                         class="form-control input-search input-search-2 mb-0"
  158.                                         placeholder="Recherchez par crédit  "
  159.                                         {{ stimulus_action('company--index', 'searchTableCredit', 'keyup') }}
  160.                                     />
  161.                                     <button class="icon-search ">
  162.                                         <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
  163.                                             <g clip-path="url(#clip0_2027_2078)">
  164.                                                 <path d="M10.5 18C14.6421 18 18 14.6421 18 10.5C18 6.35786 14.6421 3 10.5 3C6.35786 3 3 6.35786 3 10.5C3 14.6421 6.35786 18 10.5 18Z" stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
  165.                                                 <path d="M15.8035 15.8035L21 21" stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
  166.                                             </g>
  167.                                             <defs>
  168.                                                 <clipPath id="clip0_2027_2078">
  169.                                                     <rect width="24" height="24" fill="white"></rect>
  170.                                                 </clipPath>
  171.                                             </defs>
  172.                                         </svg>
  173.                                     </button>
  174.                                 </div>
  175.                                 <div class="div-relative">
  176.                                     <input  type="date"
  177.                                         style="margin-right: 10px;"
  178.                                         class="form-control input-search input-search-2 mb-0"
  179.                                         placeholder="Recherchez par réduction"
  180.                                         {{ stimulus_action('company--index', 'searchTableDate', 'change') }}
  181.                                     />
  182.                                     
  183.                                 </div>
  184.                                 <div class="filter-btn ">
  185.                                     <div class="btn-wordpress-and-commande">
  186.                                         <a title="Réinitialiser" href="/admin/entreprises" class="btn btn-custom bg-custom-pink">
  187.                                             <svg version="1.1" x="0px" y="0px" width="20" height="20" viewBox="0 0 24 24.001" enable-background="new 0 0 24 24.001" xml:space="preserve">
  188.                                                 <g>
  189.                                                     <path fill-rule="evenodd" clip-rule="evenodd" fill="transparent" d="M4.688,24.001c-1.563,0-3.125,0-4.688,0C0,16,0,8,0,0
  190.                                                                                         c6.391,0,12.782,0,19.173,0c-0.4,0.154-0.541,0.451-0.512,0.868c0.039,0.569,0.055,1.139,0.074,1.709
  191.                                                                                         c0.009,0.253,0.001,0.508,0.001,0.788c-0.083-0.058-0.152-0.103-0.218-0.154c-1.753-1.348-3.739-2.099-5.939-2.214
  192.                                                                                         C8.958,0.807,5.917,2.088,3.591,4.862c-2.313,2.757-3.024,5.957-2.27,9.478c0.025,0.118,0.082,0.239,0.155,0.335
  193.                                                                                         c0.181,0.238,0.515,0.309,0.781,0.184c0.3-0.14,0.436-0.435,0.352-0.809c-0.254-1.13-0.326-2.268-0.174-3.418
  194.                                                                                         C2.68,8.762,3.387,7.088,4.626,5.672c2.153-2.46,4.881-3.577,8.148-3.327c1.629,0.125,3.115,0.68,4.475,1.58
  195.                                                                                         c0.216,0.143,0.418,0.308,0.626,0.463c-0.007,0.021-0.014,0.041-0.021,0.062c-0.115,0-0.229-0.004-0.344,0
  196.                                                                                         c-0.796,0.029-1.592,0.058-2.388,0.092c-0.399,0.017-0.68,0.301-0.673,0.666c0.008,0.378,0.305,0.663,0.712,0.65
  197.                                                                                         c1.429-0.045,2.857-0.096,4.285-0.155c0.465-0.02,0.716-0.299,0.7-0.762c-0.049-1.374-0.113-2.747-0.152-4.121
  198.                                                                                         C19.984,0.436,19.849,0.164,19.501,0C21,0,22.5,0,24,0c0,7.996,0,15.992,0,24.001c-6.327,0-12.655,0-18.984,0
  199.                                                                                         c0.404-0.189,0.524-0.511,0.468-0.938c-0.057-0.433-0.086-0.869-0.125-1.305c-0.031-0.359-0.059-0.719-0.088-1.089
  200.                                                                                         c0.045,0.012,0.063,0.012,0.074,0.021c0.102,0.072,0.202,0.147,0.302,0.221c1.82,1.342,3.864,2.038,6.119,2.11
  201.                                                                                         c1.696,0.056,3.321-0.269,4.863-0.985c2.001-0.931,3.588-2.332,4.743-4.213c0.976-1.588,1.493-3.321,1.587-5.18
  202.                                                                                         c0.053-1.02-0.059-2.027-0.286-3.021c-0.072-0.316-0.31-0.519-0.602-0.536c-0.482-0.028-0.792,0.365-0.675,0.88
  203.                                                                                         c0.346,1.519,0.345,3.035-0.046,4.543c-0.541,2.087-1.653,3.806-3.349,5.143c-1.479,1.167-3.161,1.836-5.034,2.008
  204.                                                                                         c-1.959,0.18-3.807-0.212-5.525-1.168c-0.492-0.273-0.949-0.612-1.421-0.922c0.01-0.021,0.02-0.044,0.029-0.066
  205.                                                                                         c0.347-0.032,0.693-0.064,1.04-0.097c0.606-0.057,1.214-0.099,1.817-0.176c0.371-0.048,0.596-0.369,0.557-0.717
  206.                                                                                         c-0.041-0.36-0.344-0.615-0.722-0.582c-1.447,0.126-2.893,0.256-4.338,0.393c-0.388,0.036-0.613,0.307-0.609,0.696
  207.                                                                                         c0.001,0.086,0.006,0.172,0.014,0.257c0.119,1.298,0.25,2.596,0.351,3.896C4.19,23.565,4.322,23.846,4.688,24.001z"></path>
  208.                                                     <path fill-rule="evenodd" clip-rule="evenodd" fill="#FFFFFF" d="M19.501,0c0.348,0.164,0.483,0.436,0.494,0.82
  209.                                                                                         c0.039,1.374,0.104,2.748,0.152,4.121c0.016,0.463-0.235,0.742-0.7,0.762c-1.428,0.059-2.856,0.11-4.285,0.155
  210.                                                                                         c-0.407,0.013-0.704-0.272-0.712-0.65c-0.007-0.365,0.273-0.649,0.673-0.666c0.796-0.034,1.592-0.063,2.388-0.092
  211.                                                                                         c0.114-0.004,0.229,0,0.344,0c0.007-0.021,0.014-0.042,0.021-0.062c-0.208-0.155-0.41-0.32-0.626-0.463
  212.                                                                                         c-1.359-0.899-2.846-1.455-4.475-1.58C9.508,2.095,6.78,3.212,4.626,5.672c-1.239,1.416-1.946,3.09-2.192,4.958
  213.                                                                                         c-0.151,1.151-0.08,2.289,0.174,3.418c0.084,0.374-0.052,0.669-0.352,0.809c-0.266,0.125-0.6,0.055-0.781-0.184
  214.                                                                                         c-0.073-0.096-0.129-0.217-0.155-0.335c-0.755-3.521-0.043-6.721,2.27-9.478c2.326-2.773,5.368-4.055,8.988-3.865
  215.                                                                                         c2.2,0.116,4.187,0.866,5.939,2.214c0.065,0.051,0.135,0.096,0.218,0.154c0-0.28,0.008-0.534-0.001-0.788
  216.                                                                                         c-0.02-0.57-0.035-1.14-0.074-1.709C18.632,0.451,18.772,0.154,19.173,0C19.282,0,19.392,0,19.501,0z"></path>
  217.                                                     <path fill-rule="evenodd" fill="#FFFFFF" clip-rule="evenodd" d="M4.688,24.001c-0.366-0.155-0.498-0.437-0.528-0.827
  218.                                                                                         c-0.101-1.3-0.232-2.598-0.351-3.896c-0.008-0.085-0.013-0.171-0.014-0.257c-0.004-0.39,0.221-0.66,0.609-0.696
  219.                                                                                         c1.446-0.137,2.892-0.267,4.338-0.393c0.378-0.033,0.681,0.222,0.722,0.582c0.04,0.348-0.186,0.669-0.557,0.717
  220.                                                                                         c-0.604,0.077-1.211,0.119-1.817,0.176c-0.347,0.032-0.693,0.064-1.04,0.097c-0.01,0.022-0.02,0.045-0.029,0.066
  221.                                                                                         c0.473,0.31,0.929,0.648,1.421,0.922c1.719,0.956,3.566,1.348,5.525,1.168c1.873-0.172,3.556-0.841,5.034-2.008
  222.                                                                                         c1.695-1.337,2.808-3.056,3.349-5.143c0.391-1.509,0.392-3.024,0.046-4.543c-0.117-0.515,0.192-0.908,0.675-0.88
  223.                                                                                         c0.292,0.017,0.529,0.22,0.602,0.536c0.228,0.994,0.339,2.001,0.286,3.021c-0.094,1.858-0.611,3.592-1.587,5.18
  224.                                                                                         c-1.155,1.881-2.742,3.282-4.743,4.213c-1.542,0.717-3.167,1.041-4.863,0.985c-2.255-0.072-4.299-0.769-6.119-2.11
  225.                                                                                         c-0.101-0.073-0.201-0.148-0.302-0.221c-0.011-0.009-0.028-0.009-0.074-0.021c0.03,0.37,0.057,0.729,0.088,1.089
  226.                                                                                         c0.039,0.436,0.067,0.872,0.125,1.305c0.056,0.428-0.064,0.749-0.468,0.938C4.907,24.001,4.797,24.001,4.688,24.001z"></path>
  227.                                                 </g>
  228.                                             </svg>
  229.                                         </a>
  230.                                     </div>
  231.                                 </div>
  232.                                 <div class="btn-wordpress-and-commande hidden">
  233.                                     <div class="filter-btn">
  234.                                         <button data-bs-toggle="modal" data-bs-target="#addRessourceModal" class="btn btn-custom bg-custom-pink btn-addressource">
  235.                                             <svg width="20" height="12" viewBox="0 0 13 12" fill="none" xmlns="http://www.w3.org/2000/svg">
  236.                                                 <path d="M0.92 6.778V4.432H5.313V0.0389988H7.659V4.432H12.052V6.778H7.659V11.171H5.313V6.778H0.92Z" fill="white"/>
  237.                                             </svg>
  238.                                         </button>
  239.                                     </div>
  240.                                 </div>
  241.                             </div>
  242.                         </div>
  243.                     </div>
  244.                 </div>
  245.                 <table id="kt_datatable_example_1" class="table table-row-bordered gy-5" {{ stimulus_target('company--index','datatable') }}>
  246.                     <thead>
  247.                     <tr class="fw-bold fs-6 text-muted" >
  248.                         <th>
  249.                             <span class="flitre-icon">
  250.                                 Logo
  251.                                 <div class="container-icon" style="opacity:0">
  252.                                     <a href="?name-short=ASC" class="icon-linkd" {{ stimulus_action('company--index', 'sortTable', 'click') }}>
  253.                                         <svg style="transform: rotate(181deg);margin-bottom: -11px;" width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
  254.                                             <g clip-path="url(#clip0_2060_1657)">
  255.                                                 <path d="M13 6.5L8 11.5L3 6.5" stroke="#667085" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"></path>
  256.                                             </g>
  257.                                             <defs>
  258.                                                 <clipPath id="clip0_2060_1657">
  259.                                                     <rect width="16" height="16" fill="white" transform="translate(0 0.5)"></rect>
  260.                                                 </clipPath>
  261.                                             </defs>
  262.                                         </svg>
  263.                                     </a>
  264.                                     <a href="?name-short=DESC" class="icon-link2s" {{ stimulus_action('company--index', 'sortTable', 'click') }}>
  265.                                         <svg width="16" height="17" viewBox="0 0 16 17" style="margin-top: -11px;" fill="none" xmlns="http://www.w3.org/2000/svg">
  266.                                             <g clip-path="url(#clip0_2060_1657)">
  267.                                                 <path d="M13 6.5L8 11.5L3 6.5" stroke="#667085" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"></path>
  268.                                             </g>
  269.                                             <defs>
  270.                                                 <clipPath id="clip0_2060_1657">
  271.                                                     <rect width="16" height="16" fill="white" transform="translate(0 0.5)"></rect>
  272.                                                 </clipPath>
  273.                                             </defs>
  274.                                         </svg>
  275.                                     </a>
  276.                                 </div>
  277.                             </span>
  278.                         </th>
  279.                         <th>
  280.                             <span class="flitre-icon">
  281.                                 Société
  282.                                 <div class="container-icon">
  283.                                     <a href="?name-short=ASC" class="icon-linkd" {{ stimulus_action('company--index', 'sortTable', 'click') }}>
  284.                                         <svg style="transform: rotate(181deg);margin-bottom: -11px;" width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
  285.                                             <g clip-path="url(#clip0_2060_1657)">
  286.                                                 <path d="M13 6.5L8 11.5L3 6.5" stroke="#667085" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"></path>
  287.                                             </g>
  288.                                             <defs>
  289.                                                 <clipPath id="clip0_2060_1657">
  290.                                                     <rect width="16" height="16" fill="white" transform="translate(0 0.5)"></rect>
  291.                                                 </clipPath>
  292.                                             </defs>
  293.                                         </svg>
  294.                                     </a>
  295.                                     <a href="?name-short=DESC" class="icon-link2s" {{ stimulus_action('company--index', 'sortTable', 'click') }}>
  296.                                         <svg width="16" height="17" viewBox="0 0 16 17" style="margin-top: -11px;" fill="none" xmlns="http://www.w3.org/2000/svg">
  297.                                             <g clip-path="url(#clip0_2060_1657)">
  298.                                                 <path d="M13 6.5L8 11.5L3 6.5" stroke="#667085" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"></path>
  299.                                             </g>
  300.                                             <defs>
  301.                                                 <clipPath id="clip0_2060_1657">
  302.                                                     <rect width="16" height="16" fill="white" transform="translate(0 0.5)"></rect>
  303.                                                 </clipPath>
  304.                                             </defs>
  305.                                         </svg>
  306.                                     </a>
  307.                                 </div>
  308.                             </span>
  309.                         </th>
  310.                         {% if is_agency() == false %}
  311.                             <th>
  312.                                 <span class="flitre-icon">
  313.                                         Réduction
  314.                                     <div class="container-icon">
  315.                                         <a href="?name-short=ASC" class="icon-linkd" {{ stimulus_action('company--index', 'sortTable', 'click') }}>
  316.                                             <svg style="transform: rotate(181deg);margin-bottom: -11px;" width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
  317.                                                 <g clip-path="url(#clip0_2060_1657)">
  318.                                                     <path d="M13 6.5L8 11.5L3 6.5" stroke="#667085" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"></path>
  319.                                                 </g>
  320.                                                 <defs>
  321.                                                     <clipPath id="clip0_2060_1657">
  322.                                                         <rect width="16" height="16" fill="white" transform="translate(0 0.5)"></rect>
  323.                                                     </clipPath>
  324.                                                 </defs>
  325.                                             </svg>
  326.                                         </a>
  327.                                         <a href="?name-short=DESC" class="icon-link2s" {{ stimulus_action('company--index', 'sortTable', 'click') }}>
  328.                                             <svg width="16" height="17" viewBox="0 0 16 17" style="margin-top: -11px;" fill="none" xmlns="http://www.w3.org/2000/svg">
  329.                                                 <g clip-path="url(#clip0_2060_1657)">
  330.                                                     <path d="M13 6.5L8 11.5L3 6.5" stroke="#667085" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"></path>
  331.                                                 </g>
  332.                                                 <defs>
  333.                                                     <clipPath id="clip0_2060_1657">
  334.                                                         <rect width="16" height="16" fill="white" transform="translate(0 0.5)"></rect>
  335.                                                     </clipPath>
  336.                                                 </defs>
  337.                                             </svg>
  338.                                         </a>
  339.                                     </div>
  340.                                 </span>
  341.                             </th>
  342.                             <th>
  343.                                 <span class="flitre-icon">
  344.                                         Crédit
  345.                                     <div class="container-icon">
  346.                                         <a href="?name-short=ASC" class="icon-linkd" {{ stimulus_action('company--index', 'sortTable', 'click') }}>
  347.                                             <svg style="transform: rotate(181deg);margin-bottom: -11px;" width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
  348.                                                 <g clip-path="url(#clip0_2060_1657)">
  349.                                                     <path d="M13 6.5L8 11.5L3 6.5" stroke="#667085" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"></path>
  350.                                                 </g>
  351.                                                 <defs>
  352.                                                     <clipPath id="clip0_2060_1657">
  353.                                                         <rect width="16" height="16" fill="white" transform="translate(0 0.5)"></rect>
  354.                                                     </clipPath>
  355.                                                 </defs>
  356.                                             </svg>
  357.                                         </a>
  358.                                         <a href="?name-short=DESC" class="icon-link2s" {{ stimulus_action('company--index', 'sortTable', 'click') }}>
  359.                                             <svg width="16" height="17" viewBox="0 0 16 17" style="margin-top: -11px;" fill="none" xmlns="http://www.w3.org/2000/svg">
  360.                                                 <g clip-path="url(#clip0_2060_1657)">
  361.                                                     <path d="M13 6.5L8 11.5L3 6.5" stroke="#667085" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"></path>
  362.                                                 </g>
  363.                                                 <defs>
  364.                                                     <clipPath id="clip0_2060_1657">
  365.                                                         <rect width="16" height="16" fill="white" transform="translate(0 0.5)"></rect>
  366.                                                     </clipPath>
  367.                                                 </defs>
  368.                                             </svg>
  369.                                         </a>
  370.                                     </div>
  371.                                 </span>
  372.                             </th>
  373.                         {% endif %}
  374.                         {# <th>Utilisateur interne</th>
  375.                         <th>Utilisateur externe</th> #}
  376.                         <th >Activé</th>
  377.                         <th>
  378.                             <span class="flitre-icon">
  379.                                 Date de création
  380.                                 <div class="container-icon">
  381.                                     <a href="?name-short=ASC" class="icon-linkd"  {{ stimulus_action('company--index', 'sortTable', 'click') }}>
  382.                                         <svg style="transform: rotate(181deg);margin-bottom: -11px;" width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
  383.                                             <g clip-path="url(#clip0_2060_1657)">
  384.                                                 <path d="M13 6.5L8 11.5L3 6.5" stroke="#667085" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"></path>
  385.                                             </g>
  386.                                             <defs>
  387.                                                 <clipPath id="clip0_2060_1657">
  388.                                                     <rect width="16" height="16" fill="white" transform="translate(0 0.5)"></rect>
  389.                                                 </clipPath>
  390.                                             </defs>
  391.                                         </svg>
  392.                                     </a>
  393.                                     <a href="?name-short=DESC" class="icon-link2s"  {{ stimulus_action('company--index', 'sortTable', 'click') }}>
  394.                                         <svg width="16" height="17" viewBox="0 0 16 17" style="margin-top: -11px;" fill="none" xmlns="http://www.w3.org/2000/svg">
  395.                                             <g clip-path="url(#clip0_2060_1657)">
  396.                                                 <path d="M13 6.5L8 11.5L3 6.5" stroke="#667085" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"></path>
  397.                                             </g>
  398.                                             <defs>
  399.                                                 <clipPath id="clip0_2060_1657">
  400.                                                     <rect width="16" height="16" fill="white" transform="translate(0 0.5)"></rect>
  401.                                                 </clipPath>
  402.                                             </defs>
  403.                                         </svg>
  404.                                     </a>
  405.                                 </div>
  406.                             </span>
  407.                         </th>
  408.                         <th></th>
  409.                     </tr>
  410.                     </thead>
  411.                     <tbody>
  412.                     {% for company in companys %}
  413.                         <tr >
  414.                             <td onclick="goTo('{{ path('company_edit', {'id':company.id}) }}')" style="cursor: pointer; vertical-align:middle;">
  415.                                 {% if company.logoName is not empty %}
  416.                                     <img src="{{ vich_uploader_asset(company, 'logoFile') }}" class="_profil-image-user ">
  417.                                 {% else %}
  418.                                     <div class="symbol symbol-35px">
  419.                                         <div class="_profil-image-user ">
  420.                                             {{ company.name|slice(0,1) }}
  421.                                         </div>
  422.                                     </div>
  423.                                 {% endif %}
  424.                             </td>
  425.                           <td onclick="goTo('{{ path('company_edit', {'id':company.id}) }}')" style="cursor: pointer; vertical-align:middle;">{{ company.name }}</td>
  426.                           
  427.                            {% if is_agency() == false %}
  428.                             <td onclick="goTo('{{ path('company_edit', {'id':company.id}) }}')" style="cursor: pointer; vertical-align:middle;">{{ company.customerDiscount }}%</td>
  429.                             <td onclick="goTo('{{ path('company_edit', {'id':company.id}) }}')" style="cursor: pointer; vertical-align:middle;">
  430.                                 {% set creditAvailable = 0 %}
  431.                                 {% for credit in company.creditHistories %}
  432.                                     {% if credit.creditExpiredAt > date() %}
  433.                                         {% set creditAvailable = creditAvailable + credit.credit %}
  434.                                     {% endif %}
  435.                                 {% endfor %}
  436.                                 {{ creditAvailable }}
  437.                             </td>
  438.                             {% endif %}
  439.                         
  440.                           <td onclick="goTo('{{ path('company_edit', {'id':company.id}) }}')" style="cursor: pointer;vertical-align:middle;">
  441.                               {% if company.enabled == 1 %}
  442.                                   <svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" fill="currentColor" class="bi bi-check2" viewBox="0 0 16 16">
  443.                                       <path d="M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z"/>
  444.                                   </svg>
  445.                               {% else %}
  446.                                   <svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" fill="currentColor" class="bi bi-x" viewBox="0 0 16 16">
  447.                                       <path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/>
  448.                                   </svg>
  449.                               {% endif %}
  450.                           </td>
  451.                           <td style="vertical-align:middle;">{{ company.createdAt|date('d-m-Y') }}</td>
  452.                             <td>
  453.                                 
  454.                                 <div class="dropdown">
  455.                                         <button type="button" 
  456.                                                 class="btn btn-transparant"
  457.                                                 data-bs-toggle="dropdown"
  458.                                                 data-kt-menu-placement="bottom-start"
  459.                                                 id="{{company.id}}"
  460.                                                 >
  461.                                             <svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" fill="currentColor" class="bi bi-three-dots" viewBox="0 0 16 16">
  462.                                                 <path d="M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"/>
  463.                                             </svg>
  464.                                         </button>
  465.                                         <div class=" dropdown-menu menu menu-sub menu-sub-dropdown menu-column menu-rounded menu-gray-600 fw-bold fs-7 w-200px py-4"
  466.                                             data-kt-menu="true"
  467.                                             aria-labelledby="{{company.id}}"
  468.                                             {{ stimulus_controller('company--command')  }}
  469.                                             >
  470.                                             
  471.                                            
  472.                                             <div class="menu-item px-3">
  473.                                                 <a href="{{ path('index_resource', {'id':company.id}) }}" class="menu-link px-3">
  474.                                                     Ressources
  475.                                                 </a>
  476.                                             </div>
  477.                                             
  478.                                             <div class="menu-item px-3">
  479.                                                 <a href="{{ path('company_edit', {'id':company.id}) }}" class="menu-link px-3">
  480.                                                     Modifier
  481.                                                 </a>
  482.                                             </div>
  483.                                             {% if only_admin(app.user) or only_admin_agency(app.user) %}
  484.                                                 <div class="menu-item px-3">
  485.                                                     <a href="#" 
  486.                                                     data-url="{{ path('company_delete', {'id':company.id}) }}" class="menu-link px-3" 
  487.                                                     {{ stimulus_action('company--index', 'deleteCompany', 'click') }} class="menu-link px-3">
  488.                                                         Supprimer
  489.                                                     </a>
  490.                                                 </div>
  491.                                             {% endif %}
  492.                                         </div>
  493.                                 </div>
  494.                             </td>
  495.                         </tr>
  496.                     {% endfor %}
  497.                 </table>
  498.             </div>
  499.         </div>
  500.     </div>
  501. {% include ("company/_modal_delete_company.html.twig") %}
  502. {% endblock %}