<section class="p-0" id="v-pills-information">
<div class="card">
<div class="card-header">
<div class="row align-items-center">
<div class="col">
<h5 class="m-0 p-0">Informations générales</h5>
</div>
<div>
{% if (is_granted('ROLE_ADMIN')
or is_granted('ROLE_COMMERCIAL')
or is_granted('ROLE_ACCOUNTANT')
or (not is_granted('ROLE_ACCOUNTANT')
and not is_granted('ROLE_COMMERCIAL')))
and company.locked == 0
%}
<a class="btn btn-sm btn-secondary btn-action" href="{{ path('company_edit', {'id': company.id}) }}">
<i class="fas fa-pencil-alt"></i>
<span class="sr-only">
Editer
</span>
</a>
{% endif %}
{% if is_granted('ROLE_ADMIN') and company.locked == 0 %}
{{ include('company/_delete_form.html.twig') }}
{% endif %}
</div>
</div>
</div>
<div class="card-body">
<table class="table">
<tbody>
<tr>
<th>Raison sociale</th>
<td>{{ company.name }}</td>
</tr>
<tr>
<th>Siret</th>
<td>{{ company.siret }}</td>
</tr>
<tr>
<th>TVA</th>
<td>{{ company.tva }}</td>
</tr>
<tr>
<th>Email</th>
<td>{{ company.email }}</td>
</tr>
{% if is_granted('ROLE_ACCOUNTANT') or is_granted('ROLE_COMMERCIAL') %}
<tr>
<th>Code Client</th>
<td>{{ company.codeClient }}</td>
</tr>
<tr>
<th>Frais de port</th>
<td>{{ company.shippingCostTaxExcluded }} €</td>
</tr>
<tr>
<th>Franco de port </th>
<td>{{ company.freeShippingTaxExcluded }} €</td>
</tr>
<tr>
<th>Périodicité de facturation</th>
<td>{{ company.billingFrequency }}</td>
</tr>
<tr>
<th>Départ de</th>
<td>{{ company.departure }}</td>
</tr>
<tr>
<th>Tarifs</th>
<td>{{ company.priceType }}</td>
</tr>
<tr>
<th>Taux de remise</th>
<td>{{ company.discountRate }}</td>
</tr>
<tr>
<th>Tarifs d'exception</th>
<td>{{ company.exceptionPrice ? 'Oui' : 'Non' }}</td>
</tr>
<tr>
<th>Groupement</th>
<td>{{ company.grouping ? 'Oui' : 'Non' }}</td>
</tr>
<tr>
<th>Commentaire</th>
<td>{{ company.groupingComment }}</td>
</tr>
<tr>
<th>Remarque</th>
<td>{{ company.note }}</td>
</tr>
<tr>
<th>Métier</th>
<td>{{ company.job.getDisplayName }}</td>
</tr>
<tr>
<th>Connu par</th>
<td>{{ company.knownAs }}</td>
</tr>
<tr>
<th>Statut</th>
<td class="badge {% if company.status.id == 1 %} badge-warning {% else %} badge-success {% endif %}" >{{ company.status.name }}</td>
</tr>
{% endif %}
</tbody>
</table>
{% if files is defined and files is not empty %}
<hr>
<h5>DOCUMENTS</h5>
<ul>
{% for file in files %}
<li>
<a href='{{ asset(file.pathname) }}' target="_blank">
<i class="far fa-file"></i> {{ file.filename }}
</a>
</li>
{% endfor %}
</ul>
{% endif %}
</div>
</div>
</section>