<div class="tab experience sheet-part {{#if @root.tabs.experience.active}}active{{/if}}" data-group="sheet" data-tab="experience">
  <h3>{{ localize 'VERMINE.experience' }}</h3>

  <div class="experience-summary">
    <div class="exp-stat">
      <label>{{ localize 'VERMINE.experience_dice' }}</label>
      <span class="exp-value">{{ system.experience.dice }}D</span>
    </div>
    <div class="exp-stat">
      <label>{{ localize 'VERMINE.experience_phase' }}</label>
      <span class="exp-value">{{ system.experience.phase }}</span>
    </div>
    <div class="exp-stat">
      <label>{{ localize 'VERMINE.evolution_dice' }}</label>
      <span class="exp-value">{{ system.experience.evolution }}D</span>
    </div>
  </div>

  <div class="flexrow exp-actions">
    {{#if isGM}}
    <button type="button" data-action="openExperiencePhase">
      <i class="fas fa-star"></i> {{ localize 'VERMINE.open_experience_phase' }}
    </button>
    {{/if}}
    <button type="button" data-action="openLearning">
      <i class="fas fa-graduation-cap"></i> {{ localize 'VERMINE.open_learning' }}
    </button>
    <button type="button" data-action="validatePhase">
      <i class="fas fa-check"></i> {{ localize 'VERMINE.validate_phase' }}
    </button>
  </div>

  <section class="exp-rewards">
    <h4>{{ localize 'VERMINE.collective_rewards' }} <span class="exp-total">({{ collectiveTotal }}D)</span></h4>
    <div class="exp-reward-row">
      <label>{{ localize 'VERMINE.danger' }}</label>
      <span>{{ system.experience.collective.danger }}D</span>
      <label>{{ localize 'VERMINE.discoveries' }}</label>
      <span>{{ system.experience.collective.discoveries }}D</span>
      <label>{{ localize 'VERMINE.duration' }}</label>
      <span>{{ system.experience.collective.duration }}D</span>
    </div>
  </section>

  <section class="exp-rewards">
    <h4>{{ localize 'VERMINE.individual_rewards' }} <span class="exp-total">({{ individualTotal }}D)</span></h4>
    <div class="exp-reward-row">
      <label>{{ localize 'VERMINE.implication' }}</label>
      <span>{{ system.experience.individual.implication }}D</span>
      <label>{{ localize 'VERMINE.influence' }}</label>
      <span>{{ system.experience.individual.influence }}D</span>
      <label>{{ localize 'VERMINE.interpretation' }}</label>
      <span>{{ system.experience.individual.interpretation }}D</span>
    </div>
  </section>

  <section class="exp-rewards">
    <h4>{{ localize 'VERMINE.learning_limits' }}</h4>
    <div class="exp-learned">
      <span class="{{#if system.experience.learned.skill}}learned{{/if}}">{{ localize 'VERMINE.learned_skill' }}</span>
      <span class="{{#if system.experience.learned.specialty}}learned{{/if}}">{{ localize 'VERMINE.learned_specialty' }}</span>
      <span class="{{#if system.experience.learned.reserve}}learned{{/if}}">{{ localize 'VERMINE.learned_reserve' }}</span>
      <span class="{{#if system.experience.learned.characteristic}}learned{{/if}}">{{ localize 'VERMINE.learned_characteristic' }}</span>
      <span class="{{#if system.experience.learned.evolution}}learned{{/if}}">{{ localize 'VERMINE.learned_evolution' }}</span>
      <span class="{{#if system.experience.learned.ability}}learned{{/if}}">{{ localize 'VERMINE.learned_ability' }}</span>
      <span class="{{#if system.experience.learned.background}}learned{{/if}}">{{ localize 'VERMINE.learned_background' }}</span>
      <span class="{{#if system.experience.learned.reputation}}learned{{/if}}">{{ localize 'VERMINE.learned_reputation' }}</span>
    </div>
  </section>

  <section class="exp-rewards">
    <h4>{{ localize 'VERMINE.trauma_reward' }}</h4>
    <div class="exp-learned">
      <span class="{{#if system.experience.traumaReward}}learned{{/if}}">{{ localize 'VERMINE.trauma_reward_5' }}</span>
    </div>
  </section>
</div>
