{% extends "webapp/base.html" %} {% block title %}{{ t('settings') }} — FIGHTSKILL{% endblock %} {% block content %}
{% if user.avatar %} {% else %} {{ user.display_name[0]|upper }} {% endif %}

{{ user.display_name }}

Level {{ user.level | default(1) }} • Elite

{{ user.email }}

{{ stats.wins if stats else 0 }}
{{ t('wins') | default('Wins') }}
{{ stats.matches if stats else 0 }}
{{ t('matches_played') | default('Matches') }}
{{ stats.win_rate if stats else '0' }}%
{{ t('win_rate') | default('Win Rate') }}
${{ stats.prize_earned | default(0) }}
{{ t('earned') | default('Earned') }}
🏆 {{ t('tournament_winner') | default('Tournament Winner') }}
🔥 {{ t('win_streak') | default('10 Win Streak') }}

✏️ {{ t('edit_profile') | default('Edit Global Profile') }}

🎮 {{ t('game_profiles') | default('Game Profiles') }}

{{ t('game_profiles_desc') | default('Set your in-game identity separately for each game.') }}

{% for g in games %}
{{ g.icon }} {{ g.name }}
{% endfor %}

🔒 {{ t('change_password') | default('Change Password') }}

📧 {{ t('email_management') | default('Email') }}

{{ user.email }}
{{ t('email_status') | default('Status') }}: {% if user.email_verified %} ✓ {{ t('verified') | default('Verified') }} {% else %} {{ t('unverified') | default('Unverified') }} {% endif %}
{% for lc in ['en','fa','tr','ar'] %}
{% endfor %}

🎨 {{ t('theme') }} + {{ t('region') | default('Region') }}

{{ t('region_note') | default('You will play matches in your region.') }}

🔔 {{ t('notification_settings') | default('Notification Settings') }}

{% set prefs = [ ('team_invite', 'Team Invitations'), ('match_registration', 'Tournament Registration'), ('room_code', 'Room Code Available'), ('prize', 'Prize Received'), ('wallet', 'Wallet Transactions'), ('system', 'System Announcements') ] %} {% for key, en_label in prefs %} {% endfor %}

{{ t('notif_prefs_note') | default('Preferences are saved automatically.') }}

{% endblock %}