{% extends "app/base.html.twig" %}{% block title %}{{ parent() }} - {{ title }}{% endblock %}{% block body %}<div class="content flex-row-fluid"><div class="row gy-0 gx-10"><div class="col-12"><div class="card border-0 mb-8"><div class="card-body py-4"><ol class="breadcrumb text-muted fs-6 fw-semibold"><li class="breadcrumb-item"><a href="{{ path('manager_homepage') }}" class=""><i class="fa fa-home text-primary"></i></a></li><li class="breadcrumb-item text-muted">{{ title }}</li></ol></div></div><div class="card card-flush h-lg-100"><div class="card-header pt-7"><div class="card-title"><span class="svg-icon svg-icon-1 me-2"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path opacity="0.3" d="M3 3V17H7V21H15V9H20V3H3Z" fill="black"/><path d="M20 22H3C2.4 22 2 21.6 2 21V3C2 2.4 2.4 2 3 2H20C20.6 2 21 2.4 21 3V21C21 21.6 20.6 22 20 22ZM19 4H4V8H19V4ZM6 18H4V20H6V18ZM6 14H4V16H6V14ZM6 10H4V12H6V10ZM10 18H8V20H10V18ZM10 14H8V16H10V14ZM10 10H8V12H10V10ZM14 18H12V20H14V18ZM14 14H12V16H14V14ZM14 10H12V12H14V10ZM19 14H17V20H19V14ZM19 10H17V12H19V10Z" fill="black"/></svg></span><h2>{{ title }}</h2></div><div><input id="datatable-search" type="text" name="search" class="form-control me-3" placeholder="Recherche" value="{{ app.request.get("search") }}"/></div></div><div class="card-body pt-5"><div class="card card-flush h-lg-100"><div class="table-responsive"><table id="datatable-async" class="table table-striped gy-7 gs-7"><thead><tr class="fw-bold fs-6 text-gray-800 border-bottom-2 border-gray-200"><th>Client</th>{% if app.user.manager.admin or app.user.manager.hasTeamMember %}<th>Commercial</th>{% endif %}<th>Date</th><th>Gaz</th><th>Électricité</th><th>Statut</th><th></th></tr></thead><tbody>{% for cotation in cotations_paginator.items %}<tr><td><b>{{ cotation.companyName }}</b><br/>{{ cotation.firstName }} {{ cotation.lastName }}<br/>{% if cotation.company and cotation.company.apeCode %}NAF {{ cotation.company.apeCode }}{% endif %}{% if cotation.name %}<br/><br/><u>Référence</u> : {{ cotation.name }}{% endif %}</td>{% if app.user.manager.admin or app.user.manager.hasTeamMember %}<td>{{ cotation.manager.firstName }} {{ cotation.manager.lastName }}</td>{% endif %}<td>{{ cotation.creationDate|date("d/m/Y") }}</td><td><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16px" height="16px" viewBox="0 0 16 16" ><g stroke="none" stroke-width="1" fill="{% if cotation.gas %}#1BC5BD{% else %}#F64E60{% endif %}" fill-rule="evenodd"><circle cx="8" cy="8" r="8"></circle></g></svg></td><td><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16px" height="16px" viewBox="0 0 16 16" ><g stroke="none" stroke-width="1" fill="{% if cotation.electricity %}#1BC5BD{% else %}#F64E60{% endif %}" fill-rule="evenodd"><circle cx="8" cy="8" r="8"></circle></g></svg></td><td>{{ cotation.state }}</td><td>{% if app.user.manager.admin %}<a href="{{ path('manager_companies_cotations_delete', {company: cotation.company.id, cotation: cotation.id}) }}" onclick="return confirm('Voulez-vous vraiment supprimer cette cotation ?')" class="btn btn-icon btn-light btn-sm border-0"><i class="fa fa-trash me-1 text-primary fs-5"></i></a>{% endif %}{% if cotation.state.id != 6 %}<a href="{{ path('manager_companies_cotations-multisites_edit', {company: cotation.company.id, cotation: cotation.id}) }}" class="btn btn-icon btn-light btn-sm border-0"><i class="fa fa-pen me-1 text-primary fs-5"></i></a>{% endif %}<a href="{{ path('manager_companies_cotations-multisites', {company: cotation.company.id}) }}" class="btn btn-icon btn-light btn-sm border-0"><i class="fa fa-arrow-right me-1 text-primary fs-5"></i></a></td></tr>{% endfor %}</tbody></table></div><div class="custom-pagination my-8">{{ knp_pagination_render(cotations_paginator) }}</div></div></div></div></div></div></div>{% endblock %}