{% extends "base.twig" %} {% import "macros/playerlists.twig" as playerlists %} {% block page_title %} {{ i18n.getMessage("myteam_title") }} {% endblock %} {% block page_content %} {% if players is defined and players|length > 0 %} {% if env.getConfig("hide_strength_attributes") != "1" %} {% endif %} {% set salarySum = 0 %} {% for player in players %} {% set salarySum = salarySum + player.contract_salary %} {% if env.getConfig("hide_strength_attributes") != "1" %} {% endif %} {% endfor %}
{{ i18n.getMessage("playertable_head_position_abbr") }} {{ i18n.getMessage("playertable_head_name") }}{{ i18n.getMessage("playertable_head_strength") }}{{ i18n.getMessage("playertable_head_age") }} {{ i18n.getMessage("entity_player_vertrag_gehalt") }} {{ i18n.getMessage("playertable_head_matches_abbr") }}
{{ i18n.getMessage( {% if (player.position_main|length > 0) %}

{{ i18n.getMessage("player_mainposition_" ~ player.position_main) }}

{% endif %}

{{ player.firstname }} {% if player.pseudonym|length > 0 %}"{{ player.pseudonym }}" {% endif %}{{ player.lastname }} {% if player.unsellable == 1 %} {% endif %} {% if player.lending_fee > 0 and player.lending_owner_id == 0 %} {% endif %} {% if player.transfermarket %} {% endif %} {% if player.id == captain_id %} {% endif %}

{% if player.lending_owner_id == 0 and (player.transfermarket == 0 or env.getConfig("enable_player_resignation") or player.contract_matches <= env.getConfig("contract_max_number_of_remaining_matches")) or env.getConfig("lending_enabled") == 0 or player.id != captain_id %}
{{ i18n.getMessage("myteam_action_button") }}
{% if env.getConfig("enable_player_resignation") %} {% endif %} {% endif %}
  • {{ i18n.getMessage("playertable_head_strength_abbr") }}: {{ player.strength }}
  • {{ i18n.getMessage("playertable_head_strength_technic_abbr") }}: {{ player.strength_technic }}
  • {{ i18n.getMessage("playertable_head_strength_freshness_abbr") }}: {{ player.strength_freshness }}
  • {{ i18n.getMessage("playertable_head_strength_stamina_abbr") }}: {{ player.strength_stamina }}
  • {{ i18n.getMessage("playertable_head_strength_satisfaction_abbr") }}: {{ player.strength_satisfaction }}
{{ player.age }} {{ player.contract_salary|number_format(0, ',', ' ') }} {{ env.getConfig("game_currency") }} {% if player.lending_fee > 0 and player.lending_owner_id > 0 %}
+ {{ i18n.getMessage("entity_player_lending_fee") }}: {{ player.lending_fee|number_format(0, ',', ' ') }} {{ env.getConfig("game_currency") }} {% endif %}
{% if player.lending_matches > 0 %} {{ player.lending_matches }} {% else %} {{ player.contract_matches }} {% if player.contract_matches < 10 %}{% endif %} {% endif %}
{{ i18n.getMessage("entity_player_vertrag_gehalt") }} {{ salarySum|number_format(0, ',', ' ') }} {{ env.getConfig("game_currency") }}  
{% else %}

{{ i18n.getMessage("no_players_found") }}

{% endif %} {% endblock %}