{% set locationLabel = location.city ? location.city : location.name %} {% set locationFirst = locationLabel|first|lower %} {% set locationNeedsElision = locationFirst in ['a', 'e', 'i', 'o', 'u', 'h'] %} {% set showNearby = location.slug != 'en-ligne' %} {% set currentLocationSlug = location is defined and location and location.slug ? location.slug : 'paris' %}

Les derniers cours particuliers {% if showNearby %} à proximité {{ locationNeedsElision ? "d'" : 'de ' }}{{ locationLabel }} {% endif %}

{% for key, item in tutors %} {% set profile = item.profile %} {% set user = profile.user %} {% set avatar = profile.avatar %} {% set isAndroid = user.device == 'ANDROID' %} {% set displayName = (profile.firstname and profile.lastname and not isAndroid) ? profile.firstname ~ ' ' ~ profile.lastname|first ~ '.' : profile.lastname ~ ' ' ~ profile.firstname|first ~ '.' %} {% set profileUrl = path('app_profile_user_show', { id: profile.id, slug: 'professeur-' ~ profile.department ~ '-' ~ profile.firstname|myslugify ~ '-' ~ profile.lastname|first|myslugify }) %} {% set lastActivityDate = user.lastLogin ? user.lastLogin : user.created %} {% set cityDisplay %} {% if location.slug == 'en-ligne' %} Cours Particuliers {% if item.category.name|first|lower in ['a','e','i','o','u','h'] %}d'{% else %}de {% endif %}{{ item.category.name }} en ligne {% elseif profile.city %} Cours Particuliers {% if item.category.name|first|lower in ['a','e','i','o','u','h'] %}d'{% else %}de {% endif %}{{ item.category.name }} à {{ profile.city }} {% if profile.city == 'Paris' %} {% if profile.department != '75000' %} {% if profile.department|slice(3, 1) == '0' %} {{ profile.department|slice(4, 1) }} {% else %} {{ profile.department|slice(3, 2) }} {% endif %} {% if profile.department|slice(4, 1) == '1' and profile.department|slice(3, 1) != '1' %} er {% else %} e {% endif %} arrondissement {% endif %} {% if profile.department %} ({{ profile.department }}) {% endif %} {% else %} ({{ profile.department }}) {% endif %} {% endif %} {% endset %}


{% if item.webcam %}
Webcam
{% endif %} {% if item.inPlace %}
Je peux recevoir mes élèves
{% endif %} {% if item.outPlace %}
Je peux me déplacer
{% endif %}
{% spaceless %}

{{ cityDisplay|raw }} avec {{ displayName }}

{% if profile.content %}

{{ profile.content|length > 350 ? profile.content|slice(0, 350) ~ '...' : profile.content }}

{% endif %} {% if item.content %}

Plus de détails : {{ item.content|length > 150 ? item.content|slice(0, 150) ~ '...' : item.content }}

{% endif %} {% endspaceless %}
{% if item.primaire %}Primaire{% endif %} {% if item.college %}Collége{% endif %} {% if item.lycee %}Lycée{% endif %} {% if item.superieur %}Supérieur{% endif %}
    {% for itemCategory in profile.categories %} {% set tagRoute = itemCategory.category.type == 'formations' ? 'app_formations_show' : 'app_category_show' %}
  • #{{ itemCategory.category.name }}
  • {% endfor %}
{% if item.pricePerHour %} {% endif %} {% if item.firstHour %}
1ère heure gratuite
{% endif %}
{% endfor %}