{% set currentPath = app.request.attributes.get('_route') %}
{% if currentPath is same as "app_user_show" %}
<section class="doc_blog_grid_area sec_pad forum-page-content">
<div class="container">
<div class="row">
<div class="col-sm-8">
{% include "components/_answer_action.html.twig" %}
{% if not app.user.isVerified %}
{% include "components/_active_account.html.twig" %}
<br>
{% endif %}
</div>
<div class="col-sm-4">
{% include "components/_user_information.html.twig" %}
</div>
</div>
<div class="row">
<div class="col-lg-6">
{% include "components/_table_file.html.twig" %}
</div>
<div class="col-lg-6">
{% include "components/_table_file_enrich.html.twig" %}
</div>
</div>
</div>
</section>
{% else %}
<section class="doc_blog_grid_area sec_pad forum-page-content">
<div class="container">
{% if app.user %}
<div class="row">
<div class="col-lg-8">
{% include "components/_answer_action.html.twig" %}
</div>
</div>
<div class="row">
<div class="col-lg-8">
{% include "components/_form_file.html.twig" %}
</div>
{% if currentPath is same as "app_files_user_show" %}
<div class="col-lg-4">
<div class="card">
<div class="card-header">
<h5 class="card-title">Résultats</h5>
</div>
<div class="card-body">
<p class="card-text">Les données du fichier:</p>
<ul class="list-group my-3">
<li class="list-group-item">Nombre de données:
{{ data["IE"] }}</li>
<li class="list-group-item">Téléphones:
{{ data["Téléphones"] }}</li>
<li class="list-group-item">Emails:
{{ data["Emails"] }}</li>
<li class="list-group-item">Sites web:
{{ data["Sites web"] }}</li>
<li class="list-group-item">Fax:
{{ data["Fax"] }}</li>
<li class="list-group-item">Téléphones mobiles:
{{ data["Téléphones Mobiles"] }}</li>
</ul>
<a href="#" class="btn btn-dark">
<i class="fa-solid fa-cart-shopping"></i>
</a>
<a href="{{ path('app_files_user_download', { 'id' : files_user.id} )}}" class="btn btn-success">
<i class="fa-solid fa-download"></i>
</a>
</div>
</div>
</div>
{% endif %}
</div>
<div class="row">
<div class="col-lg-8">
{% include "components/_list_file.html.twig" %}
</div>
</div>
{% else %}
{% include "components/_text_no_account.html.twig" %}
{% endif %}
</div>
</section>
{% endif %}