{% set route_name = app.request.attributes.get('_route') %}
{% set route_params = app.request.attributes.get('_route_params') %}
{% set path = app.request.getPathInfo() %}
<div class="dasboard-sidebar">
<div class="dasboard-sidebar-content fl-wrap">
<div class="dasboard-avatar">
{% if app.user.avatar %}
<img src="{{ asset('uploads/files/user/avatar/' ~ app.user.avatar) }}" alt="{{ app.user.firstname ~' '~ app.user.lastname }}">
{% else %}
<img src="{{ asset('front/images/avatar/1.jpg') }}" alt="{{ app.user.firstname ~' '~ app.user.lastname }}">
{% endif %}
</div>
<div class="dasboard-sidebar-item fl-wrap">
<h3>
<span>Bienvenue </span>
{{ app.user.firstname ~ ' ' ~ app.user.lastname }}
</h3>
</div>
<a href="" class="ed-btn">Demander un devis</a>
<div class="user-stats fl-wrap">
<ul>
<li>
Messages
<span>0</span>
</li>
<li>
Mes devis
<span>0</span>
</li>
<li>
Mes avis
<span>0</span>
</li>
</ul>
</div>
<a href="{{ url('app_front_logout') }}" class="log-out-btn color-bg"> Déconnexion <i class="far fa-sign-out"></i></a>
</div>
</div>
<div class="dasboard-menu">
<ul class="dasboard-menu-wrap">
<li>
<a href="{{ url('app_client_account_profile') }}" class="{% if route_name starts with 'app_client_account_profile' %}user-profile-act{% endif %}"><i class="far fa-user"></i> Profil</a>
{% if path != '/client/account/change-password' %}
<ul>
<li><a href="{{ url('app_client_account_change_password') }}"> Changer votre mot de passe</a></li>
</ul>
{% endif %}
</li>
<li><a href="#"><i class="far fa-envelope"></i> Messages <span>0</span></a></li>
<li>
<a href="#" class="{% if route_name starts with 'app_client_devis' %}user-profile-act{% endif %}"><i class="far fa-th-list"></i> Mes devis </a>
<ul>
<li><a href="{{ url('app_client_devis_confirmed') }}">Confirmés</a><span>0</span></li>
<li><a href="{{ url('app_client_devis_pending') }}">En attente</a><span>0</span></li>
<li><a href="{{ url('app_client_devis_all') }}">Tous</a><span>0</span></li>
</ul>
</li>
<li><a href="#"><i class="far fa-comments"></i> Mes avis <span>0</span></a></li>
<li>
<a href="{{ url('app_client_credit_transactions') }}" class="{% if route_name starts with 'app_client_credit_transactions' %}user-profile-act{% endif %}"><i class="far fa-credit-card"></i> Mes transactions</a>
</li>
</ul>
</div>
<div class="tfp-btn-none">
<div class="tfp-btn"><span>Crédit(s) restant : </span> <strong>{{ app.user.creditBalance | number_format(2, ',', ' ') }}</strong></div>
<div class="tfp-det">
<a href="{{ url('app_client_credit_reload') }}" class="tfp-det-btn color2-bg">Recharger</a>
</div>
</div>