{% extends "Profile/show/layout.html.twig" %} {% trans_default_domain "Social" %} {% set isOwner = app.user is not null and app.user.id == user.id %} {% block schemaBlock %} {% if user.publicProfile %} {% endif %} {% endblock %} {% block profileStyles %} {% endblock %} {% block page %}
{# ===== HERO CARD ===== #}
{{ user.firstName }} {% if isOwner %} {% endif %}

{{ user.firstName ~ ' ' ~ user.lastName }}

{{ '@' ~ user.username }}

{% if user.studyDegree %} {{ ('profile.degree_' ~ user.studyDegree)|trans }} {% endif %} {% if user.work %} {{ user.work }} {% endif %} {% if user.studyField %} {{ user.studyField }} {% endif %} {% if user.country %} {{ user.country }} {% endif %}
{% if user.bio %}
{{ user.bio }}
{% endif %}
{# Action buttons #}
{% if app.user is not null and app.user.id != user.id %} {% endif %} {% if isOwner %} {{ 'profile.playground_btn'|trans }} {{ 'profile.settings_btn'|trans }} {% endif %} {% if not app.user or app.user.id != user.id %} {% endif %}
{# Stats bar #}
{{ user.followersCount }} {{ 'social.followers'|trans }} {{ user.followingCount }} {{ 'social.following_list'|trans }} {{ postsCount is defined ? postsCount : 0 }} {{ 'profile.posts_count'|trans }} {% if matchedResearches is defined and matchedResearches is not empty %} {{ matchedResearches|length }} {{ 'profile.papers_count'|trans }} {% endif %}
{# ===== CONTENT: FEED + SIDEBAR ===== #}
{# ---- Main Feed Column ---- #}
{# Post composer — owner only #} {% if isOwner %}
{{ 'social.whats_on_your_mind'|trans }}
{% endif %} {# Feed tabs #}
{# Posts container (loaded via API) #}
{# Papers container (server-rendered, hidden by default) #} {# Loading #} {# Empty state for posts #}
{# ---- Sidebar ---- #}
{# About card #} {# Interests #} {% if user.interests|length > 0 %} {% endif %} {# Published Research #} {% if matchedResearches is defined and matchedResearches is not empty %} {% endif %}
{# ===== Compose Post Modal ===== #} {% if isOwner %}

{{ 'social.create_post'|trans }}

{% endif %} {# Edit Post Modal #} {% if isOwner %}

{{ 'social.edit_post'|trans }}

{% endif %} {% endblock %} {% block profileScripts %} {% if app.request.locale == 'ar' %} {% endif %} {% endblock %}