{% extends "settings/layout.html.twig" %} {% trans_default_domain "Settings" %} {% block settings_content %} {# Profile Completion Checklist #} {% include "settings/_completion_checklist.html.twig" %} {# Avatar & Basic Info #}

{{ 'profile.photo_title'|trans }}

{{ user.firstName }}
{{ 'profile.photo_hint'|trans }}
{# Personal Information #}

{{ 'profile.personal_info'|trans }}

{{ 'profile.username_hint'|trans }}

{{ user.bio ? user.bio|length : 0 }}/500

{# Academic Information #}

{{ 'profile.academic_info'|trans }}

×

{{ 'profile.work_hint'|trans }}

{# Work Experience — LinkedIn-style #}

{{ 'profile.work_experience_title'|trans }}

{# Add/Edit form (hidden initially) #} {# Existing work experiences #}
{% for exp in workExperiences %}
{{ exp.title }}
{{ exp.company }}
{% if exp.startDate %}{{ exp.startDate|date('M Y') }}{% endif %} {% if exp.startDate %} — {% endif %} {% if exp.isCurrent %} {{ 'profile.work_exp_present'|trans }} {% elseif exp.endDate %} {{ exp.endDate|date('M Y') }} {% endif %}
{% if exp.description %}
{{ exp.description }}
{% endif %}
{% else %}

{{ 'profile.work_exp_empty'|trans }}

{% endfor %}
{# Social Links #}

{{ 'profile.social_links'|trans }}

{# Google Scholar Integration #}

{{ 'scholar.section_title'|trans }}

{% if scholarProfile is null %} {# Empty State — No Scholar linked #}

{{ 'scholar.link_description'|trans }}

{{ 'scholar.input_hint'|trans }}

{% elseif scholarProfile.syncStatus == 'pending' or scholarProfile.syncStatus == 'syncing' %} {# Syncing State #}
{{ 'scholar.syncing_title'|trans }}
{{ 'scholar.syncing_hint'|trans }}
{% elseif scholarProfile.syncStatus == 'failed' %} {# Error State #}
{{ 'scholar.sync_failed'|trans }}
{{ scholarProfile.syncError }}
{% else %} {# Linked State — syncStatus == 'completed' #}
{{ scholarProfile.authorName }}
{% if scholarProfile.affiliation %}
{{ scholarProfile.affiliation }}
{% endif %}
{{ 'scholar.view_on_scholar'|trans }}
{# Metrics Grid #}
{{ scholarProfile.citationsAll|number_format }}
{{ 'scholar.citations'|trans }}
{{ scholarProfile.hIndexAll }}
{{ 'scholar.h_index'|trans }}
{{ scholarProfile.i10IndexAll }}
{{ 'scholar.i10_index'|trans }}
{# Sync Info & Actions #}
📚 {{ scholarProfile.publicationCount }} {{ 'scholar.publications'|trans }} {% if scholarProfile.lastSyncedAt %} · {{ 'scholar.last_synced'|trans }}: {{ scholarProfile.lastSyncedAt|date('M j, Y') }} {% endif %}
{% endif %}
{# Academic Interests #}

{{ 'profile.interests_title'|trans }}

{{ 'profile.interests_hint'|trans }}

{% for interest in user.interests %} {{ interest.context }} × {% endfor %}
{# Add New Field Modal #}

{{ 'profile.field_add_title'|trans }}

{% endblock %}