{% extends 'backend/base.html.twig' %}
{% block title %}Entreprise {{ entreprise.raisonSocial }}{% endblock %}
{% block content %}
{% embed 'backend/partials/_breadcrumb.html.twig' with {
datas: [
{label: 'Entreprises', url: path('advanced_search', {entity: 'entreprise'})},
{label: entreprise.raisonSocial ~ ' <i>(#' ~ entreprise.id ~ ')</i>'}
],
buttons: [
{
display: is_granted('ROLE_UPDATE_ENTITY') ? true : false,
url: path('edit_entreprise', {'id': entreprise.id }),
class: 'btn btn-sm btn-primary',
icon: 'fas fa-edit',
label: 'Modifier'
}
]
} %}
{% block other_button_after %}
{% if is_granted('ROLE_ADMIN') %}
<a href="{{ path('show_entreprise_cotisation', {id: entreprise.id}) }}" class="btn btn-sm btn-primary">
<i class="fas fa-eye"></i> Voir les cotisations
</a>
<a href="{{ path('show_history_entreprise', {id: entreprise.id}) }}" class="btn btn-sm btn-primary">
<i class="fas fa-archive"></i> Historique des modifications
</a>
<a href="{{ path('duplicate_entreprise', {id: entreprise.id}) }}" class="btn btn-sm btn-warning">
<i class="fa-regular fa-copy"></i> Dupliquer
</a>
{% if entreprise.status != constant('App\\Entity\\Entreprise::STATUS_MERGED') %}
<a href="#" class="btn btn-sm btn-warning" data-bs-toggle="modal" data-bs-target="#fusionModal">
<i class="fa-solid fa-code-merge"></i> Fusionner
</a>
{% endif %}
<div class="modal fade" id="fusionModal" tabindex="-1" aria-labelledby="fusionModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
{{ form_start(formFusion) }}
<div class="modal-header">
<h1 class="modal-title fs-5" id="fusionModalLabel">Fusionner</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body text-start">
{{ form_row(formFusion.toFirm) }}
{{ form_row(formFusion.date) }}
{{ form_row(formFusion.type) }}
{{ form_row(formFusion.comment) }}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Annuler</button>
<button type="submit" class="btn btn-primary">Valider</button>
</div>
{{ form_end(formFusion) }}
</div>
</div>
</div>
{% endif %}
{% endblock %}
{% endembed %}
<div class="row justify-content-md-center mb-4">
<div class="col-12 col-lg-6">
<div class="card h-100">
<div class="card-header card-header-dark">
Informations générales
<span class="mx-2 float-end badge bg-{{ entreprise.isMember ? 'success' : 'danger' }} p-2">
{{ (entreprise.isMember ? 'adhésion payée' : 'adhésion non payée')|upper }}
</span>
<span class="float-end badge bg-{{ entreprise.firmType.color ?? 'secondary' }} p-2">
{{ entreprise.firmType.name|upper }}
</span>
{{ bagdeStatusFirm(entreprise.status, 'float-end mx-2') }}
</div>
<div class="card-body">
<div class="row mb-3">
<div class="col-3 text-bold">Raison sociale</div>
<div class="col-9">{{ entreprise.raisonSocial }}</div>
</div>
<div class="row mb-3">
<div class="col-3 text-bold">Téléphone bureau</div>
<div class="col-9">{{ entreprise.tel1 }}</div>
</div>
<div class="row mb-3">
<div class="col-3 text-bold">Email</div>
<div class="col-9">{{ entreprise.email }}</div>
</div>
<div class="row mb-3">
<div class="col-3 text-bold">N° APE</div>
<div class="col-9">{{ entreprise.codeApe }}</div>
</div>
<div class="row mb-3">
<div class="col-3 text-bold">N° Siret</div>
<div class="col-9">{{ entreprise.codeSiren }}</div>
</div>
<div class="row mb-3">
<div class="col-3 text-bold">N° TVA Intracom</div>
<div class="col-9">{{ entreprise.numTvaIntracom }}</div>
</div>
<div class="row mb-3">
<div class="col-3 text-bold">RC</div>
<div class="col-9">{{ entreprise.numEdeCentre }}</div>
</div>
{% if entreprise.dateCessation %}
<div class="row mb-3">
<div class="col-3 text-bold">Date cessation activité</div>
<div class="col-9">{{ entreprise.dateCessation ? entreprise.dateCessation|date('d/m/Y') : '' }}</div>
</div>
{% endif %}
<div class="row mb-3 d-none">
<div class="col-3 text-bold">Identifiant comptable</div>
<div class="col-9">{{ entreprise.identifiantCompta }}</div>
</div>
</div>
</div>
</div>
<div class="col-12 col-lg-6 mt-4 mt-lg-0">
<div class="h-100">
<div class="card">
<div class="card-header card-header-dark">
<div class="pb-2">Adresse du siège social</div>
</div>
<div class="card-body">
<div class="mb-2">
<span class="text-bold show-label">Adresse:</span>
<span>{{ entreprise.adresse is not empty ? entreprise.adresse : '' }}</span>
</div>
<div class="mb-2">
<span class="text-bold show-label">Adresse compl.:</span>
<span>{{ entreprise.adresse2 is not empty ? entreprise.adresse2 : '' }}</span>
</div>
<div class="mb-2">
<span class="text-bold show-label">Code postal:</span>
<span>{{ entreprise.codePostal is not empty ? entreprise.codePostal : '' }}</span>
</div>
<div class="mb-2">
<span class="text-bold show-label">Ville:</span>
<span>{{ entreprise.ville is not empty ? entreprise.ville : '' }}</span>
</div>
<div class="mb-2">
<span class="text-bold show-label">Département:</span>
<span>{{ entreprise.departement is not null ? entreprise.departement.nom : '' }}</span>
</div>
<div class="mb-2">
<span class="text-bold show-label">Région:</span>
<span>{{ entreprise.departement is not null and entreprise.departement.regions is not null ? entreprise.departement.regions.first.nom : '' }}</span>
</div>
</div>
</div>
<div class="card mb-0">
<div class="card-header card-header-dark">
Fédération
</div>
<div class="card-body">
<div class="row mb-3">
<div class="col-3 text-bold">Syndicat de rattachement</div>
<div class="col-9">{{ entreprise.syndicat.nom is defined ? entreprise.syndicat.nom : '' }}</div>
</div>
<div class="row mb-3">
<div class="col-3 text-bold">Région de rattachement</div>
<div class="col-9">{{ entreprise.homeRegion ? entreprise.homeRegion.nom : '' }}</div>
</div>
<div class="row mb-3">
<div class="col-3 text-bold">Groupe entreprise</div>
<div class="col-9">{{ entreprise.groupeEntreprise ? entreprise.groupeEntreprise.nom : '' }}</div>
</div>
<div class="row mb-3">
<div class="col-3 text-bold">Commission</div>
<div class="col-9">{{ entreprise.commission ? entreprise.commission.nom : '' }}</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% if entreprise.firmType.tag in ['trader', 'transporter'] %}
<div class="card mb-4">
<div class="card-header card-header-dark">
Etablissement(s) / Centres de rassemblement
{% if is_granted('ROLE_ADMIN') %}
<a href="{{ path('add_establishment', {id: entreprise.id}) }}" class="float-end text-white">
<i class="fas fa-plus fa-2x"></i>
</a>
{% endif %}
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>Type</th>
<th>Tél</th>
<th>Email</th>
<th>N° siret</th>
<th>Code EDE</th>
<th>Adresse</th>
<th>Département</th>
<th>Date de cessation</th>
<th class="text-center">Actions</th>
</tr>
</thead>
<tbody>
{% for key, etablissement in entreprise.etablissements %}
<tr>
<td>{{ etablissement.siegeSocial ? '<strong class="text-primary">Siège social</strong>'|raw : 'Etablissement' }}</td>
<td>{{ etablissement.telBureau1 }}</td>
<td>{{ etablissement.emailBureau }}</td>
<td>{{ etablissement.codeSiret }}</td>
<td>{{ etablissement.codeEde }}</td>
<td>
{{ etablissement.adresse }}<br>
{{ etablissement.codePostal }}<br>
{{ etablissement.ville }}
</td>
<td>{{ etablissement.departement ? etablissement.departement.nom : '' }}</td>
<td>{{ etablissement.dateCessation ? etablissement.dateCessation|date('d/m/Y') }}</td>
<td class="text-center">
<button class="btn btn-outline-secondary btn-icon btn-rounded dropdown-toggle custom-dropdown" type="button" id="dropdownMenu_{{ key }}" data-bs-toggle="dropdown" aria-expanded="false">
<i class="fa-solid fa-ellipsis"></i>
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu_{{ key }}">
<li>
<a class="dropdown-item" href="{{ path('show_establishment', {id: etablissement.id }) }}">
<i class="fas fa-eye"></i> Visualiser
</a>
</li>
{% if is_granted('ROLE_ADMIN') %}
<li>
<a class="dropdown-item" href="{{ path('edit_establishment', {id: etablissement.id}) }}">
<i class="fas fa-edit"></i> Editer
</a>
</li>
<li>
<a
class="dropdown-item"
href="{{ path('delete_establishment', {id: etablissement.id}) }}"
data-controller="confirm-delete"
data-confirm-delete-url-value="{{ path('delete_establishment', {id: etablissement.id}) }}"
data-confirm-delete-message-value="Etes-vous sûr de vouloir supprimer cet établissement ?"
data-confirm-delete-token-value="{{ csrf_token('etablissement_' ~ etablissement.id) }}"
data-confirm-delete-action-value="delete_line"
>
<i class="fas fa-trash"></i> Supprimer
</a>
</li>
{% endif %}
</ul>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endif %}
{% if
entreprise.firmType.tag in ['trader', 'transporter'] and
is_granted('ROLE_BOARD_DIRECTOR') == false and
is_granted('ROLE_REGIONAL_AGENT') == false and
is_granted('ROLE_UNION_PRESIDENT') == false
%}
<div class="card mb-4">
<div class="card-header card-header-dark">
Secteur d'activité
</div>
<div class="card-body">
{% set totalSpecies = 0 %}
<div class="row mb-3">
<div class="col-3 col-lg-1 text-bold">Espèce(s)</div>
<div class="col-9 col-lg-11">
{% if entreprise.entrepriseActivities|length == 0 %}
Aucune espèce
{% else %}
{% for firmActivity in entreprise.entrepriseActivities %}
{% if firmActivity.checked and firmActivity.activity.isEnabled %}
{# <span class="badge bg-primary p-2">{{firmActivity.activity.nom|capitalize ~ (entreprise.isTransporter == false ? ' - ' ~ firmActivity.number)}}</span> #}
<span class="badge bg-primary p-2">{{firmActivity.activity.nom|capitalize ~ (entreprise.firmType.tag == 'trader' ? ' - ' ~ firmActivity.number)}}</span>
{% set totalSpecies = totalSpecies + firmActivity.number %}
{% endif %}
{% endfor %}
{% endif %}
</div>
</div>
<div class="row mb-3">
<div class="col-3 col-lg-1 text-bold">Volume total</div>
<div class="col-9 col-lg-11">{{ entreprise.totalCountSpecies }}</div>
</div>
{% if entreprise.firmType.tag == 'transporter' %}
<hr>
<div class="row">
<div class="col-12 col-lg-3 d-none">
<div class="row mb-3">
<div class="col-5 text-bold">Autre activité</div>
<div class="col-7">
{{ entreprise.autreActivite ?? '<i><small>Aucune</small></i>' }}
</div>
</div>
</div>
<div class="col-12 col-lg-3">
<div class="row mb-3">
<div class="col-5 text-bold">N° agrément transport</div>
<div class="col-7">
{{ entreprise.transporteur ? entreprise.transporteur.numAgrementTransport }}
</div>
</div>
</div>
<div class="col-12 col-lg-3">
<div class="row mb-3">
<div class="col-5 text-bold">Nb de Licence Transport interne</div>
<div class="col-7">
{{ entreprise.transporteur ? entreprise.transporteur.nombreLicenseInterne }}
</div>
</div>
</div>
<div class="col-12 col-lg-3">
<div class="row mb-3">
<div class="col-5 text-bold">Nb de Licence intracommunautaire</div>
<div class="col-7">
{{ entreprise.transporteur ? entreprise.transporteur.nombreLicenceIntracom }}
</div>
</div>
</div>
</div>
{% else %}
{% if totalSpecies != entreprise.totalCountSpecies %}
<div class="alert alert-warning">
Le volume total est différent de la somme des volumes par espèce
</div>
{% endif %}
<hr>
<div class="row">
<div class="col-12 col-lg-3">
<div class="row mb-3">
<div class="col-5 text-bold">Autre activité</div>
<div class="col-7">
{{ entreprise.autreActivite ?? '<i><small>Aucune</small></i>' }}
</div>
</div>
</div>
<div class="col-12 col-lg-3 d-none">
<div class="row mb-3">
<div class="col-5 text-bold">Volume d'animaux</div>
<div class="col-7">
{{ entreprise.volumeAnimaux }}
</div>
</div>
</div>
<div class="col-12 col-lg-3 d-none">
<div class="row mb-3">
<div class="col-5 text-bold">Autre spécialité</div>
<div class="col-7">
{{ entreprise.autreSpecialite }}
</div>
</div>
</div>
<div class="col-12 col-lg-3">
<div class="row mb-3">
<div class="col-5 text-bold">Transport pour autrui</div>
<div class="col-7">
{{ entreprise.transportPourAutrui ? "oui"|upper : "non" }}
</div>
</div>
</div>
</div>
{#
<hr>
<div class="row">
<div class="col-12 col-lg-3">
<div class="row mb-3">
<div class="col-5 text-bold">EDE Négoce</div>
<div class="col-7">
{{ entreprise.numEdeNegoce }}
</div>
</div>
</div>
<div class="col-12 col-lg-3">
<div class="row mb-3">
<div class="col-5 text-bold">EDE Centre Rassemblement</div>
<div class="col-7">
{{ entreprise.numEdeCentre }}
</div>
</div>
</div>
<div class="col-12 col-lg-3">
<div class="row mb-3">
<div class="col-5 text-bold">EDE Elevage</div>
<div class="col-7">
{{ entreprise.numEdeElevage }}
</div>
</div>
</div>
</div>
#}
{% endif %}
<hr>
<div class="row mb-3">
<div class="col-3 col-lg-1 text-bold">Nb employés</div>
<div class="col-9 col-lg-11">
{{ entreprise.nombreEmployes }}
</div>
</div>
</div>
</div>
{% endif %}
<div class="card mb-4">
<div class="card-header card-header-dark">
Contacts
{% if is_granted('ROLE_ADMIN') %}
<a href="{{ path('add_contact_from_firm', {id: entreprise.id}) }}" class="float-end text-white">
<i class="fas fa-plus fa-2x"></i>
</a>
{% endif %}
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>Type</th>
<th>Nom</th>
<th>Prénom</th>
<th>Email</th>
<th>Tél. portable</th>
<th>Commission</th>
<th>Conseil admin.</th>
<th>Repères</th>
<th>Privil.</th>
<th>Utilisateur extranet ?</th>
<th class="text-center">Action(s)</th>
</tr>
</thead>
<tbody>
{% for key, contact in entreprise.contacts %}
{% if contact.status != constant('App\\Entity\\Contact::STATUS_ARCHIVED') %}
<tr>
<td class="text-bold">{{ (contact.isResponsible ? '<span class="text-success">Responsable</span>' : 'Employé')|raw }}</td>
<td>{{ contact.nom }}</td>
<td>{{ contact.prenom }}</td>
<td>{{ contact.emailContact }}</td>
<td>{{ contact.telPortable }}</td><td>
<ul class="">
{% for commission in contact.commissionsContacts %}
<li>{{ commission.commission.nom }}</li>
{% endfor %}
</ul>
</td>
<td>
<ul class="">
{% for contactConseilAdministration in contact.contactConseilAdministrations %}
<li>{{ contactConseilAdministration.conseilAdministration.role }}</li>
{% endfor %}
</ul>
</td>
<td>
<ul class="">
{% for repere in contact.repere %}
<li>{{ repere.nom }}</li>
{% endfor %}
</ul>
</td>
<td class="text-bold">{{ contact.isPrivileged ? 'Oui' : 'Non' }}</td>
<td class="text-bold">{{ contact.user is not null ? 'Oui (#' ~ contact.user.id ~ ')' : 'Non' }}</td>
<td class="text-center">
<button class="btn btn-outline-secondary btn-icon btn-rounded dropdown-toggle custom-dropdown" type="button" id="dropdownMenu_{{ key }}" data-bs-toggle="dropdown" aria-expanded="false">
<i class="fa-solid fa-ellipsis"></i>
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu_{{ key }}">
<li>
<a class="dropdown-item" href="{{ path('show_contact', {id: contact.id }) }}">
<i class="fas fa-eye"></i> Visualiser
</a>
</li>
{% if is_granted('ROLE_ADMIN') %}
<li>
<a class="dropdown-item" href="{{ path('edit_contact_from_firm', {id: contact.id}) }}">
<i class="fas fa-edit"></i> Editer
</a>
</li>
<li>
<a
class="dropdown-item"
href="#"
data-controller="confirm-delete"
data-confirm-delete-url-value="{{ path('archive_contact', {id: contact.id}) }}"
data-confirm-delete-message-value="Etes-vous sûr de vouloir archiver ce contact ?"
data-confirm-delete-token-value="{{ csrf_token('contact_' ~ contact.id) }}"
data-confirm-delete-action-value="delete_line"
>
<i class="fas fa-archive"></i> Archiver
</a>
</li>
{% endif %}
</ul>
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% if
entreprise.firmType.tag in ['trader', 'transporter'] and
is_granted('ROLE_BOARD_DIRECTOR') == false and
is_granted('ROLE_REGIONAL_AGENT') == false and
is_granted('ROLE_UNION_PRESIDENT') == false
%}
<div class="card mb-4 d-none">
<div class="card-header card-header-dark">
Adhésion
</div>
<div class="card-body">
<div class="row">
<div class="col-12 col-lg-6">
<div class="row mb-3">
<div class="col-3 text-bold">Souhaite adhérer ?</div>
<div class="col-9">
{{ entreprise.souhaiteAdherer ? '<span class="text-bold text-success">Oui</span>' : 'Non' }}
</div>
</div>
</div>
<div class="col-12 col-lg-6">
<div class="row mb-3">
<div class="col-3 text-bold">Figurer dans l'annuaire ?</div>
<div class="col-9">
{{ entreprise.figurerAnnuaireAdherents ? '<span class="text-bold text-success">Oui</span>' : 'Non' }}
</div>
</div>
</div>
</div>
{% if entreprise.raisonNonAdhesion is not null and entreprise.raisonNonAdhesion|trim != '' %}
<div class="row mt-3">
<div class="col-12 col-lg-6">
<div class="row mb-3">
<div class="col-3 text-bold">Raison de non adhésion</div>
<div class="col-9">
{{ entreprise.raisonNonAdhesion }}
</div>
</div>
</div>
<div class="col-12 col-lg-6">
<div class="row mb-3">
<div class="col-3 text-bold"></div>
<div class="col-9">
{{ entreprise.raisonNonAdhesionAutre }}
</div>
</div>
</div>
</div>
{% endif %}
</div>
</div>
{% endif %}
{% if entreprise.firmType.tag in ['trader', 'transporter'] %}
<div class="card mb-4">
<div class="card-header card-header-dark">
QUALI NEGOCE
</div>
<div class="card-body">
<div class="row mb-3">
<div class="col-3 text-bold">Quali Négoce ?</div>
<div class="col-9">
{{ entreprise.isQualiNegoce ? '<span class="text-bold text-success">Oui</span>' : 'Non' }}
</div>
</div>
<div class="row">
<div class="col-12 col-lg-4 mb-3">
<div class="row">
<div class="col-3 text-bold">Date de certification</div>
<div class="col-9">
{{ entreprise.qualiNegoceCertificationDate ? entreprise.qualiNegoceCertificationDate|date('d/m/Y') }}
</div>
</div>
</div>
<div class="col-12 col-lg-4 mb-3">
<div class="row">
<div class="col-3 text-bold">Date pre audit</div>
<div class="col-9">
{{ entreprise.qualiNegocePreAuditDate ? entreprise.qualiNegocePreAuditDate|date('d/m/Y') }}
</div>
</div>
</div>
<div class="col-12 col-lg-4 mb-3">
<div class="row">
<div class="col-3 text-bold">Date d’audit intermédiaire</div>
<div class="col-9">
{{ entreprise.qualiNegoceCertificationDate ? entreprise.qualiNegoceCertificationDate|date_modify("+18 month")|date('d/m/Y') }}
</div>
</div>
</div>
</div>
<hr class="mb-4">
<h4 class="mt-4 mb-3">Nom du / des référent(s)</h4>
<div class="table-responsive">
<table class="w-100" id="quali-negoce-contacts">
<tbody>
{% for firmContactQualiNegoce in entreprise.firmContactQualiNegoces %}
<tr>
<td>
{{ firmContactQualiNegoce.contact.fullname }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<hr class="mb-4">
<h4 class="mt-4 mb-3">Mes documents Quali Negoce</h4>
<div class="table-responsive">
<table class="w-100" id="quali-negoce-document">
<tbody>
{% for document in entreprise.firmQualiNegoceDocuments %}
<tr>
<td>
<a href="{{ vich_uploader_asset(document, 'documentFile') }}" target="_blank">{{ document.originalFileName }}</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endif %}
{% if
entreprise.firmType.tag in ['trader', 'transporter'] and
is_granted('ROLE_BOARD_DIRECTOR') == false and
is_granted('ROLE_REGIONAL_AGENT') == false and
is_granted('ROLE_UNION_PRESIDENT') == false
%}
<div class="card mb-4">
<div class="card-header card-header-dark">
Chiffre d'affaires des 3 dernières années
</div>
<div class="card-body">
{% set year = 'now'|date('Y')|cast_to_int %}
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>Année</th>
<th>Chiffre d'affaire</th>
<th>Type cotisation</th>
<th>Montant cotisation</th>
<th>Option(s)</th>
</tr>
</thead>
<tbody>
{% for i in [0, 1, 2] %}
{% set cotisation = entreprise.getCotisationByYear(year - i) %}
<tr>
<td>{{ year - i }}</td>
<td>{{ cotisation and cotisation.revenue > 0 ? cotisation.revenue|number_format(2, ',', ' ') ~ ' €' : 'Pas de chiffre d\'affaire renseigné pour l\'année ' ~ (year - i) }}</td>
<td>{{ cotisation and cotisation.cotisationType ? cotisation.cotisationType.name }}</td>
<td>{{ cotisation ? cotisation.priceTtc|number_format(2, ',', ' ') ~ ' €' }}</td>
<td>
{% if cotisation %}
<div>Import / Export: {{ cotisation.optionImportExport > 0 ? 'Oui' : 'Non' }}</div>
<div>Mapa: {{ cotisation.optionMapa ? 'Oui' : 'Non' }}</div>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endif %}
{% if
is_granted('ROLE_BOARD_DIRECTOR') == false and
is_granted('ROLE_REGIONAL_AGENT') == false and
is_granted('ROLE_UNION_PRESIDENT') == false
%}
<div class="card mb-4">
<div class="card-header card-header-dark">
Commentaire
</div>
<div class="card-body">
<div class="mb-2">
<div class="text-bold show-label">Commentaire:</div>
<div class="mt-3">{{ entreprise.commentaires|raw }}</div>
</div>
</div>
</div>
{% endif %}
<div class="card mb-4">
<div class="card-header card-header-dark">
Liaison(s) entreprise
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>Entreprise source</th>
<th>Type</th>
<th>Entreprise cible</th>
<th>Date</th>
<th>Commentaire</th>
</tr>
</thead>
<tbody>
{% for fromMe in linkedFirmWithFromMe %}
<tr>
<td>
<a href="{{ path('show_entreprise', {id: fromMe.fromFirm.id}) }}">
{{ fromMe.fromFirm.raisonSocial ~ ' (#' ~ fromMe.fromFirm.id ~ ')' }}
</a>
</td>
<td>{{ fromMe.type.name }}</td>
<td>
<a href="{{ path('show_entreprise', {id: fromMe.toFirm.id}) }}">
{{ fromMe.toFirm.raisonSocial ~ ' (#' ~ fromMe.toFirm.id ~ ')' }}
</a>
</td>
<td>{{ fromMe.date ? fromMe.date|date('d/m/Y') }}</td>
<td>{{ fromMe.comment }}</td>
</tr>
{% endfor %}
{% for toMe in linkedFirmWithToMe %}
<tr>
<td>
<a href="{{ path('show_entreprise', {id: toMe.fromFirm.id}) }}">
{{ toMe.fromFirm.raisonSocial ~ ' (#' ~ toMe.fromFirm.id ~ ')' }}
</a>
</td>
<td>{{ toMe.type.name }}</td>
<td>
<a href="{{ path('show_entreprise', {id: toMe.toFirm.id}) }}">
{{ toMe.toFirm.raisonSocial ~ ' (#' ~ toMe.toFirm.id ~ ')' }}
</a>
</td>
<td>{{ toMe.date ? toMe.date|date('d/m/Y') }}</td>
<td>{{ toMe.comment }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endblock %}