templates/base-default/client-account-sidebar-with-menu.html.twig line 1

Open in your IDE?
  1. {% set route_name = app.request.attributes.get('_route') %}
  2. {% set route_params = app.request.attributes.get('_route_params') %}
  3. {% set path = app.request.getPathInfo() %}
  4. <div class="dasboard-sidebar">
  5.     <div class="dasboard-sidebar-content fl-wrap">
  6.         <div class="dasboard-avatar">
  7.             {% if app.user.avatar %}
  8.             <img src="{{ asset('uploads/files/user/avatar/' ~ app.user.avatar) }}" alt="{{ app.user.firstname ~' '~ app.user.lastname }}">
  9.             {% else %}
  10.             <img src="{{ asset('front/images/avatar/1.jpg') }}" alt="{{ app.user.firstname ~' '~ app.user.lastname }}">
  11.             {% endif %}
  12.         </div>
  13.         <div class="dasboard-sidebar-item fl-wrap">
  14.             <h3>
  15.                 <span>Bienvenue </span>
  16.                 {{ app.user.firstname ~ ' ' ~ app.user.lastname }}
  17.             </h3>
  18.         </div>
  19.         <a href="" class="ed-btn">Demander un devis</a>                                        
  20.         <div class="user-stats fl-wrap">
  21.             <ul>
  22.                 <li>
  23.                     Messages
  24.                     <span>0</span>    
  25.                 </li>
  26.                 <li>
  27.                     Mes devis    
  28.                     <span>0</span>
  29.                 </li>
  30.                 <li>
  31.                     Mes avis    
  32.                     <span>0</span>    
  33.                 </li>
  34.             </ul>
  35.         </div>
  36.         <a href="{{ url('app_front_logout') }}" class="log-out-btn color-bg"> Déconnexion <i class="far fa-sign-out"></i></a>
  37.     </div>
  38. </div>
  39. <div class="dasboard-menu">
  40.     <ul class="dasboard-menu-wrap">
  41.         <li>
  42.             <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>
  43.             {% if path != '/client/account/change-password' %}
  44.             <ul>
  45.                 <li><a href="{{ url('app_client_account_change_password') }}"> Changer votre mot de passe</a></li>
  46.             </ul>
  47.             {% endif %} 
  48.         </li>                      
  49.         <li><a href="#"><i class="far fa-envelope"></i> Messages <span>0</span></a></li>
  50.         <li>
  51.             <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>
  52.             <ul>
  53.                 <li><a href="{{ url('app_client_devis_confirmed') }}">Confirmés</a><span>0</span></li>
  54.                 <li><a href="{{ url('app_client_devis_pending') }}">En attente</a><span>0</span></li>
  55.                 <li><a href="{{ url('app_client_devis_all') }}">Tous</a><span>0</span></li>
  56.             </ul>
  57.         </li>
  58.         <li><a href="#"><i class="far fa-comments"></i> Mes avis <span>0</span></a></li>
  59.         <li>
  60.             <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>
  61.         </li>
  62.     </ul>
  63. </div>
  64. <div class="tfp-btn-none">
  65.     <div class="tfp-btn"><span>Crédit(s) restant : </span> <strong>{{ app.user.creditBalance | number_format(2, ',', ' ') }}</strong></div>
  66.     <div class="tfp-det"> 
  67.         <a href="{{ url('app_client_credit_reload') }}" class="tfp-det-btn color2-bg">Recharger</a>
  68.     </div>
  69. </div>